[测评系统]--前端(用户答题页面)
yj
2024-11-25 a778d5e53e74b2170e37607b2536a957dbc1d664
src/views/demography/langOption.vue
@@ -7,8 +7,8 @@
            <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>
@@ -32,6 +32,7 @@
    return {
      langTypes: [],
      langSelectValue: this.$route.query.langSelectValue,
      // fromDo: this.$route.query.fromDo,
      langWelcome: this.$t('langWelcomeChinese'),
      langOption: this.$t('langOptionChinese'),
      timer: null,
@@ -76,7 +77,7 @@
    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 () {
@@ -108,6 +109,7 @@
          _this.$message.error(_this.$t('noquestionMsg'))
        })
      }
    },
    ...mapMutations('user', ['setMemberTocken']),
    ...mapMutations('user', ['setLangType']),