mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-20 08:16:44 +08:00
修改试题显示问题
This commit is contained in:
@@ -174,7 +174,7 @@
|
||||
<div v-if="item.type < 900">
|
||||
<div style="display: flex;justify-content: space-between;background-color: #dcf1ff;padding: 5px;">
|
||||
<div>
|
||||
<span style="padding-right: 5px;"><el-checkbox v-model="item.checked"></el-checkbox></span>
|
||||
<span style="padding-right: 5px;"><el-checkbox v-model="item.checked" @change="checkedChange"></el-checkbox></span>
|
||||
<span v-if="item.type == 1">单选题</span>
|
||||
<span v-if="item.type == 2">多选题</span>
|
||||
<span v-if="item.type == 3">判断题</span>
|
||||
@@ -191,7 +191,7 @@
|
||||
<div style="padding: 15px;">
|
||||
<div>{{ item.title }}</div>
|
||||
<div v-if="qpaper.optShow">
|
||||
<div v-if="item.type == 3">{{item.answer?'正确':'错误'}}</div>
|
||||
<div v-if="item.type == 3">{{item.answer=='true'?'正确':'错误'}}</div>
|
||||
<div v-else v-for="(opt, optIdx) in item.optionList" :key="optIdx">{{ optIdx + 1 }}, {{ opt.content }}</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -224,7 +224,7 @@
|
||||
<div style="padding: 10px; font-size: 20px" v-for="(item, index) in viewShowData" :key="item.id">
|
||||
<div class="test-info">{{index+1}}.【{{typeFilter(item.type)}}】{{item.title}}</div>
|
||||
<div style="padding: 10px" v-if="item.type == 3">
|
||||
<div class="test-info"><span>正确答案:{{item.answer? '正确': '错误'}}</span></div>
|
||||
<div class="test-info"><span>正确答案:{{item.answer=='true'? '正确': '错误'}}</span></div>
|
||||
</div>
|
||||
<div style="padding: 10px" v-else>
|
||||
<div class="test-info" v-for="(cc,inx) in item.optionList" :key="inx"><span :class="(cc.isAnswer || cc.score > 0)?'right-key': ''">{{numberToLetter(inx+1)}}:{{cc.content}}</span></div>
|
||||
@@ -411,6 +411,9 @@ export default {
|
||||
// }
|
||||
},
|
||||
methods: {
|
||||
checkedChange(){
|
||||
this.$forceUpdate();
|
||||
},
|
||||
changeInput(e){
|
||||
this.$forceUpdate();
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user