fix: add defaultPageSize: 20 to all table pagination configs
Some checks failed
Deploy Admin Frontend / build-and-deploy (push) Failing after 6s
Some checks failed
Deploy Admin Frontend / build-and-deploy (push) Failing after 6s
This commit is contained in:
parent
4d093c2c26
commit
ce08736c3a
@ -69,7 +69,7 @@ export default function BackupAdmin() {
|
|||||||
<Button icon={<CloudUploadOutlined />} onClick={() => triggerBackup.mutate('qdrant')} loading={triggerBackup.isPending}>Qdrant Snapshot</Button>
|
<Button icon={<CloudUploadOutlined />} onClick={() => triggerBackup.mutate('qdrant')} loading={triggerBackup.isPending}>Qdrant Snapshot</Button>
|
||||||
<Button icon={<CloudUploadOutlined />} onClick={() => triggerBackup.mutate('files')} loading={triggerBackup.isPending}>文件备份</Button>
|
<Button icon={<CloudUploadOutlined />} onClick={() => triggerBackup.mutate('files')} loading={triggerBackup.isPending}>文件备份</Button>
|
||||||
</Space>
|
</Space>
|
||||||
<Table dataSource={backups?.items || []} columns={backupColumns} rowKey="id" loading={bLoading} pagination={{ total: backups?.total || 0 }} size="small" scroll={{ x: 1100 }} />
|
<Table dataSource={backups?.items || []} columns={backupColumns} rowKey="id" loading={bLoading} pagination={{ defaultPageSize: 20, total: backups?.total || 0 }} size="small" scroll={{ x: 1100 }} />
|
||||||
</div>
|
</div>
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
@ -82,7 +82,7 @@ export default function BackupAdmin() {
|
|||||||
<Button icon={<DeleteOutlined />} onClick={() => triggerCleanup.mutate('api-metrics')} loading={triggerCleanup.isPending}>指标清理</Button>
|
<Button icon={<DeleteOutlined />} onClick={() => triggerCleanup.mutate('api-metrics')} loading={triggerCleanup.isPending}>指标清理</Button>
|
||||||
<Button icon={<DeleteOutlined />} onClick={() => triggerCleanup.mutate('task-logs')} loading={triggerCleanup.isPending}>任务日志清理</Button>
|
<Button icon={<DeleteOutlined />} onClick={() => triggerCleanup.mutate('task-logs')} loading={triggerCleanup.isPending}>任务日志清理</Button>
|
||||||
</Space>
|
</Space>
|
||||||
<Table dataSource={cleanups?.items || []} columns={cleanupColumns} rowKey="id" loading={cLoading} pagination={{ total: cleanups?.total || 0 }} size="small" scroll={{ x: 900 }} />
|
<Table dataSource={cleanups?.items || []} columns={cleanupColumns} rowKey="id" loading={cLoading} pagination={{ defaultPageSize: 20, total: cleanups?.total || 0 }} size="small" scroll={{ x: 900 }} />
|
||||||
</div>
|
</div>
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
|
|||||||
@ -91,15 +91,15 @@ export default function LearningData() {
|
|||||||
<Tabs activeKey={tab} onChange={setTab} items={[
|
<Tabs activeKey={tab} onChange={setTab} items={[
|
||||||
{
|
{
|
||||||
key: 'sessions', label: '学习会话',
|
key: 'sessions', label: '学习会话',
|
||||||
children: <Table dataSource={sessions?.items || []} columns={sessionColumns} rowKey="id" loading={sLoading} pagination={{ total: sessions?.total || 0 }} size="small" scroll={{ x: 900 }} />,
|
children: <Table dataSource={sessions?.items || []} columns={sessionColumns} rowKey="id" loading={sLoading} pagination={{ defaultPageSize: 20, total: sessions?.total || 0 }} size="small" scroll={{ x: 900 }} />,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: 'analysis', label: 'AI 分析结果',
|
key: 'analysis', label: 'AI 分析结果',
|
||||||
children: <Table dataSource={analysis?.items || []} columns={analysisColumns} rowKey="id" loading={aLoading} pagination={{ total: analysis?.total || 0 }} size="small" scroll={{ x: 900 }} />,
|
children: <Table dataSource={analysis?.items || []} columns={analysisColumns} rowKey="id" loading={aLoading} pagination={{ defaultPageSize: 20, total: analysis?.total || 0 }} size="small" scroll={{ x: 900 }} />,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: 'ai-usage', label: 'AI 调用日志',
|
key: 'ai-usage', label: 'AI 调用日志',
|
||||||
children: <Table dataSource={aiUsage?.items || []} columns={aiUsageColumns} rowKey="id" loading={uLoading} pagination={{ total: aiUsage?.total || 0 }} size="small" scroll={{ x: 1000 }} />,
|
children: <Table dataSource={aiUsage?.items || []} columns={aiUsageColumns} rowKey="id" loading={uLoading} pagination={{ defaultPageSize: 20, total: aiUsage?.total || 0 }} size="small" scroll={{ x: 1000 }} />,
|
||||||
},
|
},
|
||||||
]} />
|
]} />
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -66,7 +66,7 @@ export default function ReportingAdmin() {
|
|||||||
</Card>
|
</Card>
|
||||||
|
|
||||||
<Card title="导出任务历史">
|
<Card title="导出任务历史">
|
||||||
<Table dataSource={jobs?.items || []} columns={jobColumns} rowKey="id" size="small" pagination={{ total: jobs?.total || 0 }} scroll={{ x: 600 }} />
|
<Table dataSource={jobs?.items || []} columns={jobColumns} rowKey="id" size="small" pagination={{ defaultPageSize: 20, total: jobs?.total || 0 }} scroll={{ x: 600 }} />
|
||||||
</Card>
|
</Card>
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
|
|||||||
@ -79,7 +79,7 @@ export default function ReviewAdmin() {
|
|||||||
columns={columns}
|
columns={columns}
|
||||||
rowKey="id"
|
rowKey="id"
|
||||||
loading={isLoading}
|
loading={isLoading}
|
||||||
pagination={{ total: data?.total || 0 }}
|
pagination={{ defaultPageSize: 20, total: data?.total || 0 }}
|
||||||
size="small"
|
size="small"
|
||||||
scroll={{ x: 1100 }}
|
scroll={{ x: 1100 }}
|
||||||
/>
|
/>
|
||||||
|
|||||||
@ -70,7 +70,7 @@ export function ReadingEventPage() {
|
|||||||
<Button onClick={() => setPage(1)} type="primary">查询</Button>
|
<Button onClick={() => setPage(1)} type="primary">查询</Button>
|
||||||
</Space>
|
</Space>
|
||||||
<Table rowKey="eventId" columns={columns} dataSource={data?.items || []}
|
<Table rowKey="eventId" columns={columns} dataSource={data?.items || []}
|
||||||
loading={isLoading} pagination={{ current: page, total: data?.total || 0, onChange: setPage }} size="small"
|
loading={isLoading} pagination={{ current: page, defaultPageSize: 20, total: data?.total || 0, onChange: setPage }} size="small"
|
||||||
onRow={(record: any) => ({ onClick: () => setDetailId(record.eventId), style: { cursor: 'pointer' } })} />
|
onRow={(record: any) => ({ onClick: () => setDetailId(record.eventId), style: { cursor: 'pointer' } })} />
|
||||||
|
|
||||||
<Drawer title="事件详情" open={!!detailId} onClose={() => setDetailId(null)} width={640} loading={detailLoading}>
|
<Drawer title="事件详情" open={!!detailId} onClose={() => setDetailId(null)} width={640} loading={detailLoading}>
|
||||||
@ -144,7 +144,7 @@ export function SessionPage() {
|
|||||||
<Button onClick={() => setPage(1)} type="primary">查询</Button>
|
<Button onClick={() => setPage(1)} type="primary">查询</Button>
|
||||||
</Space>
|
</Space>
|
||||||
<Table rowKey="id" columns={columns} dataSource={data?.items || []} scroll={{ x: 1200 }}
|
<Table rowKey="id" columns={columns} dataSource={data?.items || []} scroll={{ x: 1200 }}
|
||||||
loading={isLoading} pagination={{ current: page, total: data?.total || 0, onChange: setPage }} size="small"
|
loading={isLoading} pagination={{ current: page, defaultPageSize: 20, total: data?.total || 0, onChange: setPage }} size="small"
|
||||||
onRow={(r: any) => ({ onClick: () => setDetailId(r.id), style: { cursor: 'pointer' } })} />
|
onRow={(r: any) => ({ onClick: () => setDetailId(r.id), style: { cursor: 'pointer' } })} />
|
||||||
|
|
||||||
<Drawer title="会话详情" open={!!detailId} onClose={() => setDetailId(null)} width={680} loading={detailLoading}>
|
<Drawer title="会话详情" open={!!detailId} onClose={() => setDetailId(null)} width={680} loading={detailLoading}>
|
||||||
@ -223,7 +223,7 @@ export function ProgressPage() {
|
|||||||
<Button onClick={() => setPage(1)} type="primary">查询</Button>
|
<Button onClick={() => setPage(1)} type="primary">查询</Button>
|
||||||
</Space>
|
</Space>
|
||||||
<Table rowKey="id" columns={columns} dataSource={data?.items || []} scroll={{ x: 1000 }}
|
<Table rowKey="id" columns={columns} dataSource={data?.items || []} scroll={{ x: 1000 }}
|
||||||
loading={isLoading} pagination={{ current: page, total: data?.total || 0, onChange: setPage }} size="small"
|
loading={isLoading} pagination={{ current: page, defaultPageSize: 20, total: data?.total || 0, onChange: setPage }} size="small"
|
||||||
onRow={(r: any) => ({ onClick: () => setDetail(r), style: { cursor: 'pointer' } })} />
|
onRow={(r: any) => ({ onClick: () => setDetail(r), style: { cursor: 'pointer' } })} />
|
||||||
|
|
||||||
<Drawer title="进度详情" open={!!detail} onClose={() => setDetail(null)} width={600}>
|
<Drawer title="进度详情" open={!!detail} onClose={() => setDetail(null)} width={600}>
|
||||||
@ -291,7 +291,7 @@ export function DailyActivityPage() {
|
|||||||
<Button onClick={() => setPage(1)} type="primary">查询</Button>
|
<Button onClick={() => setPage(1)} type="primary">查询</Button>
|
||||||
</Space>
|
</Space>
|
||||||
<Table rowKey="id" columns={columns} dataSource={data?.items || []} scroll={{ x: 750 }}
|
<Table rowKey="id" columns={columns} dataSource={data?.items || []} scroll={{ x: 750 }}
|
||||||
loading={isLoading} pagination={{ current: page, total: data?.total || 0, onChange: setPage }} size="small"
|
loading={isLoading} pagination={{ current: page, defaultPageSize: 20, total: data?.total || 0, onChange: setPage }} size="small"
|
||||||
onRow={(r: any) => ({ onClick: () => setDetail(r), style: { cursor: 'pointer' } })} />
|
onRow={(r: any) => ({ onClick: () => setDetail(r), style: { cursor: 'pointer' } })} />
|
||||||
|
|
||||||
<Drawer title="活动详情" open={!!detail} onClose={() => setDetail(null)} width={520}>
|
<Drawer title="活动详情" open={!!detail} onClose={() => setDetail(null)} width={520}>
|
||||||
@ -342,7 +342,7 @@ export function RecordPage() {
|
|||||||
<Button onClick={() => setPage(1)} type="primary">查询</Button>
|
<Button onClick={() => setPage(1)} type="primary">查询</Button>
|
||||||
</Space>
|
</Space>
|
||||||
<Table rowKey="id" columns={columns} dataSource={data?.items || []} scroll={{ x: 700 }}
|
<Table rowKey="id" columns={columns} dataSource={data?.items || []} scroll={{ x: 700 }}
|
||||||
loading={isLoading} pagination={{ current: page, total: data?.total || 0, onChange: setPage }} size="small"
|
loading={isLoading} pagination={{ current: page, defaultPageSize: 20, total: data?.total || 0, onChange: setPage }} size="small"
|
||||||
onRow={(r: any) => ({ onClick: () => setDetail(r), style: { cursor: 'pointer' } })} />
|
onRow={(r: any) => ({ onClick: () => setDetail(r), style: { cursor: 'pointer' } })} />
|
||||||
|
|
||||||
<Drawer title="记录详情" open={!!detail} onClose={() => setDetail(null)} width={500}>
|
<Drawer title="记录详情" open={!!detail} onClose={() => setDetail(null)} width={500}>
|
||||||
@ -405,15 +405,15 @@ export function AnomalyPage() {
|
|||||||
items={[
|
items={[
|
||||||
{ key: 'failed', label: <span>失败事件 <Tag color="red">{data?.total || 0}</Tag></span>,
|
{ key: 'failed', label: <span>失败事件 <Tag color="red">{data?.total || 0}</Tag></span>,
|
||||||
children: <Table rowKey="eventId" columns={columns} dataSource={data?.items || []} loading={isLoading}
|
children: <Table rowKey="eventId" columns={columns} dataSource={data?.items || []} loading={isLoading}
|
||||||
pagination={{ current: page, total: data?.total || 0, onChange: setPage }} size="small"
|
pagination={{ current: page, defaultPageSize: 20, total: data?.total || 0, onChange: setPage }} size="small"
|
||||||
onRow={(r: any) => ({ onClick: () => setDetailId(r.eventId), style: { cursor: 'pointer' } })} /> },
|
onRow={(r: any) => ({ onClick: () => setDetailId(r.eventId), style: { cursor: 'pointer' } })} /> },
|
||||||
{ key: 'warning', label: <span>警告事件 <Tag color="orange">{data?.total || 0}</Tag></span>,
|
{ key: 'warning', label: <span>警告事件 <Tag color="orange">{data?.total || 0}</Tag></span>,
|
||||||
children: <Table rowKey="eventId" columns={columns} dataSource={data?.items || []} loading={isLoading}
|
children: <Table rowKey="eventId" columns={columns} dataSource={data?.items || []} loading={isLoading}
|
||||||
pagination={{ current: page, total: data?.total || 0, onChange: setPage }} size="small"
|
pagination={{ current: page, defaultPageSize: 20, total: data?.total || 0, onChange: setPage }} size="small"
|
||||||
onRow={(r: any) => ({ onClick: () => setDetailId(r.eventId), style: { cursor: 'pointer' } })} /> },
|
onRow={(r: any) => ({ onClick: () => setDetailId(r.eventId), style: { cursor: 'pointer' } })} /> },
|
||||||
{ key: 'duplicate', label: <span>重复事件 <Tag color="blue">{data?.total || 0}</Tag></span>,
|
{ key: 'duplicate', label: <span>重复事件 <Tag color="blue">{data?.total || 0}</Tag></span>,
|
||||||
children: <Table rowKey="eventId" columns={columns} dataSource={data?.items || []} loading={isLoading}
|
children: <Table rowKey="eventId" columns={columns} dataSource={data?.items || []} loading={isLoading}
|
||||||
pagination={{ current: page, total: data?.total || 0, onChange: setPage }} size="small"
|
pagination={{ current: page, defaultPageSize: 20, total: data?.total || 0, onChange: setPage }} size="small"
|
||||||
onRow={(r: any) => ({ onClick: () => setDetailId(r.eventId), style: { cursor: 'pointer' } })} /> },
|
onRow={(r: any) => ({ onClick: () => setDetailId(r.eventId), style: { cursor: 'pointer' } })} /> },
|
||||||
]} />
|
]} />
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user