forked from liweijie/education
77 lines
1.7 KiB
JavaScript
77 lines
1.7 KiB
JavaScript
import request from '@/utils/request'
|
||
|
||
// 分页查询选修班
|
||
// pageNum/pageSize/jyxm(通信)/kmc(通信)/kxbcnj(通信)/xxbmc(通信)/xkzt(等值)/pxcc(等值)
|
||
export function listElective(query) {
|
||
return request({
|
||
url: '/jys/elective/list',
|
||
method: 'get',
|
||
params: query
|
||
})
|
||
}
|
||
|
||
// 新建选修课(body: ElectiveCourseSaveDTO)
|
||
export function addElective(data) {
|
||
return request({
|
||
url: '/jys/elective/add',
|
||
method: 'post',
|
||
data: data
|
||
})
|
||
}
|
||
|
||
// 批量开放报名
|
||
export function batchOpenElective(bhList) {
|
||
return request({
|
||
url: '/jys/elective/batch-open',
|
||
method: 'post',
|
||
data: { bhList: bhList }
|
||
})
|
||
}
|
||
|
||
// 批量取消开放报名
|
||
export function batchCancelOpenElective(bhList) {
|
||
return request({
|
||
url: '/jys/elective/batch-cancel-open',
|
||
method: 'post',
|
||
data: { bhList: bhList }
|
||
})
|
||
}
|
||
|
||
// 批量停止报名
|
||
export function batchStopElective(bhList) {
|
||
return request({
|
||
url: '/jys/elective/batch-stop',
|
||
method: 'post',
|
||
data: { bhList: bhList }
|
||
})
|
||
}
|
||
|
||
// 下载选修班列表(Excel)
|
||
export function exportElectiveList(query) {
|
||
return request({
|
||
url: '/jys/elective/export',
|
||
method: 'get',
|
||
params: query,
|
||
responseType: 'blob'
|
||
})
|
||
}
|
||
|
||
// 下载选修班学员名单(Excel)
|
||
export function exportElectiveStudentsExcel(bhList) {
|
||
return request({
|
||
url: '/jys/elective/students/export-excel',
|
||
method: 'get',
|
||
params: { bhList: bhList },
|
||
responseType: 'blob'
|
||
})
|
||
}
|
||
|
||
// 下载选修班学员名单(Word)
|
||
export function exportElectiveStudentsWord(bhList) {
|
||
return request({
|
||
url: '/jys/elective/students/export-word',
|
||
method: 'get',
|
||
params: { bhList: bhList },
|
||
responseType: 'blob'
|
||
})
|
||
} |