From 6d47871f02ced626dfe607d56194bb2eb295dc32 Mon Sep 17 00:00:00 2001 From: YunaiV Date: Sat, 6 Sep 2025 19:55:38 +0800 Subject: [PATCH] =?UTF-8?q?reactor=EF=BC=9A=E3=80=90system=20=E7=B3=BB?= =?UTF-8?q?=E7=BB=9F=E7=AE=A1=E7=90=86=E3=80=91operate=20=E8=BF=9B?= =?UTF-8?q?=E4=B8=80=E6=AD=A5=E7=BB=9F=E4=B8=80=E4=BB=A3=E7=A0=81=E9=A3=8E?= =?UTF-8?q?=E6=A0=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/system/operatelog/data.ts | 16 +++-- .../src/views/system/operatelog/index.vue | 5 +- .../src/views/system/operatelog/data.ts | 33 ++------- .../src/views/system/operatelog/index.vue | 68 +++++++++---------- .../system/operatelog/modules/detail.vue | 6 +- 5 files changed, 56 insertions(+), 72 deletions(-) diff --git a/apps/web-antd/src/views/system/operatelog/data.ts b/apps/web-antd/src/views/system/operatelog/data.ts index 14cb8a7d7..0584c33e0 100644 --- a/apps/web-antd/src/views/system/operatelog/data.ts +++ b/apps/web-antd/src/views/system/operatelog/data.ts @@ -78,35 +78,43 @@ export function useGridColumns(): VxeTableGridOptions['columns'] { { field: 'id', title: '日志编号', + minWidth: 100, }, { field: 'userName', title: '操作人', + minWidth: 120, }, { field: 'type', title: '操作模块', + minWidth: 120, }, { field: 'subType', title: '操作名', + minWidth: 160, }, { field: 'action', title: '操作内容', + minWidth: 200, }, { field: 'createTime', title: '操作时间', + minWidth: 180, formatter: 'formatDateTime', }, { field: 'bizId', title: '业务编号', + minWidth: 120, }, { field: 'userIp', - title: '操作IP', + title: '操作 IP', + minWidth: 120, }, { title: '操作', @@ -139,11 +147,11 @@ export function useDetailSchema(): DescriptionItemSchema[] { }, { field: 'userIp', - label: '操作人IP', + label: '操作人 IP', }, { field: 'userAgent', - label: '操作人UA', + label: '操作人 UA', }, { field: 'type', @@ -163,7 +171,7 @@ export function useDetailSchema(): DescriptionItemSchema[] { }, { field: 'requestUrl', - label: '请求URL', + label: '请求 URL', content: (data) => { const method = data?.requestMethod || ''; const url = data?.requestUrl || ''; diff --git a/apps/web-antd/src/views/system/operatelog/index.vue b/apps/web-antd/src/views/system/operatelog/index.vue index b40c149c5..fe5dcc220 100644 --- a/apps/web-antd/src/views/system/operatelog/index.vue +++ b/apps/web-antd/src/views/system/operatelog/index.vue @@ -18,7 +18,7 @@ const [DetailModal, detailModalApi] = useVbenModal({ }); /** 刷新表格 */ -function onRefresh() { +function handleRefresh() { gridApi.query(); } @@ -54,6 +54,7 @@ const [Grid, gridApi] = useVbenVxeGrid({ }, rowConfig: { keyField: 'id', + isHover: true, }, toolbarConfig: { refresh: true, @@ -69,7 +70,7 @@ const [Grid, gridApi] = useVbenVxeGrid({ - +