From 9334c7c4104f3fe2c8d1b0e7a4a6bef59369455c Mon Sep 17 00:00:00 2001 From: dushixiang Date: Tue, 2 Dec 2025 22:19:55 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E9=99=A4=E7=99=BB=E5=BD=95=E5=8E=86?= =?UTF-8?q?=E5=8F=B2=E7=9A=84=E5=88=86=E9=A1=B5=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/src/pages/Agents/AuditResultView.tsx | 19 +++++-------------- 1 file changed, 5 insertions(+), 14 deletions(-) diff --git a/web/src/pages/Agents/AuditResultView.tsx b/web/src/pages/Agents/AuditResultView.tsx index 1fe50f9..053b1ff 100644 --- a/web/src/pages/Agents/AuditResultView.tsx +++ b/web/src/pages/Agents/AuditResultView.tsx @@ -248,7 +248,7 @@ const AuditResultView = ({result}: AuditResultViewProps) => { ]; const loginRecordColumns = [ - {title: '用户名', dataIndex: 'username', key: 'username', width: 120}, + {title: '用户名', dataIndex: 'username', key: 'username'}, {title: 'IP地址', dataIndex: 'ip', key: 'ip', width: 150}, {title: '归属地', dataIndex: 'location', key: 'location', width: 200, ellipsis: true}, {title: '终端', dataIndex: 'terminal', key: 'terminal', width: 100}, @@ -256,7 +256,8 @@ const AuditResultView = ({result}: AuditResultViewProps) => { title: '登录时间', dataIndex: 'timestamp', key: 'timestamp', - render: (val: number) => dayjs(val).format('YYYY-MM-DD HH:mm:ss') + render: (val: number) => dayjs(val).format('YYYY-MM-DD HH:mm:ss'), + width: 180, }, { title: '状态', @@ -791,12 +792,7 @@ const AuditResultView = ({result}: AuditResultViewProps) => { dataSource={result.assetInventory.loginAssets.successfulLogins} columns={loginRecordColumns} rowKey={(record, index) => `success-${index}`} - pagination={{ - pageSize: 20, - showSizeChanger: true, - showTotal: (total) => `共 ${total} 条记录`, - pageSizeOptions: ['10', '20', '50', '100'] - }} + pagination={false} /> ) : ( @@ -810,12 +806,7 @@ const AuditResultView = ({result}: AuditResultViewProps) => { dataSource={result.assetInventory.loginAssets.failedLogins} columns={loginRecordColumns} rowKey={(record, index) => `failed-${index}`} - pagination={{ - pageSize: 20, - showSizeChanger: true, - showTotal: (total) => `共 ${total} 条记录`, - pageSizeOptions: ['10', '20', '50', '100'] - }} + pagination={false} /> ) : (