|
@@ -373,6 +373,7 @@ export default {
|
|
if (!(this.examQuestionList.length > 0)) {
|
|
if (!(this.examQuestionList.length > 0)) {
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
|
|
+ console.log("------" + this.answerIndex);
|
|
this.examQuestionList[this.answerIndex].userAnswer = this.answerValue;
|
|
this.examQuestionList[this.answerIndex].userAnswer = this.answerValue;
|
|
this.answerStatus = this.getAnswerItemResultFun(
|
|
this.answerStatus = this.getAnswerItemResultFun(
|
|
this.examQuestionList[this.answerIndex]
|
|
this.examQuestionList[this.answerIndex]
|
|
@@ -429,9 +430,20 @@ export default {
|
|
// 操作:下一题
|
|
// 操作:下一题
|
|
handleNextFun() {
|
|
handleNextFun() {
|
|
let nextIndex = this.answerIndex + 1;
|
|
let nextIndex = this.answerIndex + 1;
|
|
- if (nextIndex >= this.examQuestionList.length) {
|
|
+ // 最后一组的最后一题就结束考试
|
|
|
|
+ if (nextIndex >= this.examQuestionList.length && this.answerThroughNumber === 5) {
|
|
this.examsEndFun(); // 结束考试
|
|
this.examsEndFun(); // 结束考试
|
|
return;
|
|
return;
|
|
|
|
+ } else if (nextIndex >= this.examQuestionList.length) {
|
|
|
|
+ let grades = this.getUserExamAllPointsFun();
|
|
|
|
+ this.$router.replace({
|
|
|
|
+ name: "throughQuestionEnd",
|
|
|
|
+ params: {
|
|
|
|
+ allQuestionsNum: this.examQuestionList.length,
|
|
|
|
+ grades: grades
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ return;
|
|
}
|
|
}
|
|
this.handleExamQuestionItemFun(
|
|
this.handleExamQuestionItemFun(
|
|
this.examQuestionList[nextIndex],
|
|
this.examQuestionList[nextIndex],
|