调整:考试实训已做题目 区别显示

This commit is contained in:
fan 2023-02-15 10:36:39 +08:00
parent 9dc9be66f7
commit ab6c05b03e

View File

@ -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: {