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({ - +