From c1789fa20d02c9f2107669c2507f60fcaa75131e Mon Sep 17 00:00:00 2001 From: zuohuaijun Date: Thu, 11 Jul 2024 00:38:57 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=98=8E=E8=B0=83=E6=95=B4=E6=9C=BA?= =?UTF-8?q?=E6=9E=84=E7=AE=A1=E7=90=86=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Web/src/views/system/menu/index.vue | 16 +++++----- Web/src/views/system/org/index.vue | 46 ++++++++++++++++++--------- Web/src/views/system/region/index.vue | 28 ++++++++-------- Web/src/views/system/role/index.vue | 28 ++++++++-------- Web/src/views/system/tenant/index.vue | 28 ++++++++-------- Web/src/views/system/user/index.vue | 28 ++++++++-------- 6 files changed, 95 insertions(+), 79 deletions(-) diff --git a/Web/src/views/system/menu/index.vue b/Web/src/views/system/menu/index.vue index ce40456b..efc8da60 100644 --- a/Web/src/views/system/menu/index.vue +++ b/Web/src/views/system/menu/index.vue @@ -154,14 +154,6 @@ const resetQuery = async () => { await xGrid.value?.commitProxy('reload'); }; -// 表格事件 -const gridEvents: VxeGridListeners = { - // 只对 proxy-config.ajax.query 配置时有效,当手动点击查询时会触发该事件 - async proxyQuery() { - state.menuData = xGrid.value?.getTableData().tableData ?? []; - }, -}; - // 打开新增页面 const handleAdd = () => { state.title = '添加菜单'; @@ -189,6 +181,14 @@ const handleDelete = (row: any) => { .catch(() => {}); }; +// 表格事件 +const gridEvents: VxeGridListeners = { + // 只对 proxy-config.ajax.query 配置时有效,当手动点击查询时会触发该事件 + async proxyQuery() { + state.menuData = xGrid.value?.getTableData().tableData ?? []; + }, +}; + // 全部展开 const handleExpand = () => { xGrid.value?.setAllTreeExpand(true); diff --git a/Web/src/views/system/org/index.vue b/Web/src/views/system/org/index.vue index ca26b080..da4edb78 100644 --- a/Web/src/views/system/org/index.vue +++ b/Web/src/views/system/org/index.vue @@ -42,7 +42,7 @@ - +