From c348d7fa2bcc0c6910f772bf3da5824f36636bf5 Mon Sep 17 00:00:00 2001 From: yml Date: Wed, 25 Nov 2026 15:38:58 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96(=E7=99=BB=E5=BD=95=E4=BB=BB?= =?UTF-8?q?=E5=8A=A1):=20=E8=A1=A8=E5=A4=B4=E4=B8=8E=E5=86=85=E5=AE=B9?= =?UTF-8?q?=E5=B1=85=E4=B8=AD=EF=BC=8C=E6=94=B6=E7=B4=A7=E5=88=97=E5=AE=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 表头、单元格统一居中 - 固定表格布局并设定横向总宽,长文本省略显示 - 标签列加宽,ID/执行人/状态列收紧 --- web/frontend/src/pages/LoginTasksPage.tsx | 48 +++++++++++++++++------ 1 file changed, 36 insertions(+), 12 deletions(-) diff --git a/web/frontend/src/pages/LoginTasksPage.tsx b/web/frontend/src/pages/LoginTasksPage.tsx index 4e48aeb..29e1c96 100644 --- a/web/frontend/src/pages/LoginTasksPage.tsx +++ b/web/frontend/src/pages/LoginTasksPage.tsx @@ -595,24 +595,29 @@ export default function LoginTasksPage() { }; const columns = [ - { title: 'ID', dataIndex: 'id', width: 60 }, - { title: '登录账号', dataIndex: 'account_username' }, + { title: 'ID', dataIndex: 'id', width: 78 }, + { + title: '登录账号', + dataIndex: 'account_username', + width: 170, + ellipsis: true, + }, { title: '标签', dataIndex: 'account_tag', - width: 110, + width: 150, render: (tag: string) => tag ? {tag} : -, }, { title: '当前归属客服', dataIndex: 'assigned_username', - width: 130, + width: 120, render: (name: string) => name || 未分配, }, { title: '触发方式', dataIndex: 'trigger_source', - width: 170, + width: 168, render: (_: string, record: LoginTaskItem) => ( {loginSourceLabel(record)} ), @@ -620,14 +625,15 @@ export default function LoginTasksPage() { { title: '执行人', dataIndex: 'created_by_username', - width: 110, + width: 128, + ellipsis: true, render: (name: string, record: LoginTaskItem) => name || `#${record.created_by}`, }, { title: 'CK 状态', dataIndex: 'ck_check_status', - width: 100, + width: 96, render: (status: string) => ( {CK_STATUS_LABELS[status] || status || '未确认'} @@ -637,7 +643,7 @@ export default function LoginTasksPage() { { title: '账号状态', dataIndex: 'account_status', - width: 100, + width: 96, render: (status: string) => ACCOUNT_STATUS_LABELS[status] || status || '-', }, { @@ -646,11 +652,20 @@ export default function LoginTasksPage() { width: 100, render: (status: string) => {STATUS_LABELS[status] || status}, }, - { title: '消息', dataIndex: 'message', ellipsis: true }, - { title: '时间', dataIndex: 'created_at', width: 180, render: (val: string) => formatTime(val) }, + { + title: '消息', + dataIndex: 'message', + ellipsis: { showTitle: true }, + }, + { + title: '时间', + dataIndex: 'created_at', + width: 172, + render: (val: string) => formatTime(val), + }, { title: '操作', - width: 190, + width: 176, render: (_: unknown, record: LoginTaskItem) => (