feat(web): migrate teaching and enrollment administration
Add React workflows for teaching eligibility, course equivalency rules, enrollment management, and campus wallet administration. Preserve role-aware navigation, college scope, audit trails, and existing server authorization.
This commit is contained in:
1 parent
1b27029b5a
commit
e28123f1c7
9 files changed
+158
No files matched your search
@@ -106,6 +106,14 @@ export default function AppShell() {
|
||||
...(roles.some((role) => ['Teacher', 'SuperAdmin', 'AcademicAdmin', 'CollegeAdmin', 'Counselor'].includes(role)) ? [
|
||||
{ key: '/teacher-attendance', icon: <CarryOutOutlined />, label: '教学点名' },
|
||||
] : []),
|
||||
...(roles.some((role) => ['Teacher', 'SuperAdmin', 'AcademicAdmin', 'CollegeAdmin'].includes(role)) ? [
|
||||
{ key: '/teaching-preferences', icon: <ReadOutlined />, label: roles.includes('Teacher') && !roles.some((role) => ['SuperAdmin', 'AcademicAdmin', 'CollegeAdmin'].includes(role)) ? '授课科目申报' : '授课资格审核' },
|
||||
] : []),
|
||||
...(roles.some((role) => ['SuperAdmin', 'AcademicAdmin', 'CollegeAdmin'].includes(role)) ? [
|
||||
{ key: '/course-equivalency-rules', icon: <SwapOutlined />, label: '等价课程规则' },
|
||||
{ key: '/course-enrollments', icon: <BookOutlined />, label: '修读课程管理' },
|
||||
{ key: '/campus-wallets', icon: <WalletOutlined />, label: '学生余额管理' },
|
||||
] : []),
|
||||
...(user?.roles.includes('SuperAdmin')
|
||||
? [{ key: '/users', icon: <SafetyCertificateOutlined />, label: '用户与权限' }]
|
||||
: []),
|
||||
|
||||
Reference in new issue
Block a user