weiwenhai 6 rokov pred
rodič
commit
93dabd0cb3

+ 1 - 2
src/modules/questions/views/BluePaperStructure.vue

@@ -203,8 +203,7 @@ export default {
       var pageNo = Number(this.currentPage);
       this.currentPage = 1;
       this.loading = true;
-      var url =
-        QUESTION_API + "/paperStruct/" + this.currentPage + "/" + this.pageSize;
+      var url = QUESTION_API + "/paperStruct/" + pageNo + "/" + this.pageSize;
       this.$http.get(url, { params: this.formSearch }).then(response => {
         this.tableData = response.data.content;
         this.total = response.data.totalElements;

+ 1 - 2
src/modules/questions/views/PaperStructure.vue

@@ -212,8 +212,7 @@ export default {
       var pageNo = Number(this.currentPage);
       this.currentPage = 1;
       this.loading = true;
-      var url =
-        QUESTION_API + "/paperStruct/" + this.currentPage + "/" + this.pageSize;
+      var url = QUESTION_API + "/paperStruct/" + pageNo + "/" + this.pageSize;
       this.$http.get(url, { params: this.formSearch }).then(response => {
         this.tableData = response.data.content;
         this.total = response.data.totalElements;