| | |
| | | <el-select v-model="langSelectValue" :placeholder= "$t('pleaseSelect')" style="width: 55%"> |
| | | <el-option |
| | | v-for="itemIter in langTypes" |
| | | :key="itemIter.dictValue" |
| | | :label="itemIter.dictValue" |
| | | :key="itemIter.dictLabel" |
| | | :label="itemIter.dictLabel=='Chinese'?'中文':itemIter.dictLabel" |
| | | :value="itemIter.dictValue"> |
| | | </el-option> |
| | | </el-select> |
| | |
| | | return { |
| | | langTypes: [], |
| | | langSelectValue: this.$route.query.langSelectValue, |
| | | fromDo: this.$route.query.fromDo, |
| | | langWelcome: this.$t('langWelcomeChinese'), |
| | | langOption: this.$t('langOptionChinese'), |
| | | timer: null, |
| | |
| | | } |
| | | }, |
| | | created: function () { |
| | | |
| | | let _this = this |
| | | window.clearInterval(this.timer) |
| | | _this.getLangType() |
| | |
| | | submitLangOption: function () { |
| | | let _this = this |
| | | _this.setLangType(_this.langSelectValue) |
| | | _this.$router.push({ path: '/demography/fill/index', query: { demographyMenber: _this.memberToken, isStart: false } }) |
| | | _this.$router.push({ path: '/demography/fill/index', query: { demographyMenber: _this.memberToken, isStart: false, langType: _this.langType } }) |
| | | window.clearInterval(this.timer) |
| | | }, |
| | | getLangAndRportTemplateId () { |
| | |
| | | if (_this.reportTemplateId.trim() === '' || _this.reportTemplateId.trim() === null) { |
| | | examPaperApi.selectTokenId(_this.memberToken).then(re => { |
| | | if (re.response.finish === 1) { |
| | | _this.$router.push({ path: '/exam/finish', query: { name: '', content: _this.$t('finishMsg') } }) |
| | | _this.$router.push({ path: '/exam/finish', query: { name: '', content: _this.$t('finishMsg'), tokenId: _this.memberToken } }) |
| | | } else { |
| | | _this.setReportTemplateId(re.response.reportTemplateId) |
| | | demographyApi.queryLangList(_this.memberToken, _this.reportTemplateId).then(function (result) { |