From be48cdf759535e9be253bad6ba2954f2ebfbb725 Mon Sep 17 00:00:00 2001 From: biss Date: Fri, 20 Nov 2026 15:18:54 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E4=B8=BB=E5=AF=BC=E8=88=AA?= =?UTF-8?q?=E5=8A=9F=E8=83=BD=E5=88=86=E7=B1=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/src/i18n/navigation.ts | 2 +- web/src/layouts/AdminLayout.vue | 38 ++++++++++++++++++++++----------- 2 files changed, 26 insertions(+), 14 deletions(-) diff --git a/web/src/i18n/navigation.ts b/web/src/i18n/navigation.ts index ecbfe3e..c063676 100644 --- a/web/src/i18n/navigation.ts +++ b/web/src/i18n/navigation.ts @@ -13,7 +13,7 @@ const englishLabels: Record = { '体育健康': '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', } diff --git a/web/src/layouts/AdminLayout.vue b/web/src/layouts/AdminLayout.vue index cb5a43e..807effe 100644 --- a/web/src/layouts/AdminLayout.vue +++ b/web/src/layouts/AdminLayout.vue @@ -281,6 +281,23 @@ const availableNavigationGroups = computed(() => [ 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(() => [ 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