页面接口对接,以及样式调整

This commit is contained in:
2026-08-24 15:28:13 +08:00
parent 1a1b1ce66b
commit 48aa410130
32 changed files with 824 additions and 919 deletions
+68
View File
@@ -0,0 +1,68 @@
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'
})
}