// hr-system 审计日志查询页(audit_log_list.ui)—— F12 // 列表 + 详情前后值对比展示。 // 端点:/hrsystem/api/audit_log_list.dspy、/hrsystem/api/audit_log_detail.dspy { "title": "操作日志", "layout": { "type": "tabpanel", "tabs": [ { "key": "list", "title": "操作日志", "widget": "audit_list" } ] }, "widgets": { "audit_list": { "type": "DataViewer", "dspy": "/hrsystem/api/audit_log_list.dspy", "columns": [ { "field": "created_at", "title": "操作时间", "width": 160 }, { "field": "module", "title": "模块", "width": 100 }, { "field": "operation", "title": "操作类型", "width": 100, "dict": "AUDIT_OP" }, { "field": "target_type", "title": "对象类型", "width": 140 }, { "field": "target_id", "title": "对象ID", "width": 120 }, { "field": "operator_name", "title": "操作人", "width": 120 }, { "field": "request_ip", "title": "IP", "width": 140 } ], "filters": [ { "field": "module", "type": "text", "title": "模块" }, { "field": "operation", "type": "select", "title": "操作类型", "dict": "AUDIT_OP" }, { "field": "operator_id", "type": "text", "title": "操作人" }, { "field": "date_from", "type": "date", "title": "开始时间" }, { "field": "date_to", "type": "date", "title": "结束时间" } ], "pagination": { "page_size": 20 }, "onSelect": { "open": "audit_detail" } }, "audit_detail": { "type": "Dialog", "dspy": "/hrsystem/api/audit_log_detail.dspy", "title": "操作日志详情", "fields": [ { "field": "created_at", "title": "操作时间" }, { "field": "module", "title": "模块" }, { "field": "operation", "title": "操作类型", "dict": "AUDIT_OP" }, { "field": "operator_name", "title": "操作人" }, { "field": "request_ip", "title": "IP" } ], "compare": { "type": "DiffPanel", "before": "before_json", "after": "after_json", "title": "前后值对比(敏感字段已脱敏)" } } } }