已修复:
新增不受 100 条分页限制的课程选项接口。 培养方案、教学任务全部改用新接口。 教师课程申报使用独立接口,可查看全部启用课程。 学院教务仍只能使用公共课和本院专业课,不会越权看到外院专业课。 实际接口验证: 校级教务:152 门,其中公共课 29 门。 学院教务:40 门,其中公共课 29 门,其余为本院专业课。 教师申报:152 门,其中公共课 29 门。
This commit is contained in:
@@ -294,12 +294,12 @@ async function deleteCourse(moduleId: string, item: any) {
|
||||
onMounted(async () => {
|
||||
const [optionRes, courseRes] = await Promise.all([
|
||||
http.get('/curriculum-plans/filter-options'),
|
||||
http.get('/courses', { params: { page: 1, pageSize: 100, isEnabled: true } }),
|
||||
http.get('/courses/options'),
|
||||
])
|
||||
colleges.value = optionRes.data.colleges
|
||||
majors.value = optionRes.data.majors
|
||||
grades.value = optionRes.data.grades
|
||||
courses.value = courseRes.data.items
|
||||
courses.value = courseRes.data
|
||||
if (isCollegeAdmin.value && auth.user?.collegeId) {
|
||||
query.collegeId = auth.user.collegeId
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user