| | |
| | | } |
| | | }, |
| | | created: function () { |
| | | // this.getFormDo() |
| | | let _this = this |
| | | _this.ismobile = /ipad|iphone|midp|rv:1.2.3.4|ucweb|android|windows ce|windows mobile/.test(navigator.userAgent.toLowerCase()) |
| | | // 多语言 |
| | | _this.setLangFlag(false) |
| | | _this.form = this.$route.query.formDo |
| | | if (_this.form !== {} && _this.form !== undefined) { |
| | | _this.form = undefined |
| | | if (_this.form && _this.form !== {} && _this.form !== undefined) { |
| | | _this.formLoading = true |
| | | _this.remainTime = _this.form.suggestTime * 60 |
| | | _this.problemLength = _this.form.titleItems[0].questionItems.length - 1 |
| | |
| | | ).catch(e => { |
| | | }) |
| | | } |
| | | |
| | | }, |
| | | mounted () { |
| | | }, |
| | |
| | | if (re.code === 1) { |
| | | // 特殊处理 LAQ测试包 MAQ+CAQ |
| | | if (_this.form.name.indexOf('LAQ') !== -1) { |
| | | console.log('答完题,看看要不要去CAQ1') |
| | | examPaperApi.select(_this.memberToken, _this.langType).then(re => { |
| | | _this.form = re.response |
| | | this.setFormDo(_this.form) |
| | | _this.$router.push({ path: '/guide/index', query: { formDo: _this.form } }) |
| | | }).catch(e => { |
| | | _this.$message.error(_this.$t('noquestionMsg')) |
| | |
| | | return _this.form.titleItems[0].questionItems[_this.order].partOrder !== _this.form.titleItems[0].questionItems[_this.order - 1].partOrder |
| | | }, |
| | | ...mapMutations('user', ['setLangType']), |
| | | ...mapMutations('user', ['setLangFlag']) |
| | | ...mapMutations('user', ['setLangFlag']), |
| | | ...mapMutations('user', ['getFormDo']), |
| | | ...mapMutations('user', ['setFormDo']) |
| | | }, |
| | | computed: { |
| | | ...mapGetters('enumItem', ['enumFormat']), |
| | |
| | | ...mapState('user', { memberToken: state => state.memberToken }), |
| | | ...mapState('user', { langType: state => state.langType }), |
| | | ...mapState('user', { langFlag: state => state.langFlag }), |
| | | ...mapState('user', { formDo: state => state.formDo }), |
| | | ...mapState('exam', { doUrl: state => state.doUrl }) |
| | | } |
| | | } |