From 45734c051e2678365b040e05d2980e0fb6b2e367 Mon Sep 17 00:00:00 2001 From: WrBug Date: Tue, 20 Jan 2026 11:44:33 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BC=98=E5=8C=96=E4=B9=B0=E5=85=A5?= =?UTF-8?q?=E8=AE=A2=E5=8D=95=E5=88=86=E7=BB=84=E7=9A=84=E5=8D=96=E5=87=BA?= =?UTF-8?q?=E7=8A=B6=E6=80=81=E6=96=87=E6=A1=88=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 当完全成交数为0时,显示'未卖出'而不是'部分成交 (0/X)' - 统一状态文案:'部分成交'改为'部分卖出','全部成交'改为'全部卖出' - 更新中英文和繁体中文的多语言配置 - 优化筛选选项中的状态文案,与分组显示保持一致 --- frontend/src/locales/en/common.json | 5 +++-- frontend/src/locales/zh-CN/common.json | 9 +++++---- frontend/src/locales/zh-TW/common.json | 9 +++++---- .../pages/CopyTradingOrders/BuyOrdersTab.tsx | 20 ++++++++++--------- 4 files changed, 24 insertions(+), 19 deletions(-) diff --git a/frontend/src/locales/en/common.json b/frontend/src/locales/en/common.json index 7505c00..c619864 100644 --- a/frontend/src/locales/en/common.json +++ b/frontend/src/locales/en/common.json @@ -1109,8 +1109,9 @@ "groupByMarket": "Group by Market", "expandAll": "Expand All", "collapseAll": "Collapse All", - "allFullyMatched": "All Fully Matched", - "partiallyMatched": "Partially Matched", + "allFullyMatched": "All Fully Sold", + "notSold": "Not Sold", + "partiallyMatched": "Partially Sold", "orderCount": "Order Count", "totalAmount": "Total Amount", "totalPnl": "Total PnL", diff --git a/frontend/src/locales/zh-CN/common.json b/frontend/src/locales/zh-CN/common.json index 18dd747..a32aefc 100644 --- a/frontend/src/locales/zh-CN/common.json +++ b/frontend/src/locales/zh-CN/common.json @@ -1080,8 +1080,8 @@ "sellStatus": "卖出状态", "status": "状态", "statusFilled": "未成交", - "statusPartiallySold": "部分成交", - "statusFullySold": "全部成交", + "statusPartiallySold": "部分卖出", + "statusFullySold": "全部卖出", "realizedPnl": "已实现盈亏", "createdAt": "创建时间", "matchedAt": "匹配时间", @@ -1110,8 +1110,9 @@ "groupByMarket": "按市场分组", "expandAll": "展开全部", "collapseAll": "折叠全部", - "allFullyMatched": "全部成交", - "partiallyMatched": "部分成交", + "allFullyMatched": "全部卖出", + "notSold": "未卖出", + "partiallyMatched": "部分卖出", "orderCount": "订单数", "totalAmount": "总金额", "statusBreakdown": "状态", diff --git a/frontend/src/locales/zh-TW/common.json b/frontend/src/locales/zh-TW/common.json index 9536b8d..670f8b5 100644 --- a/frontend/src/locales/zh-TW/common.json +++ b/frontend/src/locales/zh-TW/common.json @@ -1080,8 +1080,8 @@ "sellStatus": "賣出狀態", "status": "狀態", "statusFilled": "已完成", - "statusPartiallySold": "部分成交", - "statusFullySold": "全部成交", + "statusPartiallySold": "部分賣出", + "statusFullySold": "全部賣出", "realizedPnl": "已實現盈虧", "createdAt": "創建時間", "matchedAt": "匹配時間", @@ -1109,8 +1109,9 @@ "groupByMarket": "按市場分組", "expandAll": "展開全部", "collapseAll": "折疊全部", - "allFullyMatched": "全部成交", - "partiallyMatched": "部分成交", + "allFullyMatched": "全部賣出", + "notSold": "未賣出", + "partiallyMatched": "部分賣出", "orderCount": "訂單數", "totalAmount": "總金額", "totalPnl": "總盈虧", diff --git a/frontend/src/pages/CopyTradingOrders/BuyOrdersTab.tsx b/frontend/src/pages/CopyTradingOrders/BuyOrdersTab.tsx index fcc895b..a171506 100644 --- a/frontend/src/pages/CopyTradingOrders/BuyOrdersTab.tsx +++ b/frontend/src/pages/CopyTradingOrders/BuyOrdersTab.tsx @@ -373,10 +373,12 @@ const BuyOrdersTab: React.FC = ({ copyTradingId, active = fal )} {group.stats.fullyMatched ? ( - {t('copyTradingOrders.allFullyMatched') || '全部成交'} + {t('copyTradingOrders.allFullySold') || '全部卖出'} + ) : group.stats.fullyMatchedCount === 0 ? ( + {t('copyTradingOrders.notSold') || '未卖出'} ) : ( - {t('copyTradingOrders.partiallyMatched') || '部分成交'} ({group.stats.fullyMatchedCount}/{group.stats.count}) + {t('copyTradingOrders.partiallySold') || '部分卖出'} ({group.stats.fullyMatchedCount}/{group.stats.count}) )} @@ -384,10 +386,10 @@ const BuyOrdersTab: React.FC = ({ copyTradingId, active = fal {t('copyTradingOrders.orderCount') || '订单数'}: {group.stats.count} {t('copyTradingOrders.totalAmount') || '总金额'}: {formatUSDC(group.stats.totalAmount)} USDC - {t('copyTradingOrders.statusBreakdown') || '状态'}: - {group.stats.fullyMatchedCount > 0 && ` ${t('copyTradingOrders.statusFullySold') || '全部成交'} ${group.stats.fullyMatchedCount}`} - {group.stats.partiallyMatchedCount > 0 && ` ${t('copyTradingOrders.statusPartiallySold') || '部分成交'} ${group.stats.partiallyMatchedCount}`} - {group.stats.filledCount > 0 && ` ${t('copyTradingOrders.statusFilled') || '未成交'} ${group.stats.filledCount}`} + {t('copyTradingOrders.statusBreakdown') || '状态'}: + {group.stats.fullyMatchedCount > 0 && ` ${t('copyTradingOrders.allFullySold') || '全部卖出'} ${group.stats.fullyMatchedCount}`} + {group.stats.partiallyMatchedCount > 0 && ` ${t('copyTradingOrders.partiallySold') || '部分卖出'} ${group.stats.partiallyMatchedCount}`} + {group.stats.filledCount > 0 && ` ${t('copyTradingOrders.notSold') || '未卖出'} ${group.stats.filledCount}`} @@ -668,9 +670,9 @@ const BuyOrdersTab: React.FC = ({ copyTradingId, active = fal value={filters.status} onChange={(value) => setFilters({ ...filters, status: value || undefined })} > - - - + + +