[测评系统]--前端(用户答题页面)
1.修复填写人口学变量页面刷新后变为英文的问题
2.更新JAQ文字,打开岗位说明 -> 问卷作答说明
1个文件已添加
7个文件已修改
1个文件已删除
32 ■■■■ 已修改文件
dist-20240411.zip 补丁 | 查看 | 原始文档 | blame | 历史
dist-20240703.zip 补丁 | 查看 | 原始文档 | blame | 历史
src/lang/en.js 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/lang/th.js 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/lang/zh.js 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/demography/index.vue 17 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/demography/langOption.vue 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/demography/login.vue 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/exam/paper/guide.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
dist-20240411.zip
Binary files differ
dist-20240703.zip
Binary files differ
src/lang/en.js
@@ -29,6 +29,7 @@
  finishSubmit: 'You have completed the work behavior questionnaire, and the data has been successfully uploaded to the server and saved. Thank you.',
  selectData: 'Date',
  startDo: 'Next',
  openJobDesc: '问卷作答说明',
  startDo_apifan: 'Start the Test',
  second: ' second ',
  min: ' minute ',
src/lang/th.js
@@ -29,6 +29,7 @@
  finishSubmit: 'You have completed the work behavior questionnaire, and the data has been successfully uploaded to the server and saved. Thank you.',
  selectData: 'Date',
  startDo: 'Start the Test',
  openJobDesc: '问卷作答说明',
  startDo_apifan: 'Start the Test',
  second: ' second ',
  min: ' minute ',
src/lang/zh.js
@@ -28,6 +28,7 @@
  finishSubmit: '您已经完成了工作行为问卷,数据已经成功地上传至服务器,并已经保存好。谢谢。',
  selectData: '选择日期',
  startDo: '开始测试',
  openJobDesc: '问卷作答说明',
  startDo_apifan: '正式开始测试',
  second: '秒',
  min: '分',
@@ -62,7 +63,7 @@
  partRemailTime: '剩余时间:',
  finishIntelligenceInfo: '您已经完成了认知能力测试问卷,数据已经成功地上传至服务器,并已经保存好。谢谢。',
  finishPersonalityInfo: '您已经完成了人格测试问卷,数据已经成功地上传至服务器,并已经保存好。现在您可以点击下面的“关闭”按钮关闭页面',
  finishPersonalityInfo_apifan: '感谢您申请本公司的职位!您已经完成了人格测试问卷,数据已经成功地上传至服务器,已经保存好。现在您可以点击下面的“关闭”按钮关闭页面。',
  finishPersonalityInfo_apifan: '您已经完成了人格测试问卷,数据已经成功地上传至服务器,已经保存好。现在您可以点击下面的“关闭”按钮关闭页面。',
  finishCareerInterestsInfo: '您已经完成了职业兴趣问卷,数据已经成功地上传至服务器,并已经保存好。',
  finishPersonalityDownInfo: '您可以点击下面按钮下载您的结果报告。',
  finishViewReportInfo: '您可以点击下面按钮查看您的结果报告。',
src/views/demography/index.vue
@@ -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 = []
@@ -192,7 +204,8 @@
      })
    },
    ...mapMutations('user', ['setMemberTocken']),
    ...mapMutations('exam', ['setDoUrl'])
    ...mapMutations('exam', ['setDoUrl']),
    ...mapMutations('user', ['setLangType'])
  },
  computed: {
    ...mapState('user', { memberToken: state => state.memberToken }),
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()
src/views/demography/login.vue
@@ -23,6 +23,8 @@
    }
  },
  created () {
    // 清除本地存储的语言选项
    localStorage.removeItem('langType')
    let _this = this
    _this.getLangType()
    // 记录登陆日志
@@ -62,7 +64,7 @@
        reParam => {
          if (reParam.code !== 1) {
            // 职业兴趣报告特殊化处理 只有中文
            if (_this.doUrl === 'career_interests') {
            if (_this.doUrl === 'career_interests' || _this.doUrl === 'job') {
              _this.$i18n.locale = 'zh'
              _this.setLangType('Chinese')
              _this.$router.push({ path: '/demography/fill/index', query: { demographyMenber: _this.memberToken, isStart: false } })
@@ -78,7 +80,7 @@
            }
            // 先选择密码
            _this.$router.push({ path: '/demography/fill/langOption', query: { langSelectValue: _this.langType } })
            _this.$router.push({ path: '/demography/fill/langOption', query: { langSelectValue: _this.langType, fromDo: _this.fromDo } })
            _this.setMemberTocken(_this.paraMemberToken)
            return
          }
src/views/exam/paper/guide.vue
@@ -8,7 +8,7 @@
        <div v-html="formDo.guide"></div>
        <el-row class="do-align-center">
          <el-button v-if="formDo.questionTemplateId !== 'personality'" @click="doExam" type="primary" round>{{$t('startDo')}}</el-button>
          <el-button v-if="formDo.questionTemplateId === 'job'" @click="openExplain" type="danger" round>打开岗位说明</el-button>
          <el-button v-if="formDo.questionTemplateId === 'job'" @click="openExplain" type="danger" round>{{$t('openJobDesc')}}</el-button>
          <el-button v-if="formDo.questionTemplateId === 'personality'" @click="openExercise" type="primary" round>{{$t('exercise_start')}}</el-button>
        </el-row>
      </el-main>