|
|
@ -306,6 +306,7 @@ export default { |
|
|
|
this.isDone = true |
|
|
|
this.isDone = true |
|
|
|
this.$message.warning('测评时间结束'); |
|
|
|
this.$message.warning('测评时间结束'); |
|
|
|
clearInterval(this.timer) |
|
|
|
clearInterval(this.timer) |
|
|
|
|
|
|
|
this.prevQues() |
|
|
|
} |
|
|
|
} |
|
|
|
},1000) |
|
|
|
},1000) |
|
|
|
}, |
|
|
|
}, |
|
|
@ -361,8 +362,11 @@ export default { |
|
|
|
if(res.data){ |
|
|
|
if(res.data){ |
|
|
|
this.question = res.data |
|
|
|
this.question = res.data |
|
|
|
this.selected = this.history[this.question.currentQuestionSortNo-1] |
|
|
|
this.selected = this.history[this.question.currentQuestionSortNo-1] |
|
|
|
this.handleQues() |
|
|
|
this.isDone ? this.submitQues() : this.handleQues() |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
}else if(this.isDone){ |
|
|
|
|
|
|
|
if(!this.selected) this.selected = 'A' |
|
|
|
|
|
|
|
this.submitQues() |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
async submitQues() { |
|
|
|
async submitQues() { |
|
|
|