[测评系统]--前端(用户答题页面)
zhijie
2023-12-11 dc9c1c7c486ee140f1cdc64d0aeafffdced612f4
新增LAQ支持
3个文件已修改
10 ■■■■ 已修改文件
src/views/exam/paper/guide.vue 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/exam/paper/intelligence.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/exam/paper/personality.vue 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/exam/paper/guide.vue
@@ -36,7 +36,12 @@
    doExam: function () {
      let _this = this
      examPaperApi.updateTestMemberStatus(_this.memberToken).then(re => {
        // LAQ特殊处理
        if (_this.formDo.name.indexOf('LAQ') !== -1) {
          _this.$router.push({ path: '/exam/' + _this.formDo.questionTemplateId, query: { formDo: _this.$route.query.formDo } })
        } else {
        _this.$router.push({ path: '/exam/' + _this.doUrl, query: { formDo: _this.$route.query.formDo } })
        }
      }).catch(re => {
        _this.$message.error(re.message + ' 更新状态失败')
      })
src/views/exam/paper/intelligence.vue
@@ -695,7 +695,7 @@
            return
          }
          // 特殊处理 LAQ测试包 结束提示语
          if (_this.form.name === 'LAQ') {
          if (_this.form.name.indexOf('LAQ') !== -1) {
            _this.$router.push({ path: '/exam/finish', query: { name: _this.form.name, content: _this.$t('finishMsg') } })
            return
          }
src/views/exam/paper/personality.vue
@@ -472,11 +472,10 @@
        loading.close()
        if (re.code === 1) {
          // 特殊处理 LAQ测试包 MAQ+CAQ
          if (_this.form.name === 'LAQ') {
          if (_this.form.name.indexOf('LAQ') !== -1) {
            console.log('答完题,看看要不要去CAQ1')
            examPaperApi.select(_this.memberToken, _this.langType).then(re => {
              _this.form = re.response
              console.log(_this.form)
              _this.$router.push({ path: '/guide/index', query: { formDo: _this.form } })
            }).catch(e => {
              _this.$message.error(_this.$t('noquestionMsg'))