计算分数
This commit is contained in:
@@ -123,11 +123,10 @@ export default {
|
||||
this.score=this.score + this.subjectConfigs[this.list[this.activeIndex].type].eachScore
|
||||
this.rightCount ++
|
||||
}
|
||||
}
|
||||
if(this.list[this.activeIndex].type==1) { // 多选
|
||||
} else if(this.list[this.activeIndex].type==1) { // 多选
|
||||
this.rightOpt = this.list[this.activeIndex].items.filter(e=> e.checked==1).map(i=> i.sort)
|
||||
console.log(this.rightOpt);
|
||||
if(this.list[this.activeIndex].items.every(item=>item.checked===item.isChecked)){
|
||||
|
||||
if(this.list[this.activeIndex].items.every(item=>item.checked == item.isChecked)){
|
||||
this.score = this.score + this.subjectConfigs[this.list[this.activeIndex].type].eachScore
|
||||
this.rightCount ++
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user