bug
liuyg
2021-10-09 0546ca05a2d5308e661f78357c74ee534ad9d4e6
bug
2 files modified
40 ■■■■■ changed files
src/views/singleperformance/index.vue 9 ●●●●● patch | view | raw | blame | history
src/views/startexam/index.vue 31 ●●●● patch | view | raw | blame | history
src/views/singleperformance/index.vue
@@ -2,7 +2,7 @@
 * @Author: Morpheus
 * @Date: 2021-08-02 09:31:54
 * @Last Modified by: liu
 * @Last Modified time: 2021-10-09 16:22:20
 * @Last Modified time: 2021-10-09 17:13:00
 * menu-name 成绩管理
 */
<template>
@@ -115,8 +115,9 @@
    },
    getExamScore() {
      var data = {
        userId: this.$route.query.userId,
        examId: this.$route.query.examId,
        // userId: this.$route.query.userId,
        // examId: this.$route.query.examId,
        id: this.scoreId,
      };
      getExamScore(data).then((res) => {
        if (res.data.data.theoryGrade != undefined) {
@@ -130,7 +131,7 @@
      console.log(this.scoreId);
      // return;
      if (val == 1) {
        if (this.paddWord != "zhdn123") {
        if (this.paddWord != "zhda123") {
          //重置密码
          this.$message({
            showClose: true,
src/views/startexam/index.vue
@@ -86,8 +86,8 @@
                      type="primary"
                      >下一题</el-button
                    >
                    <!-- :disabled="timesIT" -->
                    <el-button
                      :disabled="timesIT"
                      type="success"
                      @click="submitExam"
                      :title="
@@ -380,29 +380,14 @@
                score: subjectData[i].score,
                color: "#fff",
                fontColor: "#000",
                title: subjectData[i].subjectName,
              });
            }
            //题目类型
            // this.query.type = parseInt(this.subjectIds[0].type);
            // 题目id
            // this.query.subjectId = this.subjectIds[0].everyID;
            this.updateSubjectIndex();
            // 获取当前题目信息
            getSubjectResultInfo({
              id: this.subjectIds[0].everyID,
            })
              .then((response) => {
                if (isNotEmpty(response.data.data)) {
                  response.data.data.answer = "";
                  this.setSubjectInfo(response.data.data);
                }
              })
              .catch(() => {
                messageFail(this, "获取题目失败!");
              });
            //重载到当前题目
            const nowObj = objs.examSubjectChoicesVO;
            let nowObj = objs.examSubjectChoicesVO;
            nowObj.answer = ""; //清除答案
            // console.log(nowObj, "nowObj");
            for (var i = 0; i < this.subjectIds.length; i++) {
              if (nowObj.id == this.subjectIds[i].everyID) {
                //定位显示题目
@@ -411,6 +396,7 @@
                this.query.type = parseInt(this.subjectIds[i].type);
                // 题目id
                this.query.subjectId = this.subjectIds[i].everyID;
                this.setSubjectInfo(nowObj);
              }
            }
            // 添加到答题卡
@@ -503,6 +489,7 @@
      }
      // console.log(this.subjectIds);
      // 获取题目ID列表
      // console.log("subjectResponsesubjectResponsesubjectResponse");
      getSubjectIds(scoreId)
        .then((subjectResponse) => {
          const subjectData = subjectResponse.data.data;
@@ -675,7 +662,7 @@
            }
            this.setSubjectInfo(subject);
            // console.log(subject);
            // store.dispatch('SetSubjectInfo', subject).then(() => { })
          }
          // 更新时间
@@ -998,7 +985,7 @@
    },
    setSubjectInfo(subject) {
      const ref = this.getSubjectRef();
      // console.log(subject, "subject");
      if (isNotEmpty(ref)) {
        try {
          ref.setSubjectInfo(