feat(api, i18n): add admin report job functionalities and enhance locale support

- Introduced new API functions for managing admin report jobs, including download and post operations.
- Updated English, Nepali, and Chinese locale files to include new messages related to report job actions and rollback confirmations.
- Enhanced user experience by providing clearer instructions and feedback in the admin interface.
- Refactored related components to integrate new functionalities and improve overall usability.
This commit is contained in:
2026-05-26 11:48:51 +08:00
parent 7fb5ec6dff
commit a76b681828
21 changed files with 1139 additions and 118 deletions

View File

@@ -64,7 +64,14 @@
"refresh": "刷新版本",
"newDraft": "新建草稿",
"saveDraft": "保存草稿",
"saveFailed": "配置保存失败"
"saveFailed": "配置保存失败",
"rollbackSuccess": "已从 v{{fromVersion}} 克隆出新草稿 v{{version}}",
"rollbackFailed": "回滚失败",
"rollbackDialog": {
"title": "确认回滚",
"description": "系统会基于版本 v{{version}} 克隆出新的草稿,不会直接覆盖当前生效版本。",
"confirm": "确认回滚"
}
},
"wallet": {
"title": "钱包转账限额配置",
@@ -327,7 +334,8 @@
},
"winEnjoy": {
"label": "中奖注单也应用回水",
"description": "这是预留字段,后续可和风控、结算规则对齐后再真正落库存储。"
"description": "这是预留字段,后续可和风控、结算规则对齐后再真正落库存储。",
"pendingNote": "产品要求支持该开关,但后端尚未提供配置字段;当前仅展示说明,无法在此修改。"
},
"effectiveTime": "生效时间(当前赔率生效版本)"
},
@@ -372,12 +380,21 @@
"actions": "操作"
},
"occupancy": {
"title": "全号码占用视图",
"description": "这里还是占位视图,筛选和导出后续还需要接入真实注单汇总;下方数据目前仍来自当前草稿列表。",
"searchLabel": "搜索号码",
"searchPlaceholder": "例如 8888",
"filterPending": "售罄 / 高风险预设筛选尚未接入",
"exportPending": "CSV 导出尚未接入"
"searchPlaceholder": "例如 8888"
},
"runtime": {
"title": "按期号查看占用(实时)",
"description": "数据来自该期号风险池 API与上方版本草稿无关。请选择期号后查看已占用、剩余额度与售罄状态。",
"drawLabel": "期号",
"drawPlaceholder": "选择期号",
"filterAll": "全部",
"filterSoldOut": "仅售罄",
"filterHighRisk": "高占用",
"manageHint": "完整风控操作请使用上方链接进入期号风控子页。",
"noDraws": "暂无可用期号,无法加载占用数据。",
"soldYes": "是",
"soldNo": "否"
},
"actions": {
"update": "更新",

View File

@@ -155,6 +155,7 @@
"finance": "期号收支",
"review": "审核与发布",
"riskOccupancy": "风控占用",
"riskLockLogs": "占用流水",
"riskHot": "热门号码",
"riskSoldOut": "售罄号码",
"riskPools": "风险池"

View File

@@ -10,8 +10,11 @@
"dimension": "维度",
"exportPending": "{{report}} 的 {{format}} 导出接口待接入",
"exportSuccess": "已导出 {{report}}{{format}}",
"exportServerSuccess": "已生成任务 {{jobNo}} 并下载 {{report}}{{format}}",
"exportFailed": "导出失败",
"exportHint": "接入导出接口后,会按当前条件生成对应格式的文件。",
"exportHint": "服务端导出会按当前筛选条件生成全量文件;任务完成后可在下方列表再次下载。",
"exportServerHint": "全量导出走服务端任务(无需先查询预览)",
"exportClientHint": "导出当前预览页数据(需先查询)",
"validation": {
"drawNoRequired": "请输入期号",
"drawNoNotFound": "未找到期号「{{drawNo}}」",
@@ -19,7 +22,43 @@
},
"formats": {
"csv": "CSV",
"excel": "Excel"
"excel": "Excel",
"csvServer": "导出 CSV全量",
"excelServer": "导出 Excel全量"
},
"tasks": {
"refresh": "刷新",
"download": "下载",
"loadFailed": "任务列表加载失败",
"downloadSuccess": "已下载 {{jobNo}}",
"downloadFailed": "下载失败",
"columns": {
"jobNo": "任务编号",
"report": "报表",
"format": "格式",
"status": "状态",
"createdAt": "创建时间",
"actions": "操作"
},
"status": {
"pending": "排队中",
"processing": "处理中",
"completed": "已完成",
"failed": "失败"
}
},
"jobTypes": {
"draw_profit_summary": "期号盈亏",
"daily_profit_summary": "每日盈亏汇总",
"player_win_loss": "玩家输赢",
"wallet_transfer_report": "玩家转入转出",
"wallet_txns_daily": "钱包流水(日)",
"transfer_orders_daily": "转账订单(日)",
"hot_number_risk_report": "热门号码风险",
"play_dimension_report": "玩法维度",
"sold_out_number_report": "售罄号码",
"rebate_commission_report": "佣金/回水",
"audit_operation_report": "后台操作审计"
},
"empty": "没有匹配的报表",
"backendPending": "该报表暂不可用",