Commit 8d8e885c authored by Facius's avatar Facius

fix: 已做题数目更新

parent ede5d1ba
......@@ -114,6 +114,7 @@ export default {
relationId: 0, // 绑卡用
loading: false,
canExperience: false, // 体验资格
finishCount: 0,
}
},
computed: {
......@@ -147,17 +148,6 @@ export default {
},
]
},
finishCount() {
return this.questionList[this.questionWarehouseId]
? this.questionList[this.questionWarehouseId].reduce(
(accumulator, currentValue) => {
if (currentValue.submitStatus) accumulator++
return accumulator
},
0
)
: 0
},
examText() {
return this.info.cardId ? '/' + this.info.totalExam : '题库进阶练习'
},
......@@ -260,6 +250,7 @@ export default {
} else {
this.queryMyQuestionWarehouseDetail(this.info.id || 0)
}
this.chagefinishCount()
},
methods: {
initData() {
......@@ -504,6 +495,17 @@ export default {
page.info = info
}
},
chagefinishCount() {
this.finishCount = this.questionList[this.questionWarehouseId]
? this.questionList[this.questionWarehouseId].reduce(
(accumulator, currentValue) => {
if (currentValue.submitStatus) accumulator++
return accumulator
},
0
)
: 0
},
},
}
</script>
......
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