xiatian 2 years ago
parent
commit
deaf0bb958
1 changed files with 13 additions and 2 deletions
  1. 13 2
      src/modules/questions/views/GenPaperDetail.vue

+ 13 - 2
src/modules/questions/views/GenPaperDetail.vue

@@ -871,6 +871,13 @@ export default {
     },
     searchPaper() {
       this.loading = true;
+      let fillCount = false;
+      if (this.genType == "SIMPLE") {
+        fillCount = true;
+      } else {
+        fillCount = false;
+      }
+
       if (this.paperType == "IMPORT") {
         this.$http
           .get(
@@ -882,7 +889,9 @@ export default {
               "?courseNo=" +
               this.genPaper.courseNo +
               "&ids=" +
-              this.tempPaperIds
+              this.tempPaperIds +
+              "&fillCount=" +
+              fillCount
           )
           .then((response) => {
             console.log("response:", response);
@@ -902,7 +911,9 @@ export default {
               "?courseNo=" +
               this.genPaper.courseNo +
               "&ids=" +
-              this.tempPaperIds
+              this.tempPaperIds +
+              "&fillCount=" +
+              fillCount
           )
           .then((response) => {
             this.selectPapers = response.data.content;