Commit 56e6ab16 by 陈超

A

parent 39d00edb
......@@ -401,7 +401,9 @@
current: 1,
paperOptions: {},
countDown: "00:00:00",
expand: false
expand: false,
//选项
currentOptions: []
}
},
computed: {
......@@ -457,19 +459,6 @@
}
}
},
//选项
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
},
//选择题答案
currentRightOptions: function() {
return this.currentQuestion.answer_true_option
......@@ -498,6 +487,14 @@
this.info = {:json_encode($paper)};
this.temp = {:json_encode($tempData)};
this.paperOptions = {:json_encode($paper_options)};
for(let k in this.currentQuestion.answer_options) {
let value = this.currentQuestion.answer_options[k]
this.currentOptions.push({
key: k,
value: value,
selected: false
})
}
console.log(this.info)
console.log(this.temp)
console.log(this.paperOptions)
......@@ -524,7 +521,6 @@
},
onChoose: function(opt) {
if(this.currentQuestionTypeKey == 'radio') {
console.log(this.currentOptions)
this.currentOptions.forEach( r => {
r.selected = opt.key == r.key
})
......
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