[测评系统]--前端(用户答题页面)
yj
2025-11-27 e9d90e9ea68a2ee82869124ff092dc21f329f2b0
src/views/exam/paper/career_interests.vue
@@ -100,7 +100,8 @@
      memberName: '',
      itemSize: '', // 题目长度
      startDoDisable: true,
      ismobile: false
      ismobile: false,
      hasShownSubmitTip: false // 标志是否已经显示过提交提示
    }
  },
  created: function () {
@@ -108,7 +109,7 @@
    _this.ismobile = /ipad|iphone|midp|rv:1.2.3.4|ucweb|android|windows ce|windows mobile/.test(navigator.userAgent.toLowerCase())
    // 多语言
    _this.setLangFlag(false)
    _this.form = this.$route.query.formDo
    _this.form = undefined
    if (_this.form !== {} && _this.form !== undefined) {
      _this.formLoading = true
      _this.remainTime = _this.form.suggestTime * 60
@@ -127,7 +128,6 @@
      // 展示指导语
      if (_this.form.parts[0].signals.length !== 0) {
        console.log('首题提示语')
        _this.showNextGuide(_this.form.parts[0].signals[0], false)
      }
    } else {
@@ -198,7 +198,6 @@
      ).catch(e => {
      })
    }
    console.log(' _this.partOrder:'+_this.partOrder)
  },
  mounted () {
  },
@@ -395,9 +394,19 @@
          return
        }
      }
      // 检查是否是最后一题且已答完,弹出提示框
      if (_this.order === _this.answer.answerItems.length - 1 && _this.isContentNotEmpty(_this.order)) {
        if (!_this.hasShownSubmitTip) {
          _this.hasShownSubmitTip = true
          _this.$alert(_this.$t('submit_tip'), _this.$t('prompt'), {
            confirmButtonText: _this.$t('determine'),
            customClass: 'submit-tip-dialog'
          })
        }
      }
      this.answer.answerItems[_this.order].readOnly = true
      let answerSubmit = _this.getSubmitAnswerValue(nowPartOrder)
      console.log(answerSubmit)
      // 已经答到了最后一题了,不用自动跳到下一题
      if (this.order + 1 > this.problemLength) {
        this.submitDisable = false