|
@@ -866,11 +866,13 @@ export default {
|
|
allScore += item.score;
|
|
allScore += item.score;
|
|
if (item.ques && item.ques.length) {
|
|
if (item.ques && item.ques.length) {
|
|
doQuestionNum++;
|
|
doQuestionNum++;
|
|
|
|
+ doQuestionIds.push(item.questionId)
|
|
}
|
|
}
|
|
} else if (item.type == 5) {
|
|
} else if (item.type == 5) {
|
|
allScore += item.score;
|
|
allScore += item.score;
|
|
- if (item.ques) {
|
|
|
|
|
|
+ if (item.ques && (item.ques.imageList.length || item.ques.text)) {
|
|
doQuestionNum++;
|
|
doQuestionNum++;
|
|
|
|
+ doQuestionIds.push(item.questionId)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
});
|
|
});
|
|
@@ -937,6 +939,7 @@ export default {
|
|
let number = 0;
|
|
let number = 0;
|
|
let score = 0;
|
|
let score = 0;
|
|
let doQuestionNum = 0;
|
|
let doQuestionNum = 0;
|
|
|
|
+ let doQuestionIds = []; //做过的题目id
|
|
this.questionList.forEach((item, index) => {
|
|
this.questionList.forEach((item, index) => {
|
|
if (item.type == 1) {
|
|
if (item.type == 1) {
|
|
if (item.ques == item.ans) {
|
|
if (item.ques == item.ans) {
|
|
@@ -946,6 +949,7 @@ export default {
|
|
|
|
|
|
if (item.ques) {
|
|
if (item.ques) {
|
|
doQuestionNum++;
|
|
doQuestionNum++;
|
|
|
|
+ doQuestionIds.push(item.questionId)
|
|
}
|
|
}
|
|
} else if (item.type == 2) {
|
|
} else if (item.type == 2) {
|
|
let isRight =
|
|
let isRight =
|
|
@@ -1001,6 +1005,7 @@ export default {
|
|
}
|
|
}
|
|
if (item.ques && item.ques.length) {
|
|
if (item.ques && item.ques.length) {
|
|
doQuestionNum++;
|
|
doQuestionNum++;
|
|
|
|
+ doQuestionIds.push(item.questionId)
|
|
}
|
|
}
|
|
} else if (item.type == 3) {
|
|
} else if (item.type == 3) {
|
|
if (item.ques == item.ans) {
|
|
if (item.ques == item.ans) {
|
|
@@ -1010,14 +1015,17 @@ export default {
|
|
|
|
|
|
if (item.ques) {
|
|
if (item.ques) {
|
|
doQuestionNum++;
|
|
doQuestionNum++;
|
|
|
|
+ doQuestionIds.push(item.questionId)
|
|
}
|
|
}
|
|
} else if (item == 4) {
|
|
} else if (item == 4) {
|
|
if (item.ques.length) {
|
|
if (item.ques.length) {
|
|
doQuestionNum++;
|
|
doQuestionNum++;
|
|
|
|
+ doQuestionIds.push(item.questionId)
|
|
}
|
|
}
|
|
} else if (item.type == 5) {
|
|
} else if (item.type == 5) {
|
|
- if (item.ques) {
|
|
|
|
|
|
+ if (item.ques && (item.ques.imageList.length || item.ques.text)) {
|
|
doQuestionNum++;
|
|
doQuestionNum++;
|
|
|
|
+ doQuestionIds.push(item.questionId)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
});
|
|
});
|
|
@@ -1027,6 +1035,7 @@ export default {
|
|
examId: this.id,
|
|
examId: this.id,
|
|
goodsId: this.goodsId,
|
|
goodsId: this.goodsId,
|
|
recordId: this.recordId,
|
|
recordId: this.recordId,
|
|
|
|
+ doQuestionIds:doQuestionIds.join(','),
|
|
rightQuestionNum: number,
|
|
rightQuestionNum: number,
|
|
moduleExamId:this.moduleId || 0,
|
|
moduleExamId:this.moduleId || 0,
|
|
chapterExamId:this.chapterId || 0,
|
|
chapterExamId:this.chapterId || 0,
|
|
@@ -1197,8 +1206,10 @@ export default {
|
|
item.ans = item.answerQuestion;
|
|
item.ans = item.answerQuestion;
|
|
}
|
|
}
|
|
});
|
|
});
|
|
|
|
+
|
|
|
|
|
|
this.questionList = res.data.data;
|
|
this.questionList = res.data.data;
|
|
|
|
+ console.log(this.questionList)
|
|
this.lastCount = this.questionList.length;
|
|
this.lastCount = this.questionList.length;
|
|
this.examRecord();
|
|
this.examRecord();
|
|
this.getCollectInfo(this.current);
|
|
this.getCollectInfo(this.current);
|
|
@@ -1565,11 +1576,13 @@ export default {
|
|
allScore += item.score;
|
|
allScore += item.score;
|
|
if (item.ques && item.ques.length) {
|
|
if (item.ques && item.ques.length) {
|
|
doQuestionNum++;
|
|
doQuestionNum++;
|
|
|
|
+ doQuestionIds.push(item.questionId)
|
|
}
|
|
}
|
|
} else if (item.type == 5) {
|
|
} else if (item.type == 5) {
|
|
allScore += item.score;
|
|
allScore += item.score;
|
|
- if (item.ques) {
|
|
|
|
|
|
+ if (item.ques && (item.ques.imageList.length || item.ques.text)) {
|
|
doQuestionNum++;
|
|
doQuestionNum++;
|
|
|
|
+ doQuestionIds.push(item.questionId)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
});
|
|
});
|