fix: preserve legacy report record source accuracy

This commit is contained in:
hectorzhao
2026-07-14 10:05:08 +08:00
parent 6421671259
commit 7099147871
4 changed files with 7 additions and 2 deletions
+1 -1
View File
@@ -577,7 +577,7 @@ export type ReportRecord = DictionaryItem & {
statusBefore?: string | null;
statusAfter?: string | null;
reason?: string | null;
sourceEntry?: 'system' | 'enterprise_signature' | 'report_task' | 'channel_report';
sourceEntry?: 'system' | 'legacy' | 'enterprise_signature' | 'report_task' | 'channel_report';
channel?: AdminChannel;
task?: ReportTask;
};
+1 -1
View File
@@ -25,7 +25,7 @@ const actionLabel: Record<string, string> = {
};
const sourceEntryLabel: Record<string, string> = {
enterprise_signature: '企业签名修改', report_task: '报备任务修改', channel_report: '通道信息修改', system: '系统自动处理',
enterprise_signature: '企业签名修改', report_task: '报备任务修改', channel_report: '通道信息修改', system: '系统自动处理', legacy: '历史记录(入口未记录)',
};
function translateStatus(value?: string | null) {