fix(admin): fix column widths and scroll.x for Attendance and Roles pages

- Attendance: remove ellipsis from 备注 column, scroll.x 1100 -> 1200
- Roles: adjust column widths (ID 60->80, 系统 70->80, 操作 160->180), remove ellipsis from 描述 and 权限标签
- Teachers: already correct (verified all widths match spec)
- Permissions: card-based layout, no Table component - no changes needed
- Notifications: List-based layout, no Table component - no changes needed
This commit is contained in:
2026-07-06 16:56:26 +08:00
parent cb39a183cc
commit 26754dc3fa
2 changed files with 5 additions and 7 deletions

View File

@@ -529,7 +529,6 @@ const AttendancePage: React.FC = () => {
dataIndex: 'remark',
key: 'remark',
width: 150,
ellipsis: true,
render: (v: string | null) => v || '-',
},
{
@@ -691,7 +690,7 @@ const AttendancePage: React.FC = () => {
columns={columns}
dataSource={records}
loading={loading}
scroll={{ x: 1100 }}
scroll={{ x: 1200 }}
pagination={{
current: page,
pageSize,

View File

@@ -127,14 +127,13 @@ const RolesPage: React.FC = () => {
};
const columns = [
{ title: 'ID', dataIndex: 'id', width: 60 },
{ title: 'ID', dataIndex: 'id', width: 80 },
{ title: '名称', dataIndex: 'name', width: 120 },
{ title: '描述', dataIndex: 'description', width: 200, ellipsis: true },
{ title: '描述', dataIndex: 'description', width: 200 },
{
title: '权限标签',
dataIndex: 'permissions',
width: 150,
ellipsis: true,
render: (perms: PermissionItem[]) =>
perms?.length > 0 ? (
<Tag color="blue">{perms.length} </Tag>
@@ -145,12 +144,12 @@ const RolesPage: React.FC = () => {
{
title: '系统',
dataIndex: 'isSystem',
width: 70,
width: 80,
render: (v: boolean) => (v ? <Tag color="orange"></Tag> : null),
},
{
title: '操作',
width: 160,
width: 180,
fixed: 'right' as const,
render: (_: any, record: RoleItem) => (
<Space>