Explorar o código

fix 分页 bug

Michael Wang %!s(int64=4) %!d(string=hai) anos
pai
achega
022caebc2a

+ 3 - 0
src/modules/basic/view/data_previllege.vue

@@ -365,6 +365,9 @@ export default {
         this.tableDataExam = promiseAll[3].data.content;
         this.tableDataCourse = promiseAll[4].data.content;
         this.tableDataOrg = promiseAll[5].data.content;
+        this.totalExam = promiseAll[3].data.totalElements;
+        this.totalCourse = promiseAll[4].data.totalElements;
+        this.totalOrg = promiseAll[5].data.totalElements;
       } finally {
         this.loading = false;
       }

+ 1 - 1
src/modules/basic/view/data_previllege_add_course.vue

@@ -123,7 +123,7 @@ export default {
       this.loading = true;
       return this.$httpWithMsg.get(url).then((response) => {
         this.tableData = response.data.content;
-        this.total = response.data.total;
+        this.total = response.data.totalElements;
         this.loading = false;
         this.paginationShow = true;
       });