forked from liweijie/education
84 lines
2.0 KiB
JavaScript
84 lines
2.0 KiB
JavaScript
import request from '@/utils/request'
|
|
|
|
// 分页查询学员信息列表(姓名/联系电话/通信地址支持模糊查询,其余实体字段可作为查询条件)
|
|
export function listStudentRecord(query) {
|
|
return request({
|
|
url: '/student-records/list',
|
|
method: 'get',
|
|
params: query
|
|
})
|
|
}
|
|
|
|
// 查询学员信息详情(bh 编号必传)
|
|
export function getStudentRecord(bh) {
|
|
return request({
|
|
url: '/student-records/get',
|
|
method: 'get',
|
|
params: { bh: bh }
|
|
})
|
|
}
|
|
|
|
// 新增学员信息
|
|
export function addStudentRecord(data) {
|
|
return request({
|
|
url: '/student-records/add',
|
|
method: 'post',
|
|
data: data
|
|
})
|
|
}
|
|
|
|
// 修改学员信息(bh 编号必传)
|
|
export function updateStudentRecord(data) {
|
|
return request({
|
|
url: '/student-records/update',
|
|
method: 'post',
|
|
data: data
|
|
})
|
|
}
|
|
|
|
// 删除学员信息(bh 编号)
|
|
export function delStudentRecord(bh) {
|
|
return request({
|
|
url: '/student-records/delete',
|
|
method: 'post',
|
|
params: { bh: bh }
|
|
})
|
|
}
|
|
|
|
// 分页查询学员课程成绩(xybh 学员编号必传;nd 年度可选)
|
|
export function listStudentGrades(query) {
|
|
return request({
|
|
url: '/student-records/grades',
|
|
method: 'get',
|
|
params: query
|
|
})
|
|
}
|
|
|
|
// 分页查询学员课程过程成绩(xybh 学员编号必传;nd 年度可选)
|
|
export function listStudentProcessGrades(query) {
|
|
return request({
|
|
url: '/student-records/process-grades',
|
|
method: 'get',
|
|
params: query
|
|
})
|
|
}
|
|
|
|
// 导出学员课程成绩 Excel(xybh 学员编号必传)
|
|
export function exportStudentGrades(xybh) {
|
|
return request({
|
|
url: '/student-records/export-grades',
|
|
method: 'get',
|
|
params: { xybh: xybh },
|
|
responseType: 'blob'
|
|
})
|
|
}
|
|
|
|
// 导出学员课程过程成绩 Excel(xybh 学员编号必传)
|
|
export function exportStudentProcessGrades(xybh) {
|
|
return request({
|
|
url: '/student-records/export-process-grades',
|
|
method: 'get',
|
|
params: { xybh: xybh },
|
|
responseType: 'blob'
|
|
})
|
|
} |