计算分数

This commit is contained in:
shijingjing
2023-02-17 15:24:28 +08:00
parent 14ffbe81f7
commit ae600dc2c3

View File

@@ -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 ++
}