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({
-
+
(
- onActionClick: OnActionClickFn,
-): VxeTableGridOptions['columns'] {
+export function useGridColumns(): VxeTableGridOptions['columns'] {
return [
{
field: 'id',
@@ -117,30 +110,14 @@ export function useGridColumns(
},
{
field: 'userIp',
- title: '操作IP',
+ title: '操作 IP',
minWidth: 120,
},
{
- field: 'operation',
title: '操作',
- minWidth: 120,
- align: 'center',
+ width: 80,
fixed: 'right',
- cellRender: {
- attrs: {
- nameField: 'action',
- nameTitle: '操作日志',
- onClick: onActionClick,
- },
- name: 'CellOperation',
- options: [
- {
- code: 'detail',
- text: '详情',
- show: hasAccessByCodes(['system:operate-log:query']),
- },
- ],
- },
+ slots: { default: 'actions' },
},
];
}
diff --git a/apps/web-ele/src/views/system/operatelog/index.vue b/apps/web-ele/src/views/system/operatelog/index.vue
index bced20cc4..a67735d32 100644
--- a/apps/web-ele/src/views/system/operatelog/index.vue
+++ b/apps/web-ele/src/views/system/operatelog/index.vue
@@ -1,17 +1,11 @@