调整主导航功能分类

This commit is contained in:
biss committed 2026-11-20 15:18:54 +08:00
1 parent 3e718dc347
commit be48cdf759
2 files changed
+26 -14

No files matched your search

+1 -1
View File
@@ -13,7 +13,7 @@ const englishLabels: Record<string, string> = {
'体育健康': 'Physical education and health', '我的体测': 'My fitness tests', '体测管理': 'Fitness test management', '学生发展': 'Student development', '我的综合测评': 'My comprehensive assessment', '综合测评': 'Comprehensive assessment',
'学籍与服务': 'Student records and services', '个人信息': 'Profile', '学籍异动': 'Status changes', '异动审核': 'Status change review', '电子成绩单与证明': 'Transcripts and certificates', '官方凭证签发': 'Official document issuance', '审批工作台': 'Approvals', '学业预警': 'Academic warnings',
'毕业管理': 'Graduation', '学业规划与毕业模拟': 'Academic planning and graduation simulation', '毕业资格': 'Graduation eligibility', '毕业审核': 'Graduation audit', '学位结果': 'Degree result', '学位授予': 'Degree awards', '毕业离校': 'Graduation clearance', '离校办理': 'Clearance processing',
'工作台': 'Workspace', '教学管理': 'Teaching', '考试与成绩': 'Exams and grades', '学生事务': 'Student affairs', '系统管理': 'System', '常用': 'Favorites', '常用功能': 'Favorite features',
'工作台': 'Workspace', '课程与培养': 'Courses and curriculum', '教学运行': 'Teaching operations', '教学管理': 'Teaching', '考试与成绩': 'Exams and grades', '学生事务': 'Student affairs', '校园服务': 'Campus services', '系统管理': 'System', '常用': 'Favorites', '常用功能': 'Favorite features',
'系统全域管理': 'System-wide administration', '校级教务管理': 'University academic administration', '学院教务管理': 'College academic administration', '宿舍管理工作台': 'Dormitory administration', '学生工作管理台': 'Student affairs administration', '辅导员班级工作': 'Counselor workspace', '教师教学工作': 'Teacher workspace', '学生学业服务': 'Student workspace', '教务工作台': 'Academic workspace', '教务管理': 'Academic administration',
}
+25 -13
View File
@@ -281,6 +281,23 @@ const availableNavigationGroups = computed<NavigationGroup[]>(() => [
path: '/class-timetable',
label: isTimetableManager.value ? '课表查询中心' : '班级课表查询',
},
...whenVisible(
hasAnyRole(['SuperAdmin', 'AcademicAdmin', 'CollegeAdmin', 'Student']),
{
path: '/course-selections',
label: isTeachingAdmin.value ? '选课管理' : '学生选课',
},
),
...whenVisible(
hasAnyRole(['SuperAdmin', 'AcademicAdmin', 'CollegeAdmin']),
{ path: '/course-enrollments', label: '修读课程管理' },
),
],
},
{
key: 'campus-services',
label: '校园服务',
items: [
{
path: '/classroom-reservations',
label: hasAnyRole(['CollegeAdmin']) ? '教室借用审核' : '教室借用',
@@ -298,17 +315,6 @@ const availableNavigationGroups = computed<NavigationGroup[]>(() => [
hasAnyRole(['SuperAdmin', 'AcademicAdmin', 'MaintenanceAdmin', 'MaintenanceStaff']),
{ path: '/classroom-repairs', label: '教室报修与维修' },
),
...whenVisible(
hasAnyRole(['SuperAdmin', 'AcademicAdmin', 'CollegeAdmin', 'Student']),
{
path: '/course-selections',
label: isTeachingAdmin.value ? '选课管理' : '学生选课',
},
),
...whenVisible(
hasAnyRole(['SuperAdmin', 'AcademicAdmin', 'CollegeAdmin']),
{ path: '/course-enrollments', label: '修读课程管理' },
),
],
},
{
@@ -503,10 +509,15 @@ const favoriteItems = computed(() => {
const navigationCategoryBlueprints = [
{ key: 'workspace', label: '工作台', groupKeys: ['overview', 'statistics'] },
{
key: 'curriculum',
label: '课程与培养',
groupKeys: ['teaching-construction'],
},
{
key: 'teaching',
label: '教学管理',
groupKeys: ['teaching-construction', 'teaching-operation', 'experiments'],
label: '教学运行',
groupKeys: ['teaching-operation', 'experiments'],
},
{
key: 'assessment',
@@ -524,6 +535,7 @@ const navigationCategoryBlueprints = [
'graduation',
],
},
{ key: 'campus-services', label: '校园服务', groupKeys: ['campus-services'] },
{ key: 'system', label: '系统管理', groupKeys: ['organization'] },
] as const