| | |
| | | } |
| | | }) |
| | | } |
| | | // JAQ报告最后大题完成 启用提交按钮 |
| | | let isCompleted1 = _this.answer.answerItems[_this.answer.answerItems.length - 2].completed; |
| | | let isCompleted2 = _this.answer.answerItems[_this.answer.answerItems.length - 1].completed; |
| | | if (isCompleted1 && isCompleted2) { |
| | | this.submitDisable = false |
| | | } |
| | | |
| | | if (jumpNextFlag) { |
| | | _this.nextSubject() |
| | | this.submitDisable = false |
| | | } else { |
| | | this.submitDisable = true |
| | | } |
| | | }, |
| | | submitForm () { |
| | |
| | | for (let i = 0; i < _this.answer.answerItems.length; i++) { |
| | | if (_this.answer.answerItems[i].content === null) { |
| | | unFinish = true |
| | | _this.answer.finish = 0 |
| | | // 有未完成的答题应该是 2答题中 |
| | | // 之前是0未处理 |
| | | _this.answer.finish = 2 |
| | | } |
| | | } |
| | | if (unFinish) { |
| | |
| | | let answerSubmit = _this.getSubmitAnswerValue() |
| | | examPaperAnswerApi.answerSubmit(answerSubmit, _this.memberToken).then(re => { |
| | | if (re.code === 1) { |
| | | _this.$router.push({ path: '/exam/finish', query: { name: _this.form.name, content: mess } }) |
| | | _this.$router.push({ path: '/exam/finish', query: { name: _this.form.name, content: mess, tokenId: _this.memberToken } }) |
| | | } else { |
| | | _this.$message.error(re.message + '/exam/finish') |
| | | } |