|
|
@@ -181,6 +181,7 @@
|
|
|
"
|
|
|
:question="currentQuestion"
|
|
|
@saveAnswer="saveObjectiveAnswer"
|
|
|
+ @changeChoiceState="changeChoiceState"
|
|
|
>
|
|
|
<template #index>
|
|
|
<v-chip class="align-self-center"
|
|
|
@@ -199,7 +200,7 @@
|
|
|
v-if="currentQuestionIndex < this.questionIds.length - 1"
|
|
|
color="info"
|
|
|
@click="nextQuestion"
|
|
|
- :disabled="fetchingStem"
|
|
|
+ :disabled="fetchingStem || !choiceState"
|
|
|
>下一题</v-btn
|
|
|
>
|
|
|
</div>
|
|
|
@@ -267,6 +268,7 @@ export default Vue.extend({
|
|
|
submitDialog: false,
|
|
|
submittedError: false,
|
|
|
currentTime: 0,
|
|
|
+ choiceState: false,
|
|
|
examInfo: (null as unknown) as ExamSerializer,
|
|
|
endTime: 0,
|
|
|
examQuestions: (null as unknown) as ExamQuestionSerializer,
|
|
|
@@ -315,7 +317,9 @@ export default Vue.extend({
|
|
|
})
|
|
|
.catch((err) => {})
|
|
|
},
|
|
|
-
|
|
|
+ changeChoiceState(state: boolean) {
|
|
|
+ this.choiceState = state
|
|
|
+ },
|
|
|
onTimesUp() {
|
|
|
this.examTimesUp = true
|
|
|
this.submitAnswer()
|