|
@@ -1,5 +1,19 @@
|
|
|
<template>
|
|
|
<div class="center">
|
|
|
+ <beforeSubmitMask
|
|
|
+ :show="beforeSubmitVisible"
|
|
|
+ @cancel="() => {
|
|
|
+ beforeSubmitVisible=false
|
|
|
+ }"
|
|
|
+ :correctScore="correctScore"
|
|
|
+ :errorScore="errorScore"
|
|
|
+ :total="list.length"
|
|
|
+ @confirm="() => {
|
|
|
+ beforeSubmitVisible=false
|
|
|
+ submitVisible=true
|
|
|
+ }"
|
|
|
+ ></beforeSubmitMask>
|
|
|
+ <submitMask v-if="submitVisible" :correctScore="correctScore"></submitMask>
|
|
|
<div class="box">
|
|
|
<div class="main">
|
|
|
<div class="container1">
|
|
@@ -84,20 +98,27 @@
|
|
|
{{ index + 1 }}行
|
|
|
</div>
|
|
|
</div> -->
|
|
|
- <table border="0" class="coll-table-topic">
|
|
|
+ <table border="0" class="coll-table-topic">
|
|
|
<tr>
|
|
|
- <td class="coll-table-topic-item bg-498ef5"><div class="coll-table-topic-item coll-header1-row bg-498ef5">题目</div></td>
|
|
|
- <td class="coll-table-topic-item bg-498ef5" v-for="(item, index) in 10" :key="index">
|
|
|
- <div class="coll-table-topic-item coll-header1-row bg-498ef5">{{ index + 1 }}列</div>
|
|
|
+ <td class="coll-table-topic-item bg-498ef5">
|
|
|
+ <div class="coll-table-topic-item coll-header1-row bg-498ef5">题目</div>
|
|
|
+ </td>
|
|
|
+ <td
|
|
|
+ class="coll-table-topic-item bg-498ef5"
|
|
|
+ v-for="(item, index) in 10"
|
|
|
+ :key="index"
|
|
|
+ >
|
|
|
+ <div class="coll-table-topic-item coll-header1-row bg-498ef5">
|
|
|
+ {{ index + 1 }}列
|
|
|
+ </div>
|
|
|
</td>
|
|
|
</tr>
|
|
|
|
|
|
<tr :key="index" v-for="(item, index) in list.length / 10">
|
|
|
<td class="coll-table-topic-item bg-498ef5">
|
|
|
- <div style="white-space:nowrap;" >{{ index+1 }}行</div>
|
|
|
+ <div style="white-space: nowrap">{{ index + 1 }}行</div>
|
|
|
</td>
|
|
|
<td
|
|
|
-
|
|
|
v-for="(_item, _index) in 10"
|
|
|
:class="{
|
|
|
collselected: index * 10 + _index == listIndex,
|
|
@@ -106,7 +127,13 @@
|
|
|
:key="_index"
|
|
|
@click="changeListIndex"
|
|
|
>
|
|
|
- <div style="white-space:nowrap;" :data-key="index * 10 + _index + 1" class="coll-table-topic-item">{{ index * 10 + _index + 1 }}</div>
|
|
|
+ <div
|
|
|
+ style="white-space: nowrap"
|
|
|
+ :data-key="index * 10 + _index + 1"
|
|
|
+ class="coll-table-topic-item"
|
|
|
+ >
|
|
|
+ {{ index * 10 + _index + 1 }}
|
|
|
+ </div>
|
|
|
</td>
|
|
|
</tr>
|
|
|
</table>
|
|
@@ -132,6 +159,8 @@
|
|
|
<script lang="ts">
|
|
|
import { defineComponent, reactive, ref, onMounted } from 'vue';
|
|
|
import dayjs from 'dayjs';
|
|
|
+import beforeSubmitMask from '@/components/mask/beforeSubmitMask.vue';
|
|
|
+import submitMask from "@/components/mask/submitMask.vue"
|
|
|
// import Api from '@/api/api';
|
|
|
import { countdownTime, countdown, countdownTimer } from '@/hooks/countdown';
|
|
|
import { useStore } from 'vuex';
|
|
@@ -151,6 +180,7 @@ export default defineComponent({
|
|
|
let carType = carTypeMap[useRoute().query?.type as string];
|
|
|
let {
|
|
|
list,
|
|
|
+ beforeSubmitVisible,
|
|
|
listIndex,
|
|
|
submitScore,
|
|
|
changeListIndex,
|
|
@@ -158,6 +188,9 @@ export default defineComponent({
|
|
|
beforeTopic,
|
|
|
nextTopic,
|
|
|
getPgae,
|
|
|
+ correctScore,
|
|
|
+ errorScore,
|
|
|
+ submitVisible
|
|
|
} = useExamTest();
|
|
|
//设置开始时间
|
|
|
store.commit('SET_BEGINTIME', {
|
|
@@ -658,12 +691,20 @@ export default defineComponent({
|
|
|
countdownTime,
|
|
|
store,
|
|
|
submitScore,
|
|
|
+ beforeSubmitVisible,
|
|
|
+ submitVisible,
|
|
|
+ correctScore,
|
|
|
+ errorScore,
|
|
|
headimg,
|
|
|
subject,
|
|
|
username,
|
|
|
carType,
|
|
|
};
|
|
|
},
|
|
|
+ components: {
|
|
|
+ beforeSubmitMask,
|
|
|
+ submitMask
|
|
|
+ },
|
|
|
});
|
|
|
</script>
|
|
|
|
|
@@ -671,10 +712,8 @@ export default defineComponent({
|
|
|
.border-none {
|
|
|
border: none;
|
|
|
}
|
|
|
-.bg-498ef5{
|
|
|
+.bg-498ef5 {
|
|
|
background: #498ef5;
|
|
|
-
|
|
|
-
|
|
|
}
|
|
|
.bottom {
|
|
|
margin-top: 14px;
|
|
@@ -744,7 +783,6 @@ export default defineComponent({
|
|
|
display: flex;
|
|
|
}
|
|
|
.container3 {
|
|
|
-
|
|
|
flex: 1;
|
|
|
}
|
|
|
.container2 {
|
|
@@ -818,10 +856,9 @@ export default defineComponent({
|
|
|
font-size: 12px;
|
|
|
.coll-table-topic-item {
|
|
|
border: none;
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
white-space: nowrap;
|
|
|
- div{
|
|
|
+ div {
|
|
|
white-space: nowrap;
|
|
|
}
|
|
|
}
|