forked from liweijie/education
后端代码
This commit is contained in:
@@ -1,68 +0,0 @@
|
||||
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
|
||||
})
|
||||
}
|
||||
|
||||
// 批量开放报名
|
||||
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'
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user