Commit 0437857d by 陈超

A

parent 72bd48bf
......@@ -335,21 +335,9 @@
<template v-if="showChoiceQuestion">
<div v-html="currentQuestion.content" class="testPaperInfo"></div>
<ul>
<li class="testPaperAnswer box">
<span class="testPaperAnswer_num testPaperAnswer_numAt">A</span>
<p class="testPaperAnswer_desc flex1">180</p>
</li>
<li class="testPaperAnswer box">
<span class="testPaperAnswer_num">B</span>
<p class="testPaperAnswer_desc flex1">180且总销售额是总进货成本的2倍且总销售额是总进货成本的2倍且总销售额是总进货成本的2倍且总销售额是总进货成本的2倍且总销售额是总进货成本的2倍</p>
</li>
<li class="testPaperAnswer box">
<span class="testPaperAnswer_num">A</span>
<p class="testPaperAnswer_desc flex1">180</p>
</li>
<li class="testPaperAnswer box">
<span class="testPaperAnswer_num">A</span>
<p class="testPaperAnswer_desc flex1">180</p>
<li v-for="(opt, index) in currentOptions" :key="index" class="testPaperAnswer box">
<span class="testPaperAnswer_num" :class="opt.selected ? 'testPaperAnswer_numAt' : ''">{{opt.key}}</span>
<div v-html="opt.value" class="testPaperAnswer_desc flex1"></div>
</li>
</ul>
</template>
......@@ -470,6 +458,19 @@
}
}
},
//选项
currentOptions: function() {
let array = []
for(let k in this.currentQuestion.answer_options) {
let value = this.currentQuestion.answer_options[k]
array.push({
key: k,
value: value,
selected: false
})
}
return array
},
//Helper
showChoiceQuestion: function() {
let key = this.currentQuestionTypeKey
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment