优化排课
This commit is contained in:
1 parent
6538b6080a
commit
e6d8eb0662
17 files changed
+4073
-6
No files matched your search
Vendored
+2
@@ -16,6 +16,8 @@ declare module 'vue' {
|
||||
ElCheckbox: typeof import('element-plus/es')['ElCheckbox']
|
||||
ElCheckboxGroup: typeof import('element-plus/es')['ElCheckboxGroup']
|
||||
ElDatePicker: typeof import('element-plus/es')['ElDatePicker']
|
||||
ElDescriptions: typeof import('element-plus/es')['ElDescriptions']
|
||||
ElDescriptionsItem: typeof import('element-plus/es')['ElDescriptionsItem']
|
||||
ElDialog: typeof import('element-plus/es')['ElDialog']
|
||||
ElDrawer: typeof import('element-plus/es')['ElDrawer']
|
||||
ElEmpty: typeof import('element-plus/es')['ElEmpty']
|
||||
|
||||
@@ -79,6 +79,13 @@ const navigationGroups = computed<NavigationGroup[]>(() => [
|
||||
{ path: '/base-data/course-categories', label: '课程分类' },
|
||||
),
|
||||
{ path: '/courses', label: '课程库' },
|
||||
...whenVisible(
|
||||
hasAnyRole(['SuperAdmin', 'AcademicAdmin', 'CollegeAdmin', 'Teacher']),
|
||||
{
|
||||
path: '/teaching-preferences',
|
||||
label: isTeacher.value ? '授课科目申报' : '授课资格审核',
|
||||
},
|
||||
),
|
||||
...whenVisible(isTeachingAdmin.value, { path: '/curriculum', label: '培养方案' }),
|
||||
...whenVisible(isTeachingAdmin.value, { path: '/teaching-tasks', label: '教学任务' }),
|
||||
],
|
||||
|
||||
@@ -100,6 +100,14 @@ const router = createRouter({
|
||||
component: () => import('../views/TeachingTasksView.vue'),
|
||||
meta: { roles: ['SuperAdmin', 'AcademicAdmin', 'CollegeAdmin'] },
|
||||
},
|
||||
{
|
||||
path: 'teaching-preferences',
|
||||
name: 'teaching-preferences',
|
||||
component: () => import('../views/TeachingPreferencesView.vue'),
|
||||
meta: {
|
||||
roles: ['SuperAdmin', 'AcademicAdmin', 'CollegeAdmin', 'Teacher'],
|
||||
},
|
||||
},
|
||||
{
|
||||
path: 'schedules',
|
||||
name: 'schedules',
|
||||
|
||||
Loaded 3 of 17 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user