You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
60 lines
1.6 KiB
60 lines
1.6 KiB
import request from '@/utils/request'
|
|
|
|
// USER_CODE_BEGIN -- zhjw_roll
|
|
/**
|
|
* 获取学籍列列表
|
|
* @param params
|
|
* @returns
|
|
*/
|
|
export function getZhjwRollList(params: Record<string, any>) {
|
|
return request.get(`zhjw/zhjw_roll`, {params})
|
|
}
|
|
|
|
/**
|
|
* 获取学籍列详情
|
|
* @param id 学籍列id
|
|
* @returns
|
|
*/
|
|
export function getZhjwRollInfo(id: number) {
|
|
return request.get(`zhjw/zhjw_roll/${id}`);
|
|
}
|
|
|
|
/**
|
|
* 添加学籍列
|
|
* @param params
|
|
* @returns
|
|
*/
|
|
export function addZhjwRoll(params: Record<string, any>) {
|
|
return request.post('zhjw/zhjw_roll', params, { showErrorMessage: true, showSuccessMessage: true })
|
|
}
|
|
|
|
/**
|
|
* 编辑学籍列
|
|
* @param id
|
|
* @param params
|
|
* @returns
|
|
*/
|
|
export function editZhjwRoll(params: Record<string, any>) {
|
|
return request.put(`zhjw/zhjw_roll/${params.id}`, params, { showErrorMessage: true, showSuccessMessage: true })
|
|
}
|
|
|
|
/**
|
|
* 删除学籍列
|
|
* @param id
|
|
* @returns
|
|
*/
|
|
export function deleteZhjwRoll(id: number) {
|
|
return request.delete(`zhjw/zhjw_roll/${id}`, { showErrorMessage: true, showSuccessMessage: true })
|
|
}
|
|
|
|
export function getWithStudentsList(params: Record<string,any>){
|
|
return request.get('zhjw/students_all', {params})
|
|
}export function getWithStaffList(params: Record<string,any>){
|
|
return request.get('zhjw/staff_all', {params})
|
|
}export function getWithCoursesList(params: Record<string,any>){
|
|
return request.get('zhjw/courses_all', {params})
|
|
}export function getWithClassesList(params: Record<string,any>){
|
|
return request.get('zhjw/classes_all', {params})
|
|
}
|
|
|
|
// USER_CODE_END -- zhjw_roll
|
|
|