xiejiebiao 2 jaren geleden
bovenliggende
commit
43c38d0f4e
2 gewijzigde bestanden met toevoegingen van 7 en 15 verwijderingen
  1. 7 5
      src/components/exam/HeaderTabBox.vue
  2. 0 10
      src/pages/subject/collect-type-bank.vue

+ 7 - 5
src/components/exam/HeaderTabBox.vue

@@ -32,11 +32,13 @@ export default {
     };
   },
   mounted() {
-    this.$request
-      .bankExam(this.$route.query.examId || this.examId)
-      .then((res) => {
-        this.examInfo = res.data;
-      });
+    if (this.$route.query.examId || this.examId) {
+      this.$request
+        .bankExam(this.$route.query.examId || this.examId)
+        .then((res) => {
+          this.examInfo = res.data;
+        });
+    }
   },
 };
 </script>

+ 0 - 10
src/pages/subject/collect-type-bank.vue

@@ -1101,7 +1101,6 @@ export default {
                 }
               } else if (item.type == 4) {
                 //案例题
-                console.log(item.jsonStr);
                 item.ques = [];
                 item.tabIndex = "0";
                 let ansArr = [];
@@ -1326,7 +1325,6 @@ export default {
       }
     },
     judgeSelectChild(questionIndex, jsonIndex, index) {
-      console.log(this.questionList[questionIndex].ques[jsonIndex]);
       if (this.questionList[questionIndex].ques[jsonIndex]) return;
       this.$set(
         this.questionList[questionIndex].ques,
@@ -1408,7 +1406,6 @@ export default {
                 item.ques[indexs] &&
                 (item.ques[indexs].text || item.ques[indexs].imageList.length)
               ) {
-                console.log("chil");
                 return true;
               } else {
                 return false;
@@ -1446,8 +1443,6 @@ export default {
 
       question.ques.imageList = question.ansText.imageList;
       question.ques.text = question.ansText.text;
-
-      console.log(question.ques);
     },
     ansSubmitChild(question, questionIndex, jsonIndex) {
       if (
@@ -1497,13 +1492,9 @@ export default {
       }
     },
     isRight(item, index) {
-      console.log(item);
       //单选
       if (this.questionList[index].ques) {
         if (item.type == 1) {
-          console.log(
-            this.questionList[index].ques == this.questionList[index].ans
-          );
           return this.questionList[index].ques == this.questionList[index].ans;
           //多选
         } else if (item.type == 2) {
@@ -1651,7 +1642,6 @@ export default {
           //简答题
           if (hasSpecail) {
             if (item.ques && (item.ques.text || item.ques.imageList.length)) {
-              console.log(5, item);
               count++;
             }
           }