| | |
| | | doExam: function () { |
| | | let _this = this |
| | | examPaperApi.updateTestMemberStatus(_this.memberToken).then(re => { |
| | | _this.$router.push({ path: '/exam/' + _this.doUrl, query: { formDo: _this.$route.query.formDo } }) |
| | | // LAQ特殊处理 |
| | | if (_this.formDo.name.indexOf('LAQ') !== -1) { |
| | | _this.$router.push({ path: '/exam/' + _this.formDo.questionTemplateId, query: { formDo: _this.$route.query.formDo } }) |
| | | } else { |
| | | _this.$router.push({ path: '/exam/' + _this.doUrl, query: { formDo: _this.$route.query.formDo } }) |
| | | } |
| | | }).catch(re => { |
| | | _this.$message.error(re.message + ' 更新状态失败') |
| | | }) |
| | |
| | | return |
| | | } |
| | | // 特殊处理 LAQ测试包 结束提示语 |
| | | if (_this.form.name === 'LAQ') { |
| | | if (_this.form.name.indexOf('LAQ') !== -1) { |
| | | _this.$router.push({ path: '/exam/finish', query: { name: _this.form.name, content: _this.$t('finishMsg') } }) |
| | | return |
| | | } |
| | |
| | | loading.close() |
| | | if (re.code === 1) { |
| | | // 特殊处理 LAQ测试包 MAQ+CAQ |
| | | if (_this.form.name === 'LAQ') { |
| | | if (_this.form.name.indexOf('LAQ') !== -1) { |
| | | console.log('答完题,看看要不要去CAQ1') |
| | | examPaperApi.select(_this.memberToken, _this.langType).then(re => { |
| | | _this.form = re.response |
| | | console.log(_this.form) |
| | | _this.$router.push({ path: '/guide/index', query: { formDo: _this.form } }) |
| | | }).catch(e => { |
| | | _this.$message.error(_this.$t('noquestionMsg')) |