chengdu
yujialong 3 years ago
parent 229d8c3261
commit 814e6e9e84
  1. 6
      src/components/page/Dashboard.vue
  2. 6
      src/components/page/TeachingVideo.vue

@ -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() {

@ -293,6 +293,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)
}, },
@ -350,8 +351,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() {

Loading…
Cancel
Save