From d9e74666ce84b0f32c5cd6f9799d61bd0b009f10 Mon Sep 17 00:00:00 2001 From: yj <2077506045@qq.com> Date: 星期四, 04 七月 2024 09:28:27 +0800 Subject: [PATCH] 1.修复填写人口学变量页面刷新后变为英文的问题 2.更新JAQ文字,打开岗位说明 -> 问卷作答说明 --- src/views/demography/index.vue | 21 +++++++++++++++++---- 1 files changed, 17 insertions(+), 4 deletions(-) diff --git a/src/views/demography/index.vue b/src/views/demography/index.vue index c93b63c..99fe45b 100644 --- a/src/views/demography/index.vue +++ b/src/views/demography/index.vue @@ -72,7 +72,7 @@ </div> <div v-if="item.types=='select' && item.isRequired !='1'"> <el-form-item :label="item.paramName"> - <el-select v-model="item.paramValue" :placeholder= "$t('pleaseSelect')"> + <el-select v-model="item.paramValue" :placeholder= "$t('pleaseSelect')" :popper-append-to-body="false"> <el-option v-for="itemIter in item.dictData" :key="itemIter.dictValue" @@ -113,12 +113,24 @@ } }, created () { + const langType = localStorage.getItem('langType') + if (langType) { + this.setLangType(langType) + } else { + localStorage.setItem('langType', this.langType) + } + }, + beforeDestroy () { + localStorage.removeItem('langType') + }, + beforeUpdate () { + }, + updated () { }, methods: { submitDemography: function () { let _this = this _this.submitDisable = true - console.log( this.$refs.demographyMenber) this.$refs.demographyMenber.validate(vaild => { if (vaild) { _this.parasInfos = [] @@ -132,7 +144,7 @@ _paramsInfo.paramId = _this.demographyMenber.data[i].paramId _paramsInfo.paramName = _this.demographyMenber.data[i].paramName _paramsInfo.paramValue = _this.demographyMenber.data[i].paramValue - if (_paramsInfo.paramValue.trim() === '') { + if (!_paramsInfo.paramValue) { continue } _this.parasInfos.push(_paramsInfo) @@ -192,7 +204,8 @@ }) }, ...mapMutations('user', ['setMemberTocken']), - ...mapMutations('exam', ['setDoUrl']) + ...mapMutations('exam', ['setDoUrl']), + ...mapMutations('user', ['setLangType']) }, computed: { ...mapState('user', { memberToken: state => state.memberToken }), -- Gitblit v1.9.1