From 153a4048e410a789a0da4eda0af09b2ca645bec3 Mon Sep 17 00:00:00 2001 From: 田源 <lastanimals@163.com> Date: 星期四, 12 十月 2023 10:24:08 +0800 Subject: [PATCH] 系统管理-取消列显隐 --- Source/UBCS-WEB/src/views/system/dept.vue | 13 +++++++++---- 1 files changed, 9 insertions(+), 4 deletions(-) diff --git a/Source/UBCS-WEB/src/views/system/dept.vue b/Source/UBCS-WEB/src/views/system/dept.vue index 02063bd..1cb7847 100644 --- a/Source/UBCS-WEB/src/views/system/dept.vue +++ b/Source/UBCS-WEB/src/views/system/dept.vue @@ -1,6 +1,7 @@ <template> <basic-container> <avue-crud :option="option" + :page.sync="page" :table-loading="loading" :data="data" ref="crud" @@ -75,7 +76,10 @@ option: { lazy: true, tip: false, - simplePage: true, + height:'auto', + maxHeight:600, + columnBtn:false, + // simplePage: true, searchShow: true, searchMenuSpan: 6, tree: true, @@ -352,8 +356,9 @@ }, onLoad(page, params = {}) { this.loading = true; - getLazyList(this.parentId, Object.assign(params, this.query)).then(res => { - this.data = res.data.data; + getLazyList(this.parentId,Object.assign(params, this.query),this.page.currentPage, this.page.pageSize).then(res => { + this.data = res.data.data.records; + this.page.total=res.data.data.total this.loading = false; this.selectionClear(); }); @@ -361,7 +366,7 @@ treeLoad(tree, treeNode, resolve) { const parentId = tree.id; getLazyList(parentId).then(res => { - resolve(res.data.data); + resolve(res.data.data.records); }); } } -- Gitblit v1.9.3