已修复:

新增不受 100 条分页限制的课程选项接口。
培养方案、教学任务全部改用新接口。
教师课程申报使用独立接口,可查看全部启用课程。
学院教务仍只能使用公共课和本院专业课,不会越权看到外院专业课。
实际接口验证:
校级教务:152 门,其中公共课 29 门。
学院教务:40 门,其中公共课 29 门,其余为本院专业课。
教师申报:152 门,其中公共课 29 门。
This commit is contained in:
biss committed 2026-07-24 20:44:06 +08:00
1 parent 20ca205080
commit 6619179acc
5 files changed
+67 -8

No files matched your search

+2 -4
View File
@@ -111,13 +111,11 @@ async function review() {
onMounted(async () => {
const requests: Promise<any>[] = [http.get('/base-data/terms')]
if (isTeacher.value) {
requests.push(http.get('/courses', {
params: { page: 1, pageSize: 100, isEnabled: true },
}))
requests.push(http.get('/teacher-course-applications/course-options'))
}
const [termRes, courseRes] = await Promise.all(requests)
terms.value = termRes.data
courses.value = courseRes?.data.items ?? []
courses.value = courseRes?.data ?? []
filters.academicTermId = terms.value.find((item) => item.isCurrent)?.id
await load()
})