xiatian 1 년 전
부모
커밋
6b9e6234e1
2개의 변경된 파일22개의 추가작업 그리고 22개의 파일을 삭제
  1. 11 11
      src/modules/questions/views/EditPaper.vue
  2. 11 11
      src/modules/questions/views/ViewPaper.vue

+ 11 - 11
src/modules/questions/views/EditPaper.vue

@@ -977,7 +977,7 @@ export default {
     this.paperId = this.$route.params.id;
     this.parentView = this.$route.params.parentView;
     this.initPaper();
-    this.getreduplicateQuestions();
+    // this.getreduplicateQuestions();
     this.uploadAction = QUESTION_API + "/uploadRadio/" + this.paperId;
     this.uploadHeaders = {
       key: this.user.key,
@@ -1836,16 +1836,16 @@ export default {
     },
     //获取重复试题
     getreduplicateQuestions() {
-      // this.duplicateLoading = true;
-      // this.$http
-      //   .get(QUESTION_API + "/paper/" + this.paperId + "/reduplicate-questions")
-      //   .then((response) => {
-      //     this.reduplicateQuestions = response.data;
-      //     this.duplicateLoading = false;
-      //     this.initReduplicateQuesColor();
-      //     // var ques = document.getElementsByClassName("ques")[0];
-      //     // ques.style.display = "inline";
-      //   });
+      this.duplicateLoading = true;
+      this.$http
+        .get(QUESTION_API + "/paper/" + this.paperId + "/reduplicate-questions")
+        .then((response) => {
+          this.reduplicateQuestions = response.data;
+          this.duplicateLoading = false;
+          this.initReduplicateQuesColor();
+          // var ques = document.getElementsByClassName("ques")[0];
+          // ques.style.display = "inline";
+        });
     },
     exportPaperAnswer() {
       var key = this.user.key;

+ 11 - 11
src/modules/questions/views/ViewPaper.vue

@@ -564,7 +564,7 @@ export default {
     this.paperId = this.$route.params.id;
     this.parentView = this.$route.params.parentView;
     this.initPaper();
-    this.getreduplicateQuestions();
+    // this.getreduplicateQuestions();
     this.uploadAction = QUESTION_API + "/uploadRadio/" + this.paperId;
     this.uploadHeaders = {
       key: this.user.key,
@@ -860,16 +860,16 @@ export default {
     },
     //获取重复试题
     getreduplicateQuestions() {
-      // this.duplicateLoading = true;
-      // this.$http
-      //   .get(QUESTION_API + "/paper/" + this.paperId + "/reduplicate-questions")
-      //   .then((response) => {
-      //     this.reduplicateQuestions = response.data;
-      //     this.duplicateLoading = false;
-      //     this.initReduplicateQuesColor();
-      //     // var ques = document.getElementsByClassName("ques")[0];
-      //     // ques.style.display = "inline";
-      //   });
+      this.duplicateLoading = true;
+      this.$http
+        .get(QUESTION_API + "/paper/" + this.paperId + "/reduplicate-questions")
+        .then((response) => {
+          this.reduplicateQuestions = response.data;
+          this.duplicateLoading = false;
+          this.initReduplicateQuesColor();
+          // var ques = document.getElementsByClassName("ques")[0];
+          // ques.style.display = "inline";
+        });
     },
     initReduplicateQuesColor() {
       var colorCount = this.reduplicateQuestions.length;