Files
education/frontend/src/api/studentRecords/team.js
T
2026-08-26 17:54:22 +08:00

80 lines
1.8 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import request from '@/utils/request'
// ======================== 班次(学员队)管理(实体 XYDB ========================
// 分页列表查询条件为 XYDB 实体字段。
// 分页查询学员队列表
export function listTeam(query) {
return request({
url: '/student-records/team/list',
method: 'get',
params: query
})
}
// 查询学员队详情(xydbh 学员队编号)
export function getTeam(xydbh) {
return request({
url: '/student-records/team/get',
method: 'get',
params: { xydbh: xydbh }
})
}
// 新增学员队(请求体 XYDB
export function addTeam(data) {
return request({
url: '/student-records/team/add',
method: 'post',
data: data
})
}
// 编辑学员队(xydbh 学员队编号必传,请求体 XYDB)
export function updateTeam(data) {
return request({
url: '/student-records/team/update',
method: 'post',
data: data
})
}
// 删除学员队(xydbh 学员队编号)
export function delTeam(xydbh) {
return request({
url: '/student-records/team/delete',
method: 'post',
params: { xydbh: xydbh }
})
}
// 导入学员队 Excelmultipart,字段名 file
export function importTeam(file) {
const formData = new FormData()
formData.append('file', file)
return request({
url: '/student-records/team/import',
method: 'post',
data: formData
})
}
// 导出学员队 Excel(查询条件为 XYDB 实体)
export function exportTeam(query) {
return request({
url: '/student-records/team/export',
method: 'get',
params: query,
responseType: 'blob'
})
}
// 下载学员队导入模板
export function downloadTeamTemplate() {
return request({
url: '/download/student-team',
method: 'get',
responseType: 'blob'
})
}