xiatian 4 vuotta sitten
vanhempi
commit
bc2ca24bd3
1 muutettua tiedostoa jossa 10 lisäystä ja 10 poistoa
  1. 10 10
      src/modules/questions/views/GenPaperDetail.vue

+ 10 - 10
src/modules/questions/views/GenPaperDetail.vue

@@ -875,39 +875,39 @@ export default {
         this.$http
           .get(
             QUESTION_API +
-              "/importPaper/" +
-              this.tempPaperIds +
-              "/" +
+              "/importPaper/huoge/" +
               this.curSelect +
               "/" +
               this.pageSize +
               "?courseNo=" +
-              this.genPaper.courseNo
+              this.genPaper.courseNo +
+              "&ids=" +
+              this.tempPaperIds
           )
           .then((response) => {
             console.log("response:", response);
             this.selectPapers = response.data.content;
             this.totalSelect = response.data.totalElements;
-            this.curSelect = response.data.pageable.pageNumber + 1;
+            this.curSelect = response.data.number + 1;
             this.loading = false;
           });
       } else if (this.paperType == "GENERATE") {
         this.$http
           .get(
             QUESTION_API +
-              "/genPaper/" +
-              this.tempPaperIds +
-              "/" +
+              "/genPaper/huoge/" +
               this.curSelect +
               "/" +
               this.pageSize +
               "?courseNo=" +
-              this.genPaper.courseNo
+              this.genPaper.courseNo +
+              "&ids=" +
+              this.tempPaperIds
           )
           .then((response) => {
             this.selectPapers = response.data.content;
             this.totalSelect = response.data.totalElements;
-            this.curSelect = response.data.pageable.pageNumber + 1;
+            this.curSelect = response.data.number + 1;
             this.loading = false;
           });
       } else {