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 @@ - +