Explorar o código

提交题库页面bug

weiwenhai %!s(int64=6) %!d(string=hai) anos
pai
achega
c8a4b4ab25

+ 13 - 3
src/modules/questions/views/ExtractPaperInfo.vue

@@ -679,9 +679,19 @@ export default {
           path: "/questions/extract_paper_rule/1"
         });
       } else {
-        this.$router.push({
-          path: "/questions/extract_paper_rule/0"
-        });
+        if (this.extractConfig.examId) {
+          sessionStorage.setItem(
+            "extract_config_add_examId",
+            this.extractConfig.examId
+          );
+          this.$router.push({
+            path: "/questions/extract_paper_rule/2"
+          });
+        } else {
+          this.$router.push({
+            path: "/questions/extract_paper_rule/0"
+          });
+        }
       }
     },
     //修改调卷规则

+ 9 - 0
src/modules/questions/views/ExtractPaperRule.vue

@@ -650,6 +650,15 @@ export default {
           courseName: ""
         };
         this.currentPage = 1;
+      } else if (this.isClear == 2) {
+        this.formSearch.examId =
+          sessionStorage.getItem("extract_config_add_examId") == ""
+            ? ""
+            : parseInt(sessionStorage.getItem("extract_config_add_examId"));
+        if (this.formSearch.examId) {
+          this.initialize(this.formSearch.examId);
+        }
+        this.currentPage = 1;
       } else {
         this.formSearch.courseNo =
           sessionStorage.getItem("extract_paper_courseNo") == "null"