日志分页查询及展示

This commit is contained in:
caozehui
2025-04-11 14:34:56 +08:00
parent 5619413f37
commit 1853152138

View File

@@ -53,7 +53,7 @@ const columns = reactive<ColumnProps<AuditLog.ReqAuditLogParams>[]>([
{ type: 'selection', fixed: 'left', width: 70 },
{ type: 'index', fixed: 'left', width: 70, label: '序号' },
{
prop: 'createBy',
prop: 'userName',
label: '操作用户',
search: { el: 'input' },
minWidth: 100,
@@ -64,7 +64,7 @@ const columns = reactive<ColumnProps<AuditLog.ReqAuditLogParams>[]>([
minWidth: 120,
},
{
prop: 'createTime',
prop: 'logTime',
label: '记录时间',
minWidth: 180,
search: {
@@ -82,9 +82,11 @@ const columns = reactive<ColumnProps<AuditLog.ReqAuditLogParams>[]>([
},
},
{
prop: 'remark',
label: '事件描述',
minWidth: 400,
minWidth: 450,
render: (scope) => {
return (scope.row.userName + '在' + scope.row.logTime + '执行了' + scope.row.operateType +scope.row.operate + '操作,结果为' + scope.row.result + '。')
}
},
{
prop: 'result',
@@ -97,7 +99,7 @@ const columns = reactive<ColumnProps<AuditLog.ReqAuditLogParams>[]>([
minWidth: 100,
render: scope => {
return (
<el-tag type={scope.row.warn ? 'danger' : 'success'}>{scope.row.warn ? '告警' : '未告警'}</el-tag>
<el-tag type={scope.row.warn==1 ? 'danger' : 'success'}>{scope.row.warn==1 ? '告警' : '未告警'}</el-tag>
)
},
},