From e704b6ecdffcc1126185cb450e95a634446ad294 Mon Sep 17 00:00:00 2001
From: ludc
Date: 星期四, 12 十月 2023 17:10:12 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'
---
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