Administrator
2021-08-18 4f81015b693ba56b3c2112ae3dcbe98760f71fda
开始考试逻辑修改
3 files modified
24 ■■■■■ changed files
src/api/exam/answer.js 1 ●●●● patch | view | raw | blame | history
src/views/exam/startexam.vue 22 ●●●●● patch | view | raw | blame | history
src/views/startexam/index.vue 1 ●●●● patch | view | raw | blame | history
src/api/exam/answer.js
@@ -71,6 +71,7 @@
        data: {
            // "allGrade": 0,
            // "allScore": 200,
            "id": params.id,
            "userId": params.userId,
            "candidateNo": params.candidateNo,
            "company": params.company,
src/views/exam/startexam.vue
@@ -85,18 +85,22 @@
      });
    },
    //开始考试跳转
    startExam() {
    startExam () {
      var that = this;
      //去修改考试状态
      var data = {
        id: that.resData.applyId,
        examType: this.resData.examType,
      };
      updateApplyStatus(data).then(() => {});
      this.$router.push({
        path: `/startexam/${that.resData.id}`,
        query: that.resData,
      });
        id:that.resData.applyId,
        examType:this.resData.examType,
        examId:this.resData.id,
        userId:this.userInfo.user_id,
      }
      updateApplyStatus(data).then((res) => {
          that.resData['examScoreId'] = res.data.id;
          that.$router.push({
            path: `/startexam/${that.resData.id}`,
            query: that.resData
        })
      })
    },
    getUserInfoBYExam() {
      var that = this;
src/views/startexam/index.vue
@@ -539,6 +539,7 @@
    },
    doSubmitExam() {
      var obj = {
        id:this.$route.query.examScoreId,
        examName: this.$route.query.examName,
        candidateNo: this.$route.query.candidateNo,
        securityName: this.userInfo.user_name,