| | |
| | | reParam => { |
| | | if (reParam.code !== 1) { |
| | | // 职业兴趣报告特殊化处理 只有中文 |
| | | if (_this.doUrl === 'career_interests' || _this.doUrl === 'job') { |
| | | if (_this.doUrl === 'career_interests') { |
| | | _this.$i18n.locale = 'zh' |
| | | _this.setLangType('Chinese') |
| | | _this.$router.push({ path: '/demography/fill/index', query: { demographyMenber: _this.memberToken, isStart: false, langType: 'Chinese' } }) |
| | |
| | | if (_this.reportTemplateType === 'API_Fan') { |
| | | _this.$i18n.locale = 'zh' |
| | | _this.setLangType('Chinese') |
| | | _this.$router.push({ path: '/demography/fill/logo', query: { demographyMenber: _this.memberToken, isStart: false } }) |
| | | _this.$router.push({ path: '/demography/fill/logo', query: { demographyMenber: _this.memberToken, isStart: false, langType: 'Chinese' } }) |
| | | return |
| | | } |
| | | |
| | |
| | | if (reParam.response[0].langType === 'Chinese') { |
| | | this.$i18n.locale = 'zh' |
| | | _this.setLangType('Chinese') |
| | | } else if (reParam.response[0].langType === 'Thai') { |
| | | _this.setLangType('Thai') |
| | | this.$i18n.locale = 'th' |
| | | } else { |
| | | _this.setLangType('English') |
| | | this.$i18n.locale = 'en' |
| | |
| | | let answered = re.response.examItemOrderAndContentList |
| | | if (answered === null) { |
| | | examPaperApi.select(_this.memberToken, _this.langType).then(re => { |
| | | _this.setFormDo(re.response) |
| | | // _this.setFormDo(re.response) |
| | | _this.formDo = re.response |
| | | _this.setDoUrl(re.response.questionTemplateId) |
| | | // _this.$router.push({ path: '/guide/index', query: { formDo: _this.formDo } }) |
| | | _this.$router.push({ path: '/guide/index' }) |
| | | _this.$router.push({ path: '/guide/index', query: { formDo: _this.formDo } }) |
| | | // _this.$router.push({ path: '/guide/index' }) |
| | | }).catch(e => { |
| | | _this.$message.error(_this.$t('noquestionMsg')) |
| | | }) |