Compare commits

...

2 Commits

Author SHA1 Message Date
guke 4bf24cb6fd Merge branch 'main' into codex/hide-withdraw-reason-column 2026-07-28 10:04:14 +08:00
linkeyu c30a5cabb7 优化:隐藏到账和打款中无关原因列 2026-07-27 19:13:34 +08:00
@@ -570,6 +570,7 @@ export function WithdrawReviewPage({ mode = 'other' }: { mode?: WithdrawReviewMo
}, },
{ {
title: '失败/拒绝原因', title: '失败/拒绝原因',
key: 'fail_reason',
dataIndex: 'fail_reason', dataIndex: 'fail_reason',
ellipsis: true, ellipsis: true,
render: (v: string | null) => v || <Text type="secondary">-</Text>, render: (v: string | null) => v || <Text type="secondary">-</Text>,
@@ -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<InviteeDetail> = [ const inviteeColumns: ColumnsType<InviteeDetail> = [
{ title: '手机号', dataIndex: 'phone', width: 130 }, { title: '手机号', dataIndex: 'phone', width: 130 },
@@ -945,7 +950,7 @@ export function WithdrawReviewPage({ mode = 'other' }: { mode?: WithdrawReviewMo
} }
: undefined : undefined
} }
columns={columns} columns={visibleColumns}
dataSource={items} dataSource={items}
loading={loading} loading={loading}
pagination={{ pagination={{