前端文件
This commit is contained in:
@@ -0,0 +1,84 @@
|
||||
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(query) {
|
||||
return request({
|
||||
url: '/student-records/export-grades',
|
||||
method: 'get',
|
||||
params: query,
|
||||
responseType: 'blob'
|
||||
})
|
||||
}
|
||||
|
||||
// 导出指定学员的课程过程成绩 Excel(xybh 必传)
|
||||
export function exportStudentProcessGrades(query) {
|
||||
return request({
|
||||
url: '/student-records/export-process-grades',
|
||||
method: 'get',
|
||||
params: query,
|
||||
responseType: 'blob'
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user