前端文件

This commit is contained in:
2026-09-10 17:42:46 +08:00
parent 255a0e56a5
commit 345f425a1d
361 changed files with 73359 additions and 0 deletions
+57
View File
@@ -0,0 +1,57 @@
import request from '@/utils/request'
// 分页查询课程科目(课表 KB)
// kmc/kmdm/jc 模糊,jysdh/kclx/pxlx/pxcc 等值
export function listKb(query) {
return request({
url: '/jys/kb/list',
method: 'get',
params: query
})
}
// 课程科目详情(kbh 课编号)
export function getKb(kbh) {
return request({
url: '/jys/kb/get',
method: 'get',
params: { kbh: kbh }
})
}
// 新增课程科目(kbh 留空后端生成 UUID)
export function addKb(data) {
return request({
url: '/jys/kb/add',
method: 'post',
data: data
})
}
// 删除课程科目(kbh 课编号)
export function deleteKb(kbh) {
return request({
url: '/jys/kb/delete',
method: 'post',
params: { kbh: kbh }
})
}
// 编辑课程科目(kbh 必传)
export function updateKb(data) {
return request({
url: '/jys/kb/update',
method: 'post',
data: data
})
}
// 下载课程科目导入模板(返回 Blob)
// GET /download/course-subject
export function downloadCourseSubjectTemplate() {
return request({
url: '/download/course-subject',
method: 'get',
responseType: 'blob'
})
}