fix: 优化后台体验与导出日志交互

This commit is contained in:
Nixevol
2026-07-05 00:04:35 +08:00
parent 935375a904
commit 4122897725
44 changed files with 798 additions and 221 deletions
+64 -11
View File
@@ -120,7 +120,7 @@
"noData": "No data",
"maxReached": "Up to {n} files"
},
"lang": { "zh": "中文", "en": "English" }
"lang": { "zh": "Simplified Chinese", "en": "English" }
},
"menu": {
"dashboard": "Dashboard",
@@ -133,11 +133,11 @@
"operationLogs": "Operation Logs",
"users": "Users",
"settings": "Settings",
"profile": "Profile"
"profile": "Personal Info"
},
"pages": {
"login": {
"title": "Artwork Traceability & Authentication",
"title": "Artwork Traceability Platform",
"subtitle": "Management Console",
"username": "Username",
"password": "Password",
@@ -153,10 +153,11 @@
"totalQueries": "Total Queries",
"todayQueries": "Today",
"abnormalQueries": "Abnormal",
"trendTitle": "Queries (Last 7 Days)",
"trendTitle": "Query Trend",
"topTitle": "Top Queried Artworks",
"queryCount": "Queries",
"rank": "Rank"
"rank": "Rank",
"daysSuffix": "days"
},
"template": {
"name": "Template Name",
@@ -244,9 +245,10 @@
"quantity": "Quantity",
"generate": "Generate Trace Codes",
"generatedCount": "Generated",
"shortCode": "Short Code",
"shortCode": "Trace Code",
"code": "Trace Code",
"url": "Short URL",
"url": "Link",
"keywordPlaceholder": "Trace code / link / archive no. / name",
"queryCount": "Queries",
"firstActivatedAt": "First Activated",
"exportBatch": "Export Batch",
@@ -301,7 +303,18 @@
"successCount": "Success",
"failCount": "Failed",
"downloadResult": "Download Details",
"tip": "Download the template first, fill it in and upload (xlsx). Includes outbound photo, on-chain hash/time/block height."
"tip": "Download the template first, fill it in and upload (xlsx). Includes outbound photo, on-chain hash/time/block height.",
"downloadZipTemplate": "Download Template ZIP",
"uploadZipPreview": "Upload & Preview",
"totalRows": "Rows",
"validRows": "Valid",
"invalidRows": "Invalid",
"confirmImport": "Confirm Import",
"rowNo": "Row",
"errorReason": "Error",
"previewReady": "Preview parsed",
"uploadFailed": "Upload failed",
"importDone": "Import completed"
},
"blockchain": {
"title": "Blockchain Attestation",
@@ -320,7 +333,7 @@
"queriedAt": "Time",
"startTime": "Start",
"endTime": "End",
"keywordPlaceholder": "Short code / trace code / archive no."
"keywordPlaceholder": "Trace code / archive no."
},
"user": {
"username": "Username",
@@ -334,19 +347,59 @@
},
"settings": {
"appName": "Platform Name",
"logRetentionDays": "Log Retention (days)",
"logRetentionDays": "Query Log Retention (days)",
"operationLogRetentionDays": "Operation Log Retention (days)",
"watermarkText": "Certificate Watermark",
"carouselInterval": "Client Carousel Interval (s)",
"carouselIntervalHint": "Seconds each media stays; decimals allowed. 0 disables auto-advance (manual loop still works).",
"saved": "Settings saved"
},
"profile": {
"title": "Profile",
"title": "Personal Info",
"oldPassword": "Current Password",
"newPassword": "New Password",
"confirmPassword": "Confirm Password",
"passwordMismatch": "Passwords do not match",
"changed": "Password changed, please log in again"
},
"operationLog": {
"keywordPlaceholder": "Account / summary / path / target ID",
"module": "Module",
"action": "Action",
"result": "Result",
"summary": "Summary",
"duration": "Duration",
"message": "Message",
"rawTargetId": "Raw Target ID",
"rawPath": "Raw Path",
"requestSummary": "Request Summary",
"modules": {
"auth": "Auth",
"artworks": "Artwork Files",
"templates": "Templates",
"traceCodes": "Trace Codes",
"traceCodeGroups": "Trace Code Groups",
"outbound": "Outbound Import",
"backups": "Backup & Restore",
"settings": "Settings",
"users": "Users",
"upload": "Upload",
"download": "Download",
"export": "Export"
},
"actions": {
"login": "Sign in",
"backup": "Create Backup",
"restore": "Restore"
},
"paths": {
"outboundPreview": "Outbound import preview",
"outboundCommit": "Confirm outbound import",
"traceExport": "Export trace codes and QR images",
"backup": "Backup management",
"restore": "Restore backup",
"upload": "Upload file"
}
}
}
}
+1 -1
View File
@@ -4,7 +4,7 @@ import enUS from './en-US.json';
// 新增语言:在本目录添加 <locale>.json(与 zh-CN.json 同构),并在此注册即可。
export const SUPPORTED_LOCALES = [
{ value: 'zh-CN', label: '中文' },
{ value: 'zh-CN', label: '简体中文' },
{ value: 'en-US', label: 'English' },
];
+64 -11
View File
@@ -120,7 +120,7 @@
"noData": "暂无数据",
"maxReached": "最多上传 {n} 个"
},
"lang": { "zh": "中文", "en": "English" }
"lang": { "zh": "简体中文", "en": "English" }
},
"menu": {
"dashboard": "数据看板",
@@ -133,11 +133,11 @@
"operationLogs": "操作日志",
"users": "用户管理",
"settings": "系统设置",
"profile": "个人中心"
"profile": "个人信息"
},
"pages": {
"login": {
"title": "艺术品可信溯源与认证平台",
"title": "艺术品溯源平台",
"subtitle": "运营管理后台",
"username": "用户名",
"password": "密码",
@@ -153,10 +153,11 @@
"totalQueries": "总查询次数",
"todayQueries": "今日查询",
"abnormalQueries": "异常查询",
"trendTitle": "近 7 日查询趋势",
"trendTitle": "查询趋势",
"topTitle": "高频查询作品榜",
"queryCount": "查询次数",
"rank": "排名"
"rank": "排名",
"daysSuffix": "日"
},
"template": {
"name": "模板名称",
@@ -244,9 +245,10 @@
"quantity": "数量",
"generate": "生成追溯码",
"generatedCount": "已生成",
"shortCode": "短码",
"shortCode": "追溯码",
"code": "追溯码",
"url": "短链",
"url": "链接",
"keywordPlaceholder": "追溯码 / 链接 / 档案编号 / 名称",
"queryCount": "查询次数",
"firstActivatedAt": "首次激活时间",
"exportBatch": "导出本批",
@@ -301,7 +303,18 @@
"successCount": "成功",
"failCount": "失败",
"downloadResult": "下载结果明细",
"tip": "请先下载模板,按模板填写后上传(支持 xlsx)。模板含出库实况图、上链哈希/时间/区块高度等字段。"
"tip": "请先下载模板,按模板填写后上传(支持 xlsx)。模板含出库实况图、上链哈希/时间/区块高度等字段。",
"downloadZipTemplate": "下载模板包",
"uploadZipPreview": "上传并预览",
"totalRows": "总行数",
"validRows": "有效行",
"invalidRows": "错误行",
"confirmImport": "确认导入",
"rowNo": "行号",
"errorReason": "错误原因",
"previewReady": "预览解析完成",
"uploadFailed": "上传失败",
"importDone": "导入完成"
},
"blockchain": {
"title": "区块链存证",
@@ -320,7 +333,7 @@
"queriedAt": "查询时间",
"startTime": "开始时间",
"endTime": "结束时间",
"keywordPlaceholder": "短码 / 追溯码 / 档案号"
"keywordPlaceholder": "追溯码 / 档案号"
},
"user": {
"username": "用户名",
@@ -334,19 +347,59 @@
},
"settings": {
"appName": "平台名称",
"logRetentionDays": "日志保留天数",
"logRetentionDays": "查询日志保留天数",
"operationLogRetentionDays": "操作日志保留天数",
"watermarkText": "证书水印文案",
"carouselInterval": "客户端轮播间隔(秒)",
"carouselIntervalHint": "每张媒体停留秒数,支持小数;填 0 则不自动切换(仍可手动循环切换)",
"saved": "设置已保存"
},
"profile": {
"title": "个人中心",
"title": "个人信息",
"oldPassword": "原密码",
"newPassword": "新密码",
"confirmPassword": "确认新密码",
"passwordMismatch": "两次密码不一致",
"changed": "密码修改成功,请重新登录"
},
"operationLog": {
"keywordPlaceholder": "账号 / 摘要 / 路径 / 目标 ID",
"module": "模块",
"action": "操作",
"result": "结果",
"summary": "操作摘要",
"duration": "耗时",
"message": "消息",
"rawTargetId": "原始目标 ID",
"rawPath": "原始路径",
"requestSummary": "请求摘要",
"modules": {
"auth": "登录认证",
"artworks": "艺术品档案",
"templates": "溯源模板",
"traceCodes": "追溯码管理",
"traceCodeGroups": "追溯码分组",
"outbound": "出库导入",
"backups": "备份恢复",
"settings": "系统设置",
"users": "用户管理",
"upload": "文件上传",
"download": "文件下载",
"export": "数据导出"
},
"actions": {
"login": "登录",
"backup": "创建备份",
"restore": "恢复"
},
"paths": {
"outboundPreview": "出库批量导入预览",
"outboundCommit": "确认出库批量导入",
"traceExport": "导出追溯码与二维码",
"backup": "备份管理",
"restore": "恢复备份",
"upload": "上传文件"
}
}
}
}