From 5d3dc83bab78579d7c6903d102c1ca05a6ec8c38 Mon Sep 17 00:00:00 2001 From: lijiahang Date: Thu, 4 Jul 2024 10:29:39 +0800 Subject: [PATCH] =?UTF-8?q?:bug:=20=E4=BF=AE=E5=A4=8D=E6=93=8D=E4=BD=9C?= =?UTF-8?q?=E6=97=A5=E5=BF=97=E5=88=86=E9=A1=B5=E6=97=A0=E6=95=88.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../info/components/user-operator-log.vue | 18 +++++++-- .../components/operator-log-query-header.vue | 37 +++++++++---------- .../components/operator-log-simple-table.vue | 8 +++- .../components/operator-log-table.vue | 24 +++++++----- .../views/user/role/components/role-table.vue | 9 ++--- .../views/user/user/components/user-table.vue | 10 ++--- 6 files changed, 59 insertions(+), 47 deletions(-) diff --git a/orion-visor-ui/src/views/user/info/components/user-operator-log.vue b/orion-visor-ui/src/views/user/info/components/user-operator-log.vue index a429df08..1c2f6561 100644 --- a/orion-visor-ui/src/views/user/info/components/user-operator-log.vue +++ b/orion-visor-ui/src/views/user/info/components/user-operator-log.vue @@ -3,8 +3,9 @@ - + @@ -20,7 +21,8 @@ + :base-params="{ userId: user?.id }" + :model="formModel"/> @@ -33,11 +35,12 @@ diff --git a/orion-visor-ui/src/views/user/operator-log/components/operator-log-simple-table.vue b/orion-visor-ui/src/views/user/operator-log/components/operator-log-simple-table.vue index 9d3a07d0..ac9bc9c7 100644 --- a/orion-visor-ui/src/views/user/operator-log/components/operator-log-simple-table.vue +++ b/orion-visor-ui/src/views/user/operator-log/components/operator-log-simple-table.vue @@ -84,11 +84,15 @@ const props = withDefaults(defineProps>(), { baseParams: () => { return {}; }, + model: () => { + return {}; + }, }); const pagination = usePagination(); @@ -131,7 +135,7 @@ }; // 切换页码 - const fetchTableData = (page = 1, limit = pagination.pageSize, form = {}) => { + const fetchTableData = (page = 1, limit = pagination.pageSize, form = props.model) => { doFetchTableData({ page, limit, ...form }); }; diff --git a/orion-visor-ui/src/views/user/operator-log/components/operator-log-table.vue b/orion-visor-ui/src/views/user/operator-log/components/operator-log-table.vue index 0804a2e2..aa0a565f 100644 --- a/orion-visor-ui/src/views/user/operator-log/components/operator-log-table.vue +++ b/orion-visor-ui/src/views/user/operator-log/components/operator-log-table.vue @@ -2,7 +2,8 @@ - + @@ -131,7 +132,7 @@