[测评系统]--前端(用户答题页面)
yj
2024-11-18 0f3a72e00606a7626406fcd76f97098d99686481
src/views/demography/langOption.vue
@@ -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,
@@ -40,6 +41,7 @@
    }
  },
  created: function () {
    let _this = this
    window.clearInterval(this.timer)
    _this.getLangType()
@@ -76,7 +78,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 () {
@@ -90,7 +92,6 @@
            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 => {