From 2121282577dfe35468f62ceebfcf5a9ea60a54de Mon Sep 17 00:00:00 2001 From: wangziqi Date: Fri, 3 Jul 2026 10:10:04 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=AD=A6=E7=94=9F=E7=AE=A1=E7=90=86?= =?UTF-8?q?=E5=AD=97=E6=AE=B5=E6=8B=86=E5=88=86=EF=BC=88=E5=AD=A6=E5=8F=B7?= =?UTF-8?q?/=E8=BA=AB=E4=BB=BD=E8=AF=81=E5=88=86=E5=88=97=EF=BC=89?= =?UTF-8?q?=EF=BC=8C=E8=A1=A8=E6=A0=BC=E5=92=8C=E5=B7=A5=E5=85=B7=E6=A0=8F?= =?UTF-8?q?=E5=93=8D=E5=BA=94=E5=BC=8F=E9=80=82=E9=85=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/admin/src/pages/Students/index.tsx | 35 ++++++++++++++++++------- 1 file changed, 26 insertions(+), 9 deletions(-) diff --git a/apps/admin/src/pages/Students/index.tsx b/apps/admin/src/pages/Students/index.tsx index 42a15dd..498d07a 100644 --- a/apps/admin/src/pages/Students/index.tsx +++ b/apps/admin/src/pages/Students/index.tsx @@ -150,19 +150,32 @@ const StudentsPage: React.FC = () => { const columns = [ { title: 'ID', dataIndex: 'id', width: 60 }, - { title: '姓名', dataIndex: 'name' }, + { title: '姓名', dataIndex: 'name', ellipsis: true }, { title: '性别', dataIndex: 'gender', width: 60 }, - { title: '电话', dataIndex: 'phone' }, - { title: '学号/身份证', dataIndex: 'idNumber' }, + { title: '电话', dataIndex: 'phone', ellipsis: true }, + { + title: '学号', + dataIndex: 'studentNumber', + width: 120, + ellipsis: true, + render: (v: string) => v || '-', + }, + { + title: '身份证', + dataIndex: 'idNumber', + width: 180, + ellipsis: true, + render: (v: string) => v || '-', + }, { title: '民族', dataIndex: 'ethnicity', width: 80 }, - { title: '紧急联系人', dataIndex: 'emergencyContact' }, - { title: '紧急联系人电话', dataIndex: 'emergencyPhone' }, + { title: '紧急联系人', dataIndex: 'emergencyContact', ellipsis: true }, + { title: '紧急联系人电话', dataIndex: 'emergencyPhone', ellipsis: true }, { title: '所属机构', dataIndex: 'organization', render: (v: string) => (v ? {v} : '-'), }, - { title: '负责人', dataIndex: 'supervisor' }, + { title: '负责人', dataIndex: 'supervisor', ellipsis: true }, { title: '状态', dataIndex: 'status', @@ -220,8 +233,8 @@ const StudentsPage: React.FC = () => { return (
-
- +
+ { : `显示已归档${archivedCount > 0 ? ` (${archivedCount})` : ''}`} - + { dataSource={data} rowKey="id" loading={loading} + scroll={{ x: 1200 }} pagination={{ pageSize: 15, showTotal: (total) => `共 ${total} 人` }} rowClassName={(record: any) => (record.status === 'archived' ? 'archived-row' : '')} rowSelection={{ @@ -330,6 +344,9 @@ const StudentsPage: React.FC = () => { + + +