feat(web): migrate student academic insights
Add React exam and invigilation schedules, student transcript metrics and score breakdowns, and academic warning acknowledgement with support follow-up timelines. Connect role-aware navigation and dashboard links.
This commit is contained in:
1 parent
0a64424035
commit
2c14001677
9 files changed
+217
-5
No files matched your search
@@ -8,6 +8,9 @@ import {
|
||||
MenuUnfoldOutlined,
|
||||
SafetyCertificateOutlined,
|
||||
CalendarOutlined,
|
||||
FileDoneOutlined,
|
||||
ReadOutlined,
|
||||
WarningOutlined,
|
||||
} from '@ant-design/icons'
|
||||
import { Avatar, Badge, Button, Layout, Menu, Tag } from 'antd'
|
||||
import { useQuery } from '@tanstack/react-query'
|
||||
@@ -44,6 +47,13 @@ export default function AppShell() {
|
||||
...((roles.includes('Student') || roles.includes('Teacher'))
|
||||
? [{ key: '/my-timetable', icon: <CalendarOutlined />, label: '我的课表' }]
|
||||
: []),
|
||||
...((roles.includes('Student') || roles.includes('Teacher'))
|
||||
? [{ key: '/exams', icon: <FileDoneOutlined />, label: roles.includes('Teacher') ? '监考安排' : '考试安排' }]
|
||||
: []),
|
||||
...(isStudentHome ? [
|
||||
{ key: '/grades', icon: <ReadOutlined />, label: '我的成绩' },
|
||||
{ key: '/warnings', icon: <WarningOutlined />, label: '学业预警' },
|
||||
] : []),
|
||||
...(user?.roles.includes('SuperAdmin')
|
||||
? [{ key: '/users', icon: <SafetyCertificateOutlined />, label: '用户与权限' }]
|
||||
: []),
|
||||
|
||||
Reference in new issue
Block a user