From fa0fd3adb3731fa3fa9185179b0533cf5645c6a7 Mon Sep 17 00:00:00 2001 From: hailin Date: Tue, 6 Jan 2026 23:13:00 -0800 Subject: [PATCH] =?UTF-8?q?debug(admin-web):=20=E6=B7=BB=E5=8A=A0=E5=88=86?= =?UTF-8?q?=E7=B1=BB=E8=B4=A6=E6=95=B0=E6=8D=AE=E5=8C=B9=E9=85=8D=E8=B0=83?= =?UTF-8?q?=E8=AF=95=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 添加 console.log 输出,用于调试固定账户明细数据匹配问题。 请在浏览器开发者工具控制台查看输出,确认后端返回的数据格式。 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- .../features/system-account-report/SystemAccountsTab.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/frontend/admin-web/src/components/features/system-account-report/SystemAccountsTab.tsx b/frontend/admin-web/src/components/features/system-account-report/SystemAccountsTab.tsx index 43e9b4eb..39171760 100644 --- a/frontend/admin-web/src/components/features/system-account-report/SystemAccountsTab.tsx +++ b/frontend/admin-web/src/components/features/system-account-report/SystemAccountsTab.tsx @@ -350,6 +350,9 @@ function FixedAccountsSection({ data }: { data: SystemAccountReportResponse['fix const accountLedger = allLedgerData.fixedAccountsLedger.find( (item) => item.accountSequence === accountSequence ); + // [2026-01-07] 调试:验证数据匹配是否正确 + console.log('[getAccountLedger] 查找:', accountSequence, '→ 找到:', accountLedger?.accountSequence, '条数:', accountLedger?.ledger?.length); + console.log('[getAccountLedger] 后端返回的账户列表:', allLedgerData.fixedAccountsLedger.map(l => ({ seq: l.accountSequence, type: l.accountType, count: l.ledger?.length }))); return accountLedger?.ledger || []; };