diff --git a/apps/web-antd/src/views/infra/apiAccessLog/data.ts b/apps/web-antd/src/views/infra/apiAccessLog/data.ts index 1183a4bbd..9f4235303 100644 --- a/apps/web-antd/src/views/infra/apiAccessLog/data.ts +++ b/apps/web-antd/src/views/infra/apiAccessLog/data.ts @@ -79,14 +79,17 @@ export function useGridColumns(): VxeTableGridOptions['columns'] { { field: 'id', title: '日志编号', + minWidth: 100, }, { field: 'userId', title: '用户编号', + minWidth: 100, }, { field: 'userType', title: '用户类型', + minWidth: 120, cellRender: { name: 'CellDict', props: { type: DICT_TYPE.USER_TYPE }, @@ -95,28 +98,34 @@ export function useGridColumns(): VxeTableGridOptions['columns'] { { field: 'applicationName', title: '应用名', + minWidth: 150, }, { field: 'requestMethod', title: '请求方法', + minWidth: 80, }, { field: 'requestUrl', title: '请求地址', + minWidth: 300, }, { field: 'beginTime', title: '请求时间', + minWidth: 180, formatter: 'formatDateTime', }, { field: 'duration', title: '执行时长', + minWidth: 120, formatter: ({ cellValue }) => `${cellValue} ms`, }, { field: 'resultCode', title: '操作结果', + minWidth: 150, formatter: ({ row }) => { return row.resultCode === 0 ? '成功' : `失败(${row.resultMsg})`; }, @@ -124,14 +133,17 @@ export function useGridColumns(): VxeTableGridOptions['columns'] { { field: 'operateModule', title: '操作模块', + minWidth: 150, }, { field: 'operateName', title: '操作名', + minWidth: 220, }, { field: 'operateType', title: '操作类型', + minWidth: 120, cellRender: { name: 'CellDict', props: { type: DICT_TYPE.INFRA_OPERATE_TYPE }, diff --git a/apps/web-antd/src/views/infra/apiAccessLog/index.vue b/apps/web-antd/src/views/infra/apiAccessLog/index.vue index 4536d32e4..4e4bc183e 100644 --- a/apps/web-antd/src/views/infra/apiAccessLog/index.vue +++ b/apps/web-antd/src/views/infra/apiAccessLog/index.vue @@ -21,7 +21,7 @@ const [DetailModal, detailModalApi] = useVbenModal({ }); /** 刷新表格 */ -function onRefresh() { +function handleRefresh() { gridApi.query(); } @@ -57,6 +57,7 @@ const [Grid, gridApi] = useVbenVxeGrid({ }, rowConfig: { keyField: 'id', + isHover: true, }, toolbarConfig: { refresh: true, @@ -72,7 +73,7 @@ const [Grid, gridApi] = useVbenVxeGrid({ - +