[测评系统]--前端(用户答题页面)
linzhijie
2023-04-15 2a3a43ce025901d5ddcc6d622909297dae1a94c7
CIAQ页面完善
4个文件已修改
19 ■■■■ 已修改文件
src/lang/en.js 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/lang/th.js 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/lang/zh.js 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/exam/paper/career_interests.vue 14 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/lang/en.js
@@ -51,6 +51,7 @@
  partRemailTime: 'Remaining Time:',
  finishIntelligenceInfo: 'You have completed the cognitive ability test questionnaire, the data has been successfully uploaded to the server, and has been saved. Thank you.',
  finishPersonalityInfo: 'You have completed the personality quetionnaire, and the data has been successfully uploaded to the server and saved. ',
  finishCareerInterestsInfo: 'You have completed the Career Interests quetionnaire, and the data has been successfully uploaded to the server and saved. ',
  finishPersonalityDownInfo: 'You may click the red button below to download your test report.',
  langWelcomeThai: 'ยินดีตอนรับสู่เว็บไซย์สำหรับทำแบบทดสอบของ',
  langOptionThai: 'กรุณาเลือกภาษา และคลิก “ดำเนินการต่อ.',
src/lang/th.js
@@ -51,6 +51,7 @@
  partRemailTime: 'Remaining Time:',
  finishIntelligenceInfo: 'You have completed the cognitive ability test questionnaire, the data has been successfully uploaded to the server, and has been saved. Thank you.',
  finishPersonalityInfo: 'You have completed the personality quetionnaire, and the data has been successfully uploaded to the server and saved. ',
  finishCareerInterestsInfo: 'You have completed the Career Interests quetionnaire, and the data has been successfully uploaded to the server and saved. ',
  finishPersonalityDownInfo: 'You may click the red button below to download your test report.',
  langWelcomeThai: 'ยินดีตอนรับสู่เว็บไซย์สำหรับทำแบบทดสอบของ',
  langOptionThai: 'กรุณาเลือกภาษา และคลิก “ดำเนินการต่อ.'
src/lang/zh.js
@@ -51,6 +51,7 @@
  partRemailTime: '剩余时间:',
  finishIntelligenceInfo: '您已经完成了认知能力测试问卷,数据已经成功的上传至服务器,并已经保存好。谢谢。',
  finishPersonalityInfo: '您已经完成了人格测试问卷,数据已经成功的上传至服务器,并已经保存好。',
  finishCareerInterestsInfo: '您已经完成了职业兴趣问卷,数据已经成功的上传至服务器,并已经保存好。',
  finishPersonalityDownInfo: '您可以点击下面红色按钮下载您的结果报告。',
  langWelcomeThai: 'ยินดีตอนรับสู่เว็บไซย์สำหรับทำแบบทดสอบของ',
  langOptionThai: 'กรุณาเลือกภาษา และคลิก “ดำเนินการต่อ.',
@@ -87,5 +88,5 @@
    values_pic_tmpArea:'暂存区',
    values_pic_tmpArea_desc:'这是您查看根据图片选择创建的类别的机会。作为提醒,您在每个类别中放置的图像从左到右的顺序无关紧要。如果你觉得你想四处移动图片,你必须先把它们拖到暂存区,然后再把它们放进一个新的类别。为了用另一个图片替换类别中的一张图片,必须将两张图片拖到暂存区。一旦您对自己的选择感到满意,单击“提交”,您的选择将最终确定。',
    values_nextStepTips_tips:'请通过将图像分为九类来细化图像的排序和排名。请注意,您可以在每个类别中放置的图像数量是固定的。'
}
src/views/exam/paper/career_interests.vue
@@ -60,7 +60,6 @@
import examPaperApi from '@/api/examPaper'
import examPaperAnswerApi from '@/api/examPaperAnswer'
import demographyApi from '@/api/demography'
export default {
  name: 'personality',
  components: { QuestionEdit },
@@ -94,6 +93,7 @@
      guideTitle: '',
      guideDescirption: '',
      isCallTain: '',
      isSignalObject: '',
      memberName: '',
      itemSize: '', // 题目长度
      startDoDisable: true,
@@ -295,6 +295,9 @@
    catThaiSubmit: function (answerSubmit) {
      answerSubmit.isCallTain = 'CallThai'
    },
    setSignalObject: function (answerSubmit) {
      answerSubmit.isSignalObject = 'CIAQ'
    },
    getEmptySubjct: function (order) {
      let _this = this
      _this.itemOrder = _this.form.titleItems[0].questionItems[order].itemOrder
@@ -344,10 +347,15 @@
      }
      this.answer.answerItems[_this.order].readOnly = true
      let answerSubmit = _this.getSubmitAnswerValue(nowPartOrder)
      console.log(answerSubmit)
      // 已经答到了最后一题了,不用自动跳到下一题
      if (this.order + 1 > this.problemLength) {
        this.submitDisable = false
        return
      }
      // 如果是最后一题就上面提交了,不会走到这里
      if (this.isNextShowGuide(nowPartOrder)) {
        this.setSignalObject(answerSubmit)
      }
      examPaperAnswerApi.answerSubmit(answerSubmit, _this.memberToken).then(re => {
        if (re.code !== 1) {
@@ -378,6 +386,7 @@
      })
      answerSubmit.langType = _this.langType
      answerSubmit.isCallTain = _this.isCallTain
      answerSubmit.isSignalObject = _this.isSignalObject
      answerSubmit.partOrder = nowPartOrder
      answerSubmit.itemOrder = _this.itemOrder
      return answerSubmit
@@ -426,13 +435,14 @@
      } else {
        _this.answer.verifyStatus = 1
        _this.answer.finish = 1
        _this.submitAnswer(_this.$t('finishPersonalityInfo'))
        _this.submitAnswer(_this.$t('finishCareerInterestsInfo'))
      }
    },
    startDo: function () {
      let _this = this
      _this.guide = false
      _this.isCallTain = ''
      _this.isSignalObject = ''
    },
    submitAnswer: function (mess) {
      let _this = this