浏览代码

fix 分页 bug

Michael Wang 4 年之前
父节点
当前提交
022caebc2a
共有 2 个文件被更改,包括 4 次插入1 次删除
  1. 3 0
      src/modules/basic/view/data_previllege.vue
  2. 1 1
      src/modules/basic/view/data_previllege_add_course.vue

+ 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;
       });