ZhangXianQiang
2024-07-01 c2ca81f5bff6642e3728d60f6e7a836e447de6b5
src/views/exam/index.vue
@@ -51,7 +51,7 @@
            <div class="wrapper h-full flex flex-col">
              <div class="title-wrapper w-full flex mb-5">
                <div class="title text-xl font-semibold ">{{ examType[currentType] }} ({{
                  examStore.getActiveQuestion.score }}分)
                  examStore.getActiveQuestion.questionScore }}分)
                </div>
              </div>
@@ -141,6 +141,10 @@
import AnswerSingle from './components/answer-main/answer-single/index.vue';
import AnswerMultiple from './components/answer-main/answer-multiple/index.vue';
import AnswerAudio from './components/answer-main/answer-audio/index.vue';
import AnswerFill from './components/answer-main/answer-fill/index.vue';
import AnswerDetermine from './components/answer-main/answer-determine/index.vue';
import AnswerShort from './components/answer-main/answer-short/index.vue';
import AnswerCount from './components/answer-main/answer-count/index.vue';
import { useExamStore } from '@/store/index.js';
import { useRouter } from 'vue-router';
@@ -156,7 +160,11 @@
const typeComponent = {
  1: AnswerSingle,
  2: AnswerMultiple,
  3: AnswerDetermine,
  4: AnswerFill,
  5: AnswerShort,
  6: AnswerAudio,
  7: AnswerCount,
};
const quitDialog = ref(false);
@@ -258,7 +266,7 @@
  let progress = 0;
  examDetail.value.forEach(item => {
    item.questionList.forEach(question => {
      if (question.answer || question.answerList) {
      if (question.answer || (Array.isArray(question.answerList) && question.answerList.length)) {
        progress += 1;
      }
    });
@@ -304,7 +312,7 @@
}
.answer-left {
  width: 340px;
  width: 370px;
}
.submit-button,