| | |
| | | if (_this.partOrder !== nowPartOrder) { |
| | | _this.isShowGuide(true) |
| | | } |
| | | _this.preDisable = true |
| | | |
| | | // 如果上一题不是本段,则不能返回上一段 |
| | | if (this.isDiffPartOrder()) { |
| | | _this.preDisable = false |
| | | } else { |
| | | _this.preDisable = true |
| | | } |
| | | _this.nextDisable = false |
| | | _this.answer.answerItems[_this.order].startTime = _this.formatDate(new Date(), 'yyyy-MM-dd hh:mm:ss') |
| | | |
| | |
| | | let _this = this |
| | | _this.isShowGuide(false) |
| | | if (_this.order > 0) { |
| | | // 清空本题的选择 |
| | | _this.answer.answerItems[_this.order].content = null |
| | | _this.answer.answerItems[_this.order].completed = false |
| | | _this.answer.answerItems[_this.order].questionReport = null |
| | | _this.answer.answerItems[_this.order].readOnly = false |
| | | |
| | | // 设置回到上一题 |
| | | let num = --_this.order |
| | | _this.itemOrder = _this.form.titleItems[0].questionItems[num].itemOrder |
| | | _this.questionItem = _this.form.titleItems[0].questionItems[num] |
| | |
| | | examPaperAnswerApi.answerSubmit(answerSubmit, _this.memberToken).then(re => { |
| | | loading.close() |
| | | if (re.code === 1) { |
| | | _this.$router.push({ path: '/exam/finish', query: { name: _this.form.name, content: mess, tokenId: _this.memberToken } }) |
| | | _this.$router.push({ path: '/exam/finish', query: { name: _this.form.name, content: mess, tokenId: _this.memberToken, type: 'CIAQ' } }) |
| | | } else { |
| | | _this.$message.error(re.message + '/exam/finish') |
| | | } |