From 551248ec764ae200344bfcd4e3b6f948fa1338d5 Mon Sep 17 00:00:00 2001 From: Jerry Yan <792602257@qq.com> Date: Sun, 1 Feb 2026 19:11:39 +0800 Subject: [PATCH] =?UTF-8?q?feat(data-annotation):=20=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E8=A1=A8=E6=A0=BC=E5=BA=8F=E5=8F=B7=E5=88=97=E5=B9=B6=E7=A7=BB?= =?UTF-8?q?=E9=99=A4=E4=BB=BB=E5=8A=A1ID=E5=88=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 添加序号列显示当前页码计算后的行号 - 移除原有的任务ID列 - 序号列居中对齐宽度为80px - 序号基于当前页码和页面大小动态计算 - 保持表格 --- .../pages/DataAnnotation/Home/DataAnnotation.tsx | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/frontend/src/pages/DataAnnotation/Home/DataAnnotation.tsx b/frontend/src/pages/DataAnnotation/Home/DataAnnotation.tsx index 0749986..778c7a1 100644 --- a/frontend/src/pages/DataAnnotation/Home/DataAnnotation.tsx +++ b/frontend/src/pages/DataAnnotation/Home/DataAnnotation.tsx @@ -155,17 +155,23 @@ export default function DataAnnotation() { ]; const columns: ColumnType[] = [ + { + title: "序号", + key: "index", + width: 80, + align: "center" as const, + render: (_value: unknown, _record: AnnotationTaskListItem, index: number) => { + const current = pagination.current ?? 1; + const pageSize = pagination.pageSize ?? tableData.length ?? 0; + return (current - 1) * pageSize + index + 1; + }, + }, { title: "任务名称", dataIndex: "name", key: "name", fixed: "left" as const, }, - { - title: "任务ID", - dataIndex: "id", - key: "id", - }, { title: "数据集", dataIndex: "datasetName",