|
@@ -596,7 +596,7 @@ export default {
|
|
|
//简答题
|
|
|
if(hasSpecail) {
|
|
|
|
|
|
- if (item.ques && (item.ques.text.length || item.ques.imageList.length)) {
|
|
|
+ if (item.ques && (item.ques.text || item.ques.imageList.length)) {
|
|
|
count++;
|
|
|
}
|
|
|
}
|
|
@@ -683,6 +683,7 @@ export default {
|
|
|
let number = 0;
|
|
|
let score = 0;
|
|
|
let doQuestionNum = 0;
|
|
|
+ let doQuestionIds = []; //做过的题目id
|
|
|
this.questionList.length && this.questionList.forEach((item,index) => {
|
|
|
if(item.type == 1) {
|
|
|
if(item.ques == item.ans) {
|
|
@@ -691,6 +692,7 @@ export default {
|
|
|
}
|
|
|
if (item.ques) {
|
|
|
doQuestionNum++;
|
|
|
+ doQuestionIds.push(item.questionId)
|
|
|
}
|
|
|
} else if(item.type == 2) {
|
|
|
let isRight = item.ques && item.ques.every((quesItem,quesIndex) => {
|
|
@@ -703,6 +705,7 @@ export default {
|
|
|
}
|
|
|
if (item.ques && item.ques.length) {
|
|
|
doQuestionNum++;
|
|
|
+ doQuestionIds.push(item.questionId)
|
|
|
}
|
|
|
} else if(item.type == 3) {
|
|
|
if(item.ques == item.ans) {
|
|
@@ -711,14 +714,17 @@ export default {
|
|
|
}
|
|
|
if (item.ques) {
|
|
|
doQuestionNum++;
|
|
|
+ doQuestionIds.push(item.questionId)
|
|
|
}
|
|
|
} else if (item == 4) {
|
|
|
if (item.ques.length) {
|
|
|
doQuestionNum++;
|
|
|
+ doQuestionIds.push(item.questionId)
|
|
|
}
|
|
|
} else if (item.type == 5) {
|
|
|
- if (item.ques) {
|
|
|
+ if (item.ques && (item.ques.imageList.length || item.ques.text)) {
|
|
|
doQuestionNum++;
|
|
|
+ doQuestionIds.push(item.questionId)
|
|
|
}
|
|
|
}
|
|
|
})
|
|
@@ -727,6 +733,7 @@ export default {
|
|
|
moduleExamId:this.moduleId || 0,
|
|
|
chapterExamId:this.chapterId || 0,
|
|
|
examId:this.id,
|
|
|
+ doQuestionIds:doQuestionIds.join(''),
|
|
|
goodsId:this.goodsId,
|
|
|
recordId: this.recordId,
|
|
|
rightQuestionNum:number,
|
|
@@ -875,7 +882,7 @@ export default {
|
|
|
}
|
|
|
} else if (item.type == 5) {
|
|
|
allScore += item.score;
|
|
|
- if (item.ques && (item.ques.imageList || item.ques.text)) {
|
|
|
+ if (item.ques && (item.ques.imageList.length || item.ques.text)) {
|
|
|
doQuestionNum++;
|
|
|
doQuestionIds.push(item.questionId)
|
|
|
}
|