Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| b685768569 | |||
| 0040c5795d |
@@ -710,7 +710,7 @@ export default function DashboardPage() {
|
|||||||
<div>
|
<div>
|
||||||
<h1>数据大盘</h1>
|
<h1>数据大盘</h1>
|
||||||
<p>
|
<p>
|
||||||
数据更新于 {updatedAt ?? '--'} · 北京时间 · 日期窗口按 00:00 自然日切分,不包含今日
|
数据更新于 {updatedAt ?? '--'} · 北京时间 · 日期窗口按 00:00 自然日切分,自定义日期可选择今日
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<div className="controls">
|
<div className="controls">
|
||||||
@@ -734,7 +734,7 @@ export default function DashboardPage() {
|
|||||||
format="YYYY-MM-DD"
|
format="YYYY-MM-DD"
|
||||||
allowClear={false}
|
allowClear={false}
|
||||||
open={datePickerOpen}
|
open={datePickerOpen}
|
||||||
disabledDate={(date) => date.isAfter(dayjs().subtract(1, 'day'), 'day')}
|
disabledDate={(date) => date.isAfter(dayjs(), 'day')}
|
||||||
suffixIcon={<CalendarOutlined />}
|
suffixIcon={<CalendarOutlined />}
|
||||||
onClick={() => setDatePickerOpen(true)}
|
onClick={() => setDatePickerOpen(true)}
|
||||||
onOpenChange={setDatePickerOpen}
|
onOpenChange={setDatePickerOpen}
|
||||||
|
|||||||
@@ -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={{
|
||||||
|
|||||||
Reference in New Issue
Block a user