完善审计日志展示与导出权限
This commit is contained in:
@@ -19,9 +19,11 @@ export const formatAuditRow = (event: AuditEvent): AuditExportRow => {
|
||||
const descriptionParts: string[] = [];
|
||||
descriptionParts.push(`${event.actorName} ${event.actionText}`);
|
||||
if (event.targetTypeLabel || event.targetName || event.targetId) {
|
||||
const targetIdentifier = event.targetName || event.targetId;
|
||||
descriptionParts.push(
|
||||
`${TEXT.audit.objectLabel}${event.targetTypeLabel || ""}${
|
||||
event.targetName ? `(${event.targetName})` : `(${event.targetId}`})`
|
||||
targetIdentifier ? `(${targetIdentifier})` : ""
|
||||
}`
|
||||
);
|
||||
}
|
||||
if (event.diffText?.length) {
|
||||
|
||||
Reference in New Issue
Block a user