通过AI比对原操作文档,生成系统功能完善方案,根据方案进行增补,完善从学期新增到最终的排课功能

This commit is contained in:
2026-09-15 14:42:43 +08:00
parent 5187435285
commit e8a58b19fe
54 changed files with 4577 additions and 134 deletions
@@ -0,0 +1,59 @@
import request from '@/utils/request'
// 教学配当(阶段 3)
// 配当只做排课粗约束(周学时分布、同开同结),不直接写实施课程表。
// 配当编辑器视图:周轴(每周可排正课)+ 任务行(含铺学时建议)
export function allocationView(xydxqbh) {
return request({
url: '/teachingAllocation/view',
method: 'get',
params: { xydxqbh }
})
}
// 保存配当:单条(列表 1 个元素)或多选批量;元素 saveGroup=true 时整编组同开同结
export function allocationSave(items) {
return request({
url: '/teachingAllocation/save',
method: 'post',
data: items
})
}
// 优选序数上移/下移(direction: up/down),返回归一化后的任务编号顺序
export function allocationMove(xydxqbh, bh, direction) {
return request({
url: '/teachingAllocation/move',
method: 'post',
params: { xydxqbh, bh, direction }
})
}
// 编组管理面板:同科目全部开课班次
export function allocationGroups(kbh) {
return request({
url: '/teachingAllocation/groups',
method: 'get',
params: { kbh }
})
}
// 编组管理:把所选任务统一改编组号
export function allocationSetGroup(data) {
return request({
url: '/teachingAllocation/setGroup',
method: 'post',
data
})
}
// 导出配当 Excel(xydxqbh 逗号分隔,支持批量)
export function allocationExport(xydxqbhList) {
return request({
url: '/teachingAllocation/export',
method: 'get',
params: { xydxqbh: xydxqbhList.join(',') },
responseType: 'blob'
})
}
@@ -0,0 +1,69 @@
import request from '@/utils/request'
/**
* 教研室任务书填报(阶段 4)
* 接口依据:/taskBookFill/*(前端 baseURL 为 /api,此处不重复 /api 前缀)
*/
/** 填报列表 GET /taskBookFill/list?jxrwbh= */
export function taskBookList(jxrwbh) {
return request({
url: '/taskBookFill/list',
method: 'get',
params: { jxrwbh }
})
}
/** 手动合班 POST /taskBookFill/merge body: { bhList } */
export function taskBookMerge(bhList) {
return request({
url: '/taskBookFill/merge',
method: 'post',
data: { bhList }
})
}
/** 按预设合班 POST /taskBookFill/mergeByPreset body: { bhList } */
export function taskBookMergeByPreset(bhList) {
return request({
url: '/taskBookFill/mergeByPreset',
method: 'post',
data: { bhList }
})
}
/** 拆班 POST /taskBookFill/split body: { bhList } */
export function taskBookSplit(bhList) {
return request({
url: '/taskBookFill/split',
method: 'post',
data: { bhList }
})
}
/** 责任教员指定 POST /taskBookFill/setTeacher body: { bh, mode, jybh } */
export function taskBookSetTeacher(data) {
return request({
url: '/taskBookFill/setTeacher',
method: 'post',
data
})
}
/** 场地指定 POST /taskBookFill/setRoom body: { bh, jsbh, useSpecial } */
export function taskBookSetRoom(data) {
return request({
url: '/taskBookFill/setRoom',
method: 'post',
data
})
}
/** 填报字段 POST /taskBookFill/fill body: { bh, jysjhjybh, jsbh, jysjhbz } */
export function taskBookFill(data) {
return request({
url: '/taskBookFill/fill',
method: 'post',
data
})
}