Commit 8d8e885c authored by Facius's avatar Facius

fix: 已做题数目更新

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