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:
@@ -64,7 +64,14 @@
|
||||
"refresh": "Refresh versions",
|
||||
"newDraft": "New draft",
|
||||
"saveDraft": "Save draft",
|
||||
"saveFailed": "Failed to save configuration"
|
||||
"saveFailed": "Failed to save configuration",
|
||||
"rollbackSuccess": "Cloned v{{fromVersion}} into new draft v{{version}}",
|
||||
"rollbackFailed": "Rollback failed",
|
||||
"rollbackDialog": {
|
||||
"title": "Confirm rollback",
|
||||
"description": "A new draft will be cloned from version v{{version}}. The active version will not be overwritten directly.",
|
||||
"confirm": "Confirm rollback"
|
||||
}
|
||||
},
|
||||
"wallet": {
|
||||
"title": "Wallet transfer limit settings",
|
||||
@@ -327,7 +334,8 @@
|
||||
},
|
||||
"winEnjoy": {
|
||||
"label": "Apply rebate on winning tickets",
|
||||
"description": "Placeholder field. It can later be aligned with risk and settlement rules and persisted."
|
||||
"description": "Placeholder field. It can later be aligned with risk and settlement rules and persisted.",
|
||||
"pendingNote": "Required by the product spec, but the API has no field yet. This row is informational only—you cannot change it here."
|
||||
},
|
||||
"effectiveTime": "Effective time (current active odds version)"
|
||||
},
|
||||
@@ -372,12 +380,21 @@
|
||||
"actions": "Actions"
|
||||
},
|
||||
"occupancy": {
|
||||
"title": "All number occupancy",
|
||||
"description": "Placeholder view: filters and exports still need ticket-summary integration. Data below still comes from the current draft list.",
|
||||
"searchLabel": "Search number",
|
||||
"searchPlaceholder": "e.g. 8888",
|
||||
"filterPending": "Sold-out / high-risk preset filter is pending integration",
|
||||
"exportPending": "CSV export is pending integration"
|
||||
"searchPlaceholder": "e.g. 8888"
|
||||
},
|
||||
"runtime": {
|
||||
"title": "Per-draw occupancy (live)",
|
||||
"description": "Loaded from the draw risk-pool API, not from the version draft above. Select a draw to see used, remaining, and sold-out state.",
|
||||
"drawLabel": "Draw",
|
||||
"drawPlaceholder": "Select draw",
|
||||
"filterAll": "All",
|
||||
"filterSoldOut": "Sold out only",
|
||||
"filterHighRisk": "High usage",
|
||||
"manageHint": "Use the links above for full risk operations on this draw.",
|
||||
"noDraws": "No draws available; cannot load occupancy.",
|
||||
"soldYes": "Yes",
|
||||
"soldNo": "No"
|
||||
},
|
||||
"actions": {
|
||||
"update": "Update",
|
||||
|
||||
@@ -155,6 +155,7 @@
|
||||
"finance": "Draw finance",
|
||||
"review": "Review & publish",
|
||||
"riskOccupancy": "Risk occupancy",
|
||||
"riskLockLogs": "Lock logs",
|
||||
"riskHot": "Hot numbers",
|
||||
"riskSoldOut": "Sold-out numbers",
|
||||
"riskPools": "Risk pools"
|
||||
|
||||
@@ -10,8 +10,11 @@
|
||||
"dimension": "Dimension",
|
||||
"exportPending": "{{report}} {{format}} export API is not connected yet",
|
||||
"exportSuccess": "Exported {{report}} ({{format}})",
|
||||
"exportServerSuccess": "Job {{jobNo}} created and downloaded {{report}} ({{format}})",
|
||||
"exportFailed": "Export failed",
|
||||
"exportHint": "Once export APIs are connected, the current filters will generate the selected file format.",
|
||||
"exportHint": "Server exports use the current filters to build a full file. Completed jobs can be downloaded again below.",
|
||||
"exportServerHint": "Full export via server job (preview query not required)",
|
||||
"exportClientHint": "Export current preview page (run query first)",
|
||||
"validation": {
|
||||
"drawNoRequired": "Please enter a draw number",
|
||||
"drawNoNotFound": "Draw number «{{drawNo}}» was not found",
|
||||
@@ -19,7 +22,43 @@
|
||||
},
|
||||
"formats": {
|
||||
"csv": "CSV",
|
||||
"excel": "Excel"
|
||||
"excel": "Excel",
|
||||
"csvServer": "Export CSV (full)",
|
||||
"excelServer": "Export Excel (full)"
|
||||
},
|
||||
"tasks": {
|
||||
"refresh": "Refresh",
|
||||
"download": "Download",
|
||||
"loadFailed": "Failed to load export jobs",
|
||||
"downloadSuccess": "Downloaded {{jobNo}}",
|
||||
"downloadFailed": "Download failed",
|
||||
"columns": {
|
||||
"jobNo": "Job no.",
|
||||
"report": "Report",
|
||||
"format": "Format",
|
||||
"status": "Status",
|
||||
"createdAt": "Created",
|
||||
"actions": "Actions"
|
||||
},
|
||||
"status": {
|
||||
"pending": "Pending",
|
||||
"processing": "Processing",
|
||||
"completed": "Completed",
|
||||
"failed": "Failed"
|
||||
}
|
||||
},
|
||||
"jobTypes": {
|
||||
"draw_profit_summary": "Draw P&L",
|
||||
"daily_profit_summary": "Daily P&L",
|
||||
"player_win_loss": "Player win/loss",
|
||||
"wallet_transfer_report": "Wallet transfers",
|
||||
"wallet_txns_daily": "Wallet txns (daily)",
|
||||
"transfer_orders_daily": "Transfer orders (daily)",
|
||||
"hot_number_risk_report": "Hot number risk",
|
||||
"play_dimension_report": "Play dimension",
|
||||
"sold_out_number_report": "Sold-out numbers",
|
||||
"rebate_commission_report": "Rebate / commission",
|
||||
"audit_operation_report": "Admin audit"
|
||||
},
|
||||
"empty": "No matching reports",
|
||||
"backendPending": "This report is temporarily unavailable",
|
||||
|
||||
@@ -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": "यो placeholder field हो। पछि risk र settlement नियमसँग मिलाएर स्थायी रूपमा राख्न सकिन्छ।"
|
||||
"description": "यो placeholder field हो। पछि risk र settlement नियमसँग मिलाएर स्थायी रूपमा राख्न सकिन्छ।",
|
||||
"pendingNote": "उत्पादन विनिर्देशनले यो switch चाहिन्छ, तर API मा field छैन। यहाँ केवल जानकारी देखाइन्छ—यहाँबाट बदल्न मिल्दैन।"
|
||||
},
|
||||
"effectiveTime": "लागू समय (हाल सक्रिय अड्स संस्करण)"
|
||||
},
|
||||
@@ -372,12 +380,21 @@
|
||||
"actions": "कार्य"
|
||||
},
|
||||
"occupancy": {
|
||||
"title": "सबै नम्बर occupancy",
|
||||
"description": "यो placeholder दृश्य हो। filter र export ले ticket-summary एकीकरण अझै चाहिन्छ। तलको data अहिले पनि हालको ड्राफ्ट सूचीबाट आउँछ।",
|
||||
"searchLabel": "नम्बर खोज्नुहोस्",
|
||||
"searchPlaceholder": "जस्तै 8888",
|
||||
"filterPending": "Sold-out / high-risk preset filter अझै एकीकृत भएको छैन",
|
||||
"exportPending": "CSV export अझै एकीकृत भएको छैन"
|
||||
"searchPlaceholder": "जस्तै 8888"
|
||||
},
|
||||
"runtime": {
|
||||
"title": "ड्रअनुसार occupancy (लाइभ)",
|
||||
"description": "माथिको संस्करण ड्राफ्ट होइन—चयन गरिएको ड्रअको risk-pool API बाट लोड हुन्छ। प्रयोग, बाँकी र sold-out हेर्नुहोस्।",
|
||||
"drawLabel": "ड्र",
|
||||
"drawPlaceholder": "ड्र छान्नुहोस्",
|
||||
"filterAll": "सबै",
|
||||
"filterSoldOut": "मात्र sold-out",
|
||||
"filterHighRisk": "उच्च प्रयोग",
|
||||
"manageHint": "पूर्ण risk सञ्चालनका लागि माथिको लिङ्कबाट ड्र subpage खोल्नुहोस्।",
|
||||
"noDraws": "कुनै ड्र छैन; occupancy लोड गर्न सकिँदैन।",
|
||||
"soldYes": "हो",
|
||||
"soldNo": "होइन"
|
||||
},
|
||||
"actions": {
|
||||
"update": "अपडेट",
|
||||
|
||||
@@ -155,6 +155,7 @@
|
||||
"finance": "ड्रअ वित्त",
|
||||
"review": "समीक्षा र प्रकाशन",
|
||||
"riskOccupancy": "जोखिम अकुपेन्सी",
|
||||
"riskLockLogs": "लक लग",
|
||||
"riskHot": "हट नम्बर",
|
||||
"riskSoldOut": "बिक्री समाप्त नम्बर",
|
||||
"riskPools": "जोखिम पूल"
|
||||
|
||||
@@ -10,8 +10,11 @@
|
||||
"dimension": "आयाम",
|
||||
"exportPending": "{{report}} {{format}} निर्यात API अझै जोडिएको छैन",
|
||||
"exportSuccess": "{{report}} ({{format}}) निर्यात भयो",
|
||||
"exportServerSuccess": "कार्य {{jobNo}} सिर्जना भई {{report}} ({{format}}) डाउनलोड भयो",
|
||||
"exportFailed": "निर्यात असफल भयो",
|
||||
"exportHint": "निर्यात API जोडिएपछि हालका फिल्टरअनुसार छानिएको फाइल ढाँचा बनाइनेछ।",
|
||||
"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": "ड्र P&L",
|
||||
"daily_profit_summary": "दैनिक P&L",
|
||||
"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": "यो रिपोर्ट अस्थायी रूपमा उपलब्ध छैन",
|
||||
|
||||
@@ -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": "更新",
|
||||
|
||||
@@ -155,6 +155,7 @@
|
||||
"finance": "期号收支",
|
||||
"review": "审核与发布",
|
||||
"riskOccupancy": "风控占用",
|
||||
"riskLockLogs": "占用流水",
|
||||
"riskHot": "热门号码",
|
||||
"riskSoldOut": "售罄号码",
|
||||
"riskPools": "风险池"
|
||||
|
||||
@@ -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": "该报表暂不可用",
|
||||
|
||||
Reference in New Issue
Block a user