| | |
| | | console.log(exam); |
| | | getExamInfo(exam.id).then((res) => { |
| | | examStore.setExamInfo({ |
| | | examName: exam.examName |
| | | examName: res.data.examName, |
| | | examTime: res.data.suggestTime, |
| | | }); |
| | | examStore.setExamDetail(res.data); |
| | | examStore.setExamDetail(res.data.titleList); |
| | | // examStore.setExamInfo(res.data.examInfo); |
| | | // examStore.setExamDetail(res.data.examQuestionList); |
| | | // examStore.initExam(); |
| | |
| | | }; |
| | | |
| | | const filterAnswer = () => { |
| | | return activeQuestion.value.items.filter(item => item.isActive); |
| | | return activeQuestion.value.questionItemList.filter(item => item.isActive); |
| | | } |
| | | |
| | | |
| | |
| | | }; |
| | | |
| | | const resetAnswer = () => { |
| | | activeQuestion.value.items.forEach(item => item.isActive = false); |
| | | activeQuestion.value.questionItemList.forEach(item => item.isActive = false); |
| | | }; |
| | | |
| | | const filterAnswer = () => { |
| | | return activeQuestion.value.items.filter(item => item.isActive); |
| | | return activeQuestion.value.questionItemList.filter(item => item.isActive); |
| | | } |
| | | |
| | | |
| | |
| | | |
| | | const emit = defineEmits(['timeOut']); |
| | | |
| | | const time = ref(dayjs().valueOf() + examInfo.value.examTime * 1000); |
| | | const time = ref(dayjs().valueOf() + examInfo.value.examTime * 1000 * 60); |
| | | |
| | | const timeFinish = () => { |
| | | emit('timeOut'); |