From 0040c5795d6e18e1e7e923d9d3dcd4d85b188d1c Mon Sep 17 00:00:00 2001 From: linkeyu Date: Tue, 28 Jul 2026 10:04:21 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=8F=90=E7=8E=B0=E5=AE=A1?= =?UTF-8?q?=E6=A0=B8=E9=A1=B5=E5=8E=9F=E5=9B=A0=E5=88=97=E5=B1=95=E7=A4=BA?= =?UTF-8?q?=20(#90)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## 改动内容 - 已到账页签隐藏无关的失败/拒绝原因列 - 打款中页签隐藏无关的失败/拒绝原因列 - 待审核、已拒绝、打款失败及全部页签继续保留原因列 - 详情抽屉中的失败/拒绝原因保持不变 ## 验证 - npm run build 通过 - git diff --check 通过 --------- Co-authored-by: guke Co-authored-by: linkeyu <798648091@qq.com> Reviewed-on: https://gitea.shaguabijia.com/WonderableAI/shaguabijia-admin-web/pulls/90 Co-authored-by: linkeyu Co-committed-by: linkeyu --- src/app/(main)/withdraws/WithdrawReviewPage.tsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/app/(main)/withdraws/WithdrawReviewPage.tsx b/src/app/(main)/withdraws/WithdrawReviewPage.tsx index a300677..bb3eb09 100644 --- a/src/app/(main)/withdraws/WithdrawReviewPage.tsx +++ b/src/app/(main)/withdraws/WithdrawReviewPage.tsx @@ -570,6 +570,7 @@ export function WithdrawReviewPage({ mode = 'other' }: { mode?: WithdrawReviewMo }, { title: '失败/拒绝原因', + key: 'fail_reason', dataIndex: 'fail_reason', ellipsis: true, render: (v: string | null) => v || -, @@ -647,6 +648,10 @@ export function WithdrawReviewPage({ mode = 'other' }: { mode?: WithdrawReviewMo }, }, ]; + const visibleColumns = + activeStatus === 'pending' || activeStatus === 'success' + ? columns.filter((column) => column.key !== 'fail_reason') + : columns; const inviteeColumns: ColumnsType = [ { title: '手机号', dataIndex: 'phone', width: 130 }, @@ -945,7 +950,7 @@ export function WithdrawReviewPage({ mode = 'other' }: { mode?: WithdrawReviewMo } : undefined } - columns={columns} + columns={visibleColumns} dataSource={items} loading={loading} pagination={{