| | |
| | | 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'; |
| | |
| | | const typeComponent = { |
| | | 1: AnswerSingle, |
| | | 2: AnswerMultiple, |
| | | 3: AnswerDetermine, |
| | | 4: AnswerFill, |
| | | 6: AnswerAudio |
| | | 5: AnswerShort, |
| | | 6: AnswerAudio, |
| | | 7: AnswerCount, |
| | | }; |
| | | |
| | | const quitDialog = ref(false); |
| | |
| | | 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; |
| | | } |
| | | }); |