feat(admin): improve responsive management pages

This commit is contained in:
2026-07-18 16:35:15 +08:00
parent 7f66e9b894
commit f06b114a29
45 changed files with 3596 additions and 2038 deletions

View File

@@ -62,7 +62,6 @@ interface EnrollmentInfo {
};
}
interface StudentCreateImportResult {
message?: string;
imported?: number;
@@ -609,7 +608,11 @@ const StudentsPage: React.FC = () => {
>
</PermissionButton>
<Upload accept=".xlsx,.xls" showUploadList={false} customRequest={handleCreateStudentsImport}>
<Upload
accept=".xlsx,.xls"
showUploadList={false}
customRequest={handleCreateStudentsImport}
>
<Button icon={<UploadOutlined />}>Excel</Button>
</Upload>
<Upload
@@ -679,9 +682,9 @@ const StudentsPage: React.FC = () => {
}
return (
<Card title="多班型对比" size="small" style={{ margin: '8px 0' }}>
<Row gutter={16}>
<Row gutter={[16, 16]}>
{enrollments.map((enr, idx) => (
<Col span={12} key={enr.classId}>
<Col xs={24} md={12} key={enr.classId}>
<Card
size="small"
title={enr.classType || `班型 ${idx + 1}`}