Files
education/frontend/src/api/teachBusiness/timetable.js
T
2026-08-24 10:07:50 +08:00

82 lines
1.7 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import request from '@/utils/request'
// 课表(课程表 KCB)管理(KCBController /kcb)
// 接口依据:KCBController + KCBServiceImpl
// 说明:KCB 实体主键为 bh(编号,IdType.INPUT);新增时后端强制 setBh(UUID) 覆盖、cjsj/bdsj 自动生成;
// delete/get/update 中的 URL 参数 kbh 实为 bh(编号)值;list 无分页返回全部记录
/**
* 新增课程表
* POST /kcb/add
* body 为 KCB 实体;bh 可留空(后端自动生成 UUID),cjsj/bdsj 后端自动维护
*/
export function addKcb(data) {
return request({
url: '/kcb/add',
method: 'post',
data
})
}
/**
* 删除课程表
* POST /kcb/delete?kbh= (kbh 实为 bh 编号值)
*/
export function deleteKcb(kbh) {
return request({
url: '/kcb/delete',
method: 'post',
params: { kbh }
})
}
/**
* 批量删除课程表
* POST /kcb/batchDelete
* body 为 bh(编号)字符串数组
*/
export function batchDeleteKcb(kbhList) {
return request({
url: '/kcb/batchDelete',
method: 'post',
data: kbhList
})
}
/**
* 更新课程表
* POST /kcb/update
* body 为 KCB 实体,bh 编号必传
*/
export function updateKcb(data) {
return request({
url: '/kcb/update',
method: 'post',
data
})
}
/**
* 根据编号查询课程表详情
* GET /kcb/get?kbh= (kbh 实为 bh 编号值)
*/
export function getKcb(kbh) {
return request({
url: '/kcb/get',
method: 'get',
params: { kbh }
})
}
/**
* 查询所有课程表数据
* GET /kcb/list
* 返回 List<KCB>,无分页,页面做本地过滤与本地分页
*/
export function listKcb() {
return request({
url: '/kcb/list',
method: 'get'
})
}