feat(web): migrate base data administration

This commit is contained in:
biss authored and biss committed 2026-10-03 21:38:14 +08:00
1 parent e28123f1c7
commit 8ac883ade1
6 files changed
+213

No files matched your search

+7
View File
@@ -35,6 +35,7 @@ import {
ApartmentOutlined,
TeamOutlined,
CarryOutOutlined,
SettingOutlined,
} from '@ant-design/icons'
import { Avatar, Badge, Button, Layout, Menu, Tag } from 'antd'
import { useQuery } from '@tanstack/react-query'
@@ -114,6 +115,12 @@ export default function AppShell() {
{ key: '/course-enrollments', icon: <BookOutlined />, label: '修读课程管理' },
{ key: '/campus-wallets', icon: <WalletOutlined />, label: '学生余额管理' },
] : []),
...(roles.some((role) => ['SuperAdmin', 'AcademicAdmin'].includes(role)) ? [
{ key: '/base-data/organization', icon: <ApartmentOutlined />, label: '组织机构' },
{ key: '/base-data/terms', icon: <CalendarOutlined />, label: '学年学期' },
{ key: '/base-data/facilities', icon: <EnvironmentOutlined />, label: '教学场所' },
{ key: '/base-data/course-categories', icon: <SettingOutlined />, label: '课程分类' },
] : []),
...(user?.roles.includes('SuperAdmin')
? [{ key: '/users', icon: <SafetyCertificateOutlined />, label: '用户与权限' }]
: []),