修改答案传参方

This commit is contained in:
18571350067 2021-11-30 09:15:47 +08:00
parent 06300c0429
commit 8a2841a21b
1 changed files with 3 additions and 1 deletions

View File

@ -96,7 +96,7 @@
</a-checkbox-group> </a-checkbox-group>
<a-card title="答案解析" :bordered="false"> <a-card title="答案解析" :bordered="false">
<a-textarea placeholder="" :rows="6" v-model="multiselect.asnwerParse" style="width: 100%" /> <a-textarea placeholder="" :rows="6" v-model="multiselect.asnwerParse" style="width: 100%" />
</a-card> </a-card>ge
</a-tab-pane> </a-tab-pane>
<!-- 判断题 --> <!-- 判断题 -->
@ -357,6 +357,8 @@ export default {
if (this.multiselect.b && this.multiselect.b == true) from.rightAnswers += 'B' if (this.multiselect.b && this.multiselect.b == true) from.rightAnswers += 'B'
if (this.multiselect.c && this.multiselect.c == true) from.rightAnswers += 'C' if (this.multiselect.c && this.multiselect.c == true) from.rightAnswers += 'C'
if (this.multiselect.d && this.multiselect.d == true) from.rightAnswers += 'D' if (this.multiselect.d && this.multiselect.d == true) from.rightAnswers += 'D'
if (this.multiselect.e && this.multiselect.e == true) from.rightAnswers += 'E'
if (this.multiselect.f && this.multiselect.f == true) from.rightAnswers += 'F'
if (from.rightAnswers.length < 1 || from.rightAnswers == '') { if (from.rightAnswers.length < 1 || from.rightAnswers == '') {
this.$message.error('请选择正确答案!') this.$message.error('请选择正确答案!')