新增判断题正确答案改为 AB

This commit is contained in:
18571350067 2022-02-25 17:57:19 +08:00
parent 756e8f1a9b
commit ed9d4d96d1
3 changed files with 11 additions and 10 deletions

View File

@ -18,7 +18,7 @@
></video-player>
</div>
<p v-if="courseware.type == '2'" class="text">课件名称{{ coursewareName }}</p>
<p v-if="courseware.type == '2'" class="text">课件名称{{ courseware.name }}</p>
<div v-if="courseware.type == '2'" style="margin-left: 30%;margin-top:15%">
<a-card class="card">
<div>
@ -49,7 +49,7 @@
</div>
</a-radio-group>
</a-tab-pane>
<a-tab-pane key="2" tab="课中检测" force-render>
<a-tab-pane v-if="!this.$route.query.isOther" key="2" tab="课中检测" force-render>
<div v-if="question.length == 0">
<a-empty description="还没有设置必选题~~" />
</div>
@ -70,11 +70,11 @@
</div>
<!-- 判断题内容 -->
<div v-if="item.questionType == 3 && item.rightAnswers == 1">
<div class="answer">正确答案:&nbsp;&nbsp;&nbsp;&nbsp;{{ 正确 }}</div>
<div v-if="item.questionType == 3 && item.rightAnswers == 'A' ">
<div class="answer">正确答案:&nbsp;&nbsp;&nbsp;&nbsp; 正确 </div>
</div>
<div v-if="item.questionType == 3 && item.rightAnswers == 2">
<div class="answer">正确答案:&nbsp;&nbsp;&nbsp;&nbsp;{{ 错误 }}</div>
<div v-if="item.questionType == 3 && item.rightAnswers == 'B' ">
<div class="answer">正确答案:&nbsp;&nbsp;&nbsp;&nbsp; 错误 </div>
</div>
<!-- 显示简答题 -->
@ -156,6 +156,7 @@ export default {
},
created () {
console.log('porp - coursewareId :', this.coursewareId)
console.log('porp - isOther :', this.$route.query.isOther)
const parameter = {}
coursewareDeatil(Object.assign(parameter, this.queryParam, { isEdit: 0 })).then(res => {
//

View File

@ -108,8 +108,8 @@
<a-card :bordered="false">
<template slot="title">
选项从选项中选择一个作为答案<br />
<a-radio value="1"> 正确 </a-radio>
<a-radio value="2"> 错误 </a-radio>
<a-radio value="A"> 正确 </a-radio>
<a-radio value="B"> 错误 </a-radio>
</template>
</a-card>
<a-card title="答案解析" :bordered="false">

View File

@ -156,11 +156,11 @@ export default {
if (this.questionDetail.questionType == '5')
this.questionDetail.questionTypeName = '填空题';
if (this.questionDetail.questionType == 3 && this.questionDetail.rightAnswers == 1) {
if (this.questionDetail.questionType == 3 && this.questionDetail.rightAnswers == 'A') {
this.questionDetail.rightAnswers = '正确';
} else if (
this.questionDetail.questionType == 3 &&
this.questionDetail.rightAnswers == 2
this.questionDetail.rightAnswers == "B"
) {
this.questionDetail.rightAnswers = '错误';
}