forked from liweijie/education
70 lines
1.6 KiB
JavaScript
70 lines
1.6 KiB
JavaScript
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
|
||
})
|
||
}
|