feat(frontend): 优化多个列表页面 UI,添加空状态提示

- 优化 AccountList、BacktestList、CopyTradingList、CryptoTailStrategyList、LeaderList、TemplateList、UserList 页面操作栏
- 添加空数据状态提示
- 添加相关多语言翻译 key

Made-with: Cursor
This commit is contained in:
WrBug
2026-03-01 06:48:51 +08:00
parent f86749e85d
commit 4ebfacfc21
10 changed files with 1288 additions and 920 deletions
+12 -4
View File
@@ -42,7 +42,8 @@
"pageOf": "Page",
"ascending": "Ascending",
"descending": "Descending",
"day": "day"
"day": "day",
"orders": "orders"
},
"account": {
"title": "Account Management",
@@ -176,7 +177,8 @@
"updateFailed": "Failed to update account",
"getDetailFailedForEdit": "Failed to get account detail",
"loading": "Loading...",
"fetchFailed": "Failed to get account list"
"fetchFailed": "Failed to get account list",
"noData": "No account data"
},
"accountImport": {
"title": "Import Account",
@@ -660,7 +662,8 @@
"deleteSuccess": "User deleted successfully",
"deleteFailed": "Failed to delete user",
"deleteConfirm": "Are you sure you want to delete this user?",
"total": "Total {{total}} items"
"total": "Total {{total}} items",
"noData": "No user data"
},
"statistics": {
"title": "Statistics",
@@ -1121,7 +1124,9 @@
"updateStatusFailed": "Failed to update copy trading status",
"deleteSuccess": "Copy trading deleted successfully",
"deleteFailed": "Failed to delete copy trading",
"deleteConfirm": "Are you sure you want to delete this copy trading relationship?"
"deleteConfirm": "Are you sure you want to delete this copy trading relationship?",
"profitRate": "Profit Rate",
"noData": "No copy trading configuration"
},
"notificationSettings": {
"title": "Notification Settings",
@@ -1351,6 +1356,8 @@
"title": "Backtest",
"taskName": "Task Name",
"leader": "Leader",
"balance": "Balance (Init→Final)",
"profit": "Profit (Amount/Rate)",
"initialBalance": "Initial Balance",
"backtestDays": "Backtest Days",
"status": "Status",
@@ -1399,6 +1406,7 @@
"createCopyTradingSuccess": "Copy trading config created successfully",
"noTasks": "No backtest tasks",
"noTrades": "No trade records",
"noData": "No backtest data",
"fetchTasksFailed": "Failed to fetch task list",
"fetchTaskDetailFailed": "Failed to fetch task detail",
"fetchTradesFailed": "Failed to fetch trade records",
+12 -4
View File
@@ -42,7 +42,8 @@
"copyFailed": "复制失败",
"ascending": "升序",
"descending": "降序",
"day": "天"
"day": "天",
"orders": "单"
},
"login": {
"title": "登录",
@@ -176,7 +177,8 @@
"updateFailed": "更新账户失败",
"getDetailFailedForEdit": "获取账户详情失败",
"loading": "加载中...",
"fetchFailed": "获取账户列表失败"
"fetchFailed": "获取账户列表失败",
"noData": "暂无账户数据"
},
"accountImport": {
"title": "导入账户",
@@ -660,7 +662,8 @@
"deleteSuccess": "删除用户成功",
"deleteFailed": "删除用户失败",
"deleteConfirm": "确定要删除这个用户吗?",
"total": "共 {{total}} 条"
"total": "共 {{total}} 条",
"noData": "暂无用户数据"
},
"statistics": {
"title": "统计信息",
@@ -1121,7 +1124,9 @@
"updateStatusFailed": "更新跟单状态失败",
"deleteSuccess": "删除跟单成功",
"deleteFailed": "删除跟单失败",
"deleteConfirm": "确定要删除这个跟单关系吗?"
"deleteConfirm": "确定要删除这个跟单关系吗?",
"profitRate": "收益率",
"noData": "暂无跟单配置"
},
"notificationSettings": {
"title": "消息推送设置",
@@ -1351,6 +1356,8 @@
"title": "回测",
"taskName": "任务名称",
"leader": "Leader",
"balance": "资金 (初始→最终)",
"profit": "收益 (金额/比例)",
"initialBalance": "初始资金",
"backtestDays": "回测天数",
"status": "状态",
@@ -1399,6 +1406,7 @@
"createCopyTradingSuccess": "跟单配置创建成功",
"noTasks": "暂无回测任务",
"noTrades": "暂无交易记录",
"noData": "暂无回测数据",
"fetchTasksFailed": "获取任务列表失败",
"fetchTaskDetailFailed": "获取任务详情失败",
"fetchTradesFailed": "获取交易记录失败",
+12 -4
View File
@@ -42,7 +42,8 @@
"pageOf": "第",
"ascending": "升序",
"descending": "降序",
"day": "天"
"day": "天",
"orders": "單"
},
"account": {
"title": "賬戶管理",
@@ -176,7 +177,8 @@
"updateFailed": "更新賬戶失敗",
"getDetailFailedForEdit": "獲取賬戶詳情失敗",
"loading": "加載中...",
"fetchFailed": "獲取賬戶列表失敗"
"fetchFailed": "獲取賬戶列表失敗",
"noData": "暫無賬戶數據"
},
"accountImport": {
"title": "導入賬戶",
@@ -660,7 +662,8 @@
"deleteSuccess": "刪除用戶成功",
"deleteFailed": "刪除用戶失敗",
"deleteConfirm": "確定要刪除這個用戶嗎?",
"total": "共 {{total}} 條"
"total": "共 {{total}} 條",
"noData": "暫無用戶數據"
},
"statistics": {
"title": "統計信息",
@@ -1121,7 +1124,9 @@
"updateStatusFailed": "更新跟單狀態失敗",
"deleteSuccess": "刪除跟單成功",
"deleteFailed": "刪除跟單失敗",
"deleteConfirm": "確定要刪除這個跟單關係嗎?"
"deleteConfirm": "確定要刪除這個跟單關係嗎?",
"profitRate": "收益率",
"noData": "暫無跟單配置"
},
"notificationSettings": {
"title": "消息推送設置",
@@ -1351,6 +1356,8 @@
"title": "回測",
"taskName": "任務名稱",
"leader": "Leader",
"balance": "資金 (初始→最終)",
"profit": "收益 (金額/比例)",
"initialBalance": "初始資金",
"backtestDays": "回測天數",
"status": "狀態",
@@ -1399,6 +1406,7 @@
"createCopyTradingSuccess": "跟單配置創建成功",
"noTasks": "暫無回測任務",
"noTrades": "暫無交易記錄",
"noData": "暫無回測數據",
"fetchTasksFailed": "獲取任務列表失敗",
"fetchTaskDetailFailed": "獲取任務詳情失敗",
"fetchTradesFailed": "獲取交易記錄失敗",