소스 검색

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