diff --git a/src/views/newMap/display/exam/examPanel.vue b/src/views/newMap/display/exam/examPanel.vue index cb3eabae9..aefdee3dd 100644 --- a/src/views/newMap/display/exam/examPanel.vue +++ b/src/views/newMap/display/exam/examPanel.vue @@ -35,7 +35,9 @@ v-for="(question, index) in questionList[1]" :key="index" class="item training" - :class="{ current: currentQuestionIndex === index && currentQuestionType === 2 }" + :class="{ current: currentQuestionIndex === index && currentQuestionType === 2, + submited: questionStateList[1][index] + }" @click="questionSelect(index, 2)" > {{ index + 1 }} @@ -99,7 +101,13 @@ export default { trainDetail: data.trainDetail } }; - submitAnswer(postData).then(resp => {}).catch(() => { this.$message.error('记录数据失败!'); }); + + submitAnswer(postData).then(resp => { + this.$set(this.questionStateList[1], this.currentQuestionIndex, true); + console.log(this.questionStateList, '----------------------------'); + }).catch(() => { + this.$message.error('记录数据失败!'); + }); }); }, methods: {