题目详情字段更改

This commit is contained in:
18571350067 2022-01-10 21:04:58 +08:00
parent 68cd027a59
commit 8d3a51a604
2 changed files with 14 additions and 7 deletions

View File

@ -40,7 +40,7 @@
<a-textarea placeholder="" :rows="6" v-model="radio.answerD" style="width: 100%" /> <a-textarea placeholder="" :rows="6" v-model="radio.answerD" style="width: 100%" />
</a-card> </a-card>
<a-card title="答案解析" :bordered="false"> <a-card title="答案解析" :bordered="false">
<a-textarea placeholder="" :rows="6" v-model="radio.asnwerParse" style="width: 100%" /> <a-textarea placeholder="" :rows="6" v-model="radio.answerParse" style="width: 100%" />
</a-card> </a-card>
</a-radio-group> </a-radio-group>
</a-tab-pane> </a-tab-pane>
@ -95,7 +95,7 @@
</a-card> </a-card>
</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.answerParse" style="width: 100%" />
</a-card> </a-card>
</a-tab-pane> </a-tab-pane>
@ -113,7 +113,7 @@
</template> </template>
</a-card> </a-card>
<a-card title="答案解析" :bordered="false"> <a-card title="答案解析" :bordered="false">
<a-textarea placeholder="" :rows="6" v-model="estimate.asnwerParse" style="width: 100%" /> <a-textarea placeholder="" :rows="6" v-model="estimate.answerParse" style="width: 100%" />
</a-card> </a-card>
</a-radio-group> </a-radio-group>
</a-tab-pane> </a-tab-pane>
@ -128,7 +128,7 @@
<a-textarea placeholder="" :rows="6" v-model="shortAnswer.rightAnswers" style="width: 100%" /> <a-textarea placeholder="" :rows="6" v-model="shortAnswer.rightAnswers" style="width: 100%" />
</a-card> </a-card>
<a-card title="答案解析" :bordered="false"> <a-card title="答案解析" :bordered="false">
<a-textarea placeholder="" :rows="6" v-model="shortAnswer.asnwerParse" style="width: 100%" /> <a-textarea placeholder="" :rows="6" v-model="shortAnswer.answerParse" style="width: 100%" />
</a-card> </a-card>
</a-tab-pane> </a-tab-pane>
@ -151,7 +151,7 @@
</div> </div>
</a-card> </a-card>
<a-card title="答案解析" :bordered="false"> <a-card title="答案解析" :bordered="false">
<a-textarea placeholder="" :rows="6" v-model="Completion.asnwerParse" style="width: 100%" /> <a-textarea placeholder="" :rows="6" v-model="Completion.answerParse" style="width: 100%" />
</a-card> </a-card>
</a-tab-pane> </a-tab-pane>
</a-tabs> </a-tabs>

View File

@ -50,7 +50,7 @@
</div> </div>
<!-- 显示简答题 --> <!-- 显示简答题 -->
<div v-if="questionDetail.questionType == 4"> <div v-if="questionDetail.questionType == 4 || questionDetail.questionType == 3">
<div class="answer">正确答案:&nbsp;&nbsp;&nbsp;&nbsp;{{ questionDetail.rightAnswers }}</div> <div class="answer">正确答案:&nbsp;&nbsp;&nbsp;&nbsp;{{ questionDetail.rightAnswers }}</div>
</div> </div>
@ -64,7 +64,7 @@
<div class="info_parent" v-if="quesitonList != null && quesitonList.length != 0"> <div class="info_parent" v-if="quesitonList != null && quesitonList.length != 0">
<div class="info">解析</div> <div class="info">解析</div>
<div class="info_main"> <div class="info_main">
{{ questionDetail.asnwerParse }} {{ questionDetail.answerParse }}
</div> </div>
</div> </div>
<a-divider :style="{ backgroundColor: '#000' }" /> <a-divider :style="{ backgroundColor: '#000' }" />
@ -143,6 +143,13 @@ export default {
if (this.questionDetail.questionType == '3') this.questionDetail.questionTypeName = '判断题' if (this.questionDetail.questionType == '3') this.questionDetail.questionTypeName = '判断题'
if (this.questionDetail.questionType == '4') this.questionDetail.questionTypeName = '简答题' if (this.questionDetail.questionType == '4') this.questionDetail.questionTypeName = '简答题'
if (this.questionDetail.questionType == '5') this.questionDetail.questionTypeName = '填空题' if (this.questionDetail.questionType == '5') this.questionDetail.questionTypeName = '填空题'
if(this.questionDetail.questionType == 3 && this.questionDetail.rightAnswers == 1) {
this.questionDetail.rightAnswers = '正确'
} else {
this.questionDetail.rightAnswers = '错误'
}
}) })
} }
}, },