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) => (