智慧教务系统 PHP-NiuCloud框架开发
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.
 
 
 
 
 
 

58 lines
1.4 KiB

import request from '@/utils/request'
// USER_CODE_BEGIN -- zhjw_schedules
/**
* 获取排班管理列表
* @param params
* @returns
*/
export function getSchedulesList(params: Record<string, any>) {
return request.get(`zhjw/schedules`, {params})
}
/**
* 获取排班管理详情
* @param id 排班管理id
* @returns
*/
export function getSchedulesInfo(id: number) {
return request.get(`zhjw/schedules/${id}`);
}
/**
* 添加排班管理
* @param params
* @returns
*/
export function addSchedules(params: Record<string, any>) {
return request.post('zhjw/schedules', params, { showErrorMessage: true, showSuccessMessage: true })
}
/**
* 编辑排班管理
* @param id
* @param params
* @returns
*/
export function editSchedules(params: Record<string, any>) {
return request.put(`zhjw/schedules/${params.id}`, params, { showErrorMessage: true, showSuccessMessage: true })
}
/**
* 删除排班管理
* @param id
* @returns
*/
export function deleteSchedules(id: number) {
return request.delete(`zhjw/schedules/${id}`, { showErrorMessage: true, showSuccessMessage: true })
}
export function getWithStaffList(params: Record<string,any>){
return request.get('zhjw/staff_all', {params})
}export function getWithClassesList(params: Record<string,any>){
return request.get('zhjw/classes_all', {params})
}
// USER_CODE_END -- zhjw_schedules