feat: add college archive fields
Some checks failed
CI 检查 / lint (pull_request) Has been cancelled
CI 检查 / typecheck (pull_request) Has been cancelled
CI 检查 / test (pull_request) Has been cancelled

This commit is contained in:
2026-07-21 15:35:35 +08:00
parent 2626d5f460
commit 37ef6f9dd7
11 changed files with 95 additions and 6 deletions

View File

@@ -59,6 +59,8 @@ interface StudentInfo {
interface ProfileData {
targetCollege?: string;
targetMajor?: string;
collegeSchool?: string;
collegeMajor?: string;
subjectDirection?: string;
grade?: string;
profileDate?: string;
@@ -481,6 +483,24 @@ const InlineArchiveSummary: React.FC<{
{profile?.targetMajor || '-'}
</EditableCell>
</Descriptions.Item>
<Descriptions.Item label="大专院校">
<EditableCell
value={profile?.collegeSchool}
permission="student:edit"
onSave={(next) => saveProfile('collegeSchool', next)}
>
{profile?.collegeSchool || '-'}
</EditableCell>
</Descriptions.Item>
<Descriptions.Item label="大专专业">
<EditableCell
value={profile?.collegeMajor}
permission="student:edit"
onSave={(next) => saveProfile('collegeMajor', next)}
>
{profile?.collegeMajor || '-'}
</EditableCell>
</Descriptions.Item>
<Descriptions.Item label="选科方向">
<EditableCell
value={profile?.subjectDirection}