|
@@ -971,6 +971,8 @@ export default {
|
|
|
let score = 0; //计算总分
|
|
|
let reportStatus = 0;
|
|
|
let number = 0;
|
|
|
+ let doQuestionIds = []; //做过的题目id
|
|
|
+ let doQuestionNum = 0; //做过的题目数量
|
|
|
let passScore = 0;
|
|
|
let allScore = 0; //总分
|
|
|
this.questionList.forEach((item, index) => {
|
|
@@ -984,6 +986,11 @@ export default {
|
|
|
|
|
|
item.scoreResult = 0;
|
|
|
}
|
|
|
+
|
|
|
+ if (item.ques) {
|
|
|
+ doQuestionNum++;
|
|
|
+ doQuestionIds.push(item.questionId)
|
|
|
+ }
|
|
|
allScore += item.score;
|
|
|
} else if (item.type == 2) {
|
|
|
let isRight =
|
|
@@ -1034,6 +1041,11 @@ export default {
|
|
|
score += checkboxScore;
|
|
|
|
|
|
}
|
|
|
+
|
|
|
+ if (item.ques && item.ques.length) {
|
|
|
+ doQuestionNum++;
|
|
|
+ doQuestionIds.push(item.questionId)
|
|
|
+ }
|
|
|
allScore += item.score;
|
|
|
} else if (item.type == 3) {
|
|
|
if (item.ques == item.ans) {
|
|
@@ -1044,6 +1056,10 @@ export default {
|
|
|
|
|
|
item.scoreResult = 0;
|
|
|
}
|
|
|
+ if (item.ques) {
|
|
|
+ doQuestionNum++;
|
|
|
+ doQuestionIds.push(item.questionId)
|
|
|
+ }
|
|
|
allScore += item.score;
|
|
|
} else {
|
|
|
allScore += item.score;
|
|
@@ -1066,7 +1082,9 @@ export default {
|
|
|
courseId:this.courseId,
|
|
|
reportStatus:reportStatus,
|
|
|
rightQuestionNum: number,
|
|
|
+ doQuestionNum:doQuestionNum,
|
|
|
status: 1,
|
|
|
+ doQuestionIds:doQuestionIds.join(','),
|
|
|
gradeId:this.gradeId,
|
|
|
performance: score,
|
|
|
totalScore: allScore,
|
|
@@ -1092,8 +1110,10 @@ export default {
|
|
|
let number = 0;
|
|
|
let score = 0;
|
|
|
let doQuestionNum = 0;
|
|
|
+ let passScore = 0;
|
|
|
let reportStatus = 0;
|
|
|
this.questionList.forEach((item, index) => {
|
|
|
+ passScore = item.passScore
|
|
|
if (item.type == 1) {
|
|
|
if (item.ques == item.ans) {
|
|
|
score += item.score;
|
|
@@ -1174,8 +1194,11 @@ export default {
|
|
|
}
|
|
|
});
|
|
|
|
|
|
- if(score >= 60) {
|
|
|
+ //大于分及格
|
|
|
+ if(score >= passScore) {
|
|
|
reportStatus = 1
|
|
|
+ } else {
|
|
|
+ reportStatus = 0
|
|
|
}
|
|
|
|
|
|
this.$api
|
|
@@ -1648,11 +1671,13 @@ export default {
|
|
|
allScore += item.score;
|
|
|
if (item.ques && item.ques.length) {
|
|
|
doQuestionNum++;
|
|
|
+ doQuestionIds.push(item.questionId)
|
|
|
}
|
|
|
} else if (item.type == 5) {
|
|
|
allScore += item.score;
|
|
|
- if (item.ques) {
|
|
|
+ if (item.ques && (item.ques.imageList || item.ques.text)) {
|
|
|
doQuestionNum++;
|
|
|
+ doQuestionIds.push(item.questionId)
|
|
|
}
|
|
|
}
|
|
|
});
|
|
@@ -1675,9 +1700,9 @@ export default {
|
|
|
reportStatus:reportStatus,
|
|
|
recordId: this.recordId,
|
|
|
courseId:this.courseId,
|
|
|
- // rightQuestionNum: number,
|
|
|
+ rightQuestionNum: number,
|
|
|
status: 1,
|
|
|
- // doQuestionIds:doQuestionIds.join(','),
|
|
|
+ doQuestionIds:doQuestionIds.join(','),
|
|
|
// rightQuestionIds:rightQuestionIds.join(','),
|
|
|
// doQuestionNum: doQuestionNum,
|
|
|
performance: score,
|