| | |
| | | return { |
| | | langTypes: [], |
| | | langSelectValue: this.$route.query.langSelectValue, |
| | | // fromDo: this.$route.query.fromDo, |
| | | langWelcome: this.$t('langWelcomeChinese'), |
| | | langOption: this.$t('langOptionChinese'), |
| | | timer: null, |
| | |
| | | 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 () { |
| | |
| | | demographyApi.queryLangList(_this.memberToken, _this.reportTemplateId).then(function (result) { |
| | | if (result && result.code === 1) { |
| | | _this.langTypes = result.response |
| | | console.log("longTypes", _this.langTypes) |
| | | } |
| | | } |
| | | ).catch(e => { |
| | |
| | | _this.$message.error(_this.$t('noquestionMsg')) |
| | | }) |
| | | } |
| | | |
| | | }, |
| | | ...mapMutations('user', ['setMemberTocken']), |
| | | ...mapMutations('user', ['setLangType']), |