reactor:【system 系统管理】operate 进一步统一代码风格
This commit is contained in:
@@ -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 || '';
|
||||
|
||||
@@ -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({
|
||||
<DocAlert title="系统日志" url="https://doc.iocoder.cn/system-log/" />
|
||||
</template>
|
||||
|
||||
<DetailModal @success="onRefresh" />
|
||||
<DetailModal @success="handleRefresh" />
|
||||
<Grid table-title="操作日志列表">
|
||||
<template #toolbar-tools>
|
||||
<TableAction
|
||||
|
||||
Reference in New Issue
Block a user