|
@@ -246,6 +246,7 @@ export default {
|
|
|
bankNum: 5, // 随机练习的题目数量
|
|
|
examName: "", // 试卷名称
|
|
|
doMode: "",
|
|
|
+ courseType:''
|
|
|
};
|
|
|
},
|
|
|
onUnload() {},
|
|
@@ -267,6 +268,7 @@ export default {
|
|
|
this.chapterId = option.chapterId || 0;
|
|
|
this.goodsId = option.goodsId || "";
|
|
|
this.doMode = option.doMode;
|
|
|
+ this.courseType = option.courseType
|
|
|
this.examWrongRecordWrongNum();
|
|
|
this.bankExamNextExam();
|
|
|
// await this.bankExam();
|
|
@@ -582,10 +584,15 @@ export default {
|
|
|
},
|
|
|
examWrongRecordWrongNum() {
|
|
|
return new Promise((resolve) => {
|
|
|
- this.$api.examWrongRecordWrongNum(this.recordId).then((res) => {
|
|
|
- this.wrongRecordWrongNum = res.data.data || 0;
|
|
|
- resolve();
|
|
|
- });
|
|
|
+ this.$api
|
|
|
+ .examWrongRecordWrongNum({
|
|
|
+ recordId: this.recordId,
|
|
|
+ courseType: this.courseType,
|
|
|
+ })
|
|
|
+ .then((res) => {
|
|
|
+ this.wrongRecordWrongNum = res.data.data || 0;
|
|
|
+ resolve();
|
|
|
+ });
|
|
|
});
|
|
|
},
|
|
|
/**
|