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