排班管理接口对接
This commit is contained in:
@ -1,5 +1,6 @@
|
||||
import request from '@/utils/request';
|
||||
import { AxiosPromise } from 'axios';
|
||||
import { SchedulingVO } from './types';
|
||||
|
||||
|
||||
/**
|
||||
@ -16,11 +17,63 @@ export function getPaibanRenYuanList(deptId:string | number): AxiosPromise<any>
|
||||
|
||||
/**
|
||||
* 查询运维-人员排班列表
|
||||
* @param deptId
|
||||
*/
|
||||
export function getPaibanRiLiList(deptId:string | number): AxiosPromise<any> {
|
||||
export function getPaibanRiLiList(query?: SchedulingVO): AxiosPromise<SchedulingVO[]> {
|
||||
return request({
|
||||
url: `/ops/personnel/scheduling/getRiLiList/`+deptId,
|
||||
url: `/ops/personnel/scheduling/getRiLiList`,
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 运维-人员排班-查询排班列表
|
||||
*/
|
||||
export function getPaibanListPage(query?: SchedulingVO): AxiosPromise<SchedulingVO[]> {
|
||||
return request({
|
||||
url: `/ops/personnel/scheduling/list`,
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
}
|
||||
/**
|
||||
* 运维-人员排班-安排排班
|
||||
*/
|
||||
export function savePaiban(data: any): AxiosPromise<any> {
|
||||
return request({
|
||||
url: `/ops/personnel/scheduling/all`,
|
||||
method: 'post',
|
||||
data: data
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 运维-人员排班-修改排班
|
||||
*/
|
||||
export function updatePaiban(data:any): AxiosPromise<any> {
|
||||
return request({
|
||||
url: `/ops/personnel/scheduling`,
|
||||
method: 'put',
|
||||
data: data
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 运维-人员排班-批量修改排班
|
||||
*/
|
||||
export function updateAllPaiban(): AxiosPromise<any> {
|
||||
return request({
|
||||
url: `/ops/personnel/scheduling/all`,
|
||||
method: 'put',
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 运维-人员排班-删除排班
|
||||
*/
|
||||
export function deletePaiban(ids: string): AxiosPromise<any> {
|
||||
return request({
|
||||
url: `/ops/personnel/scheduling/${ids}`,
|
||||
method: 'delete',
|
||||
});
|
||||
}
|
||||
|
||||
@ -0,0 +1,39 @@
|
||||
export interface SchedulingVO {
|
||||
/**
|
||||
* 开始时间
|
||||
*/
|
||||
schedulingStartDate: string;
|
||||
|
||||
/**
|
||||
* 结束时间
|
||||
*/
|
||||
schedulingEndDate: string;
|
||||
|
||||
/**
|
||||
* 部门ID
|
||||
*/
|
||||
projectId?: string | number;
|
||||
|
||||
}
|
||||
|
||||
|
||||
// export interface SchedulingQuery extends PageQuery {
|
||||
|
||||
// /**
|
||||
// * 开始时间
|
||||
// */
|
||||
// schedulingStartDate: string;
|
||||
|
||||
// /**
|
||||
// * 结束时间
|
||||
// */
|
||||
// schedulingEndDate: string;
|
||||
|
||||
// /**
|
||||
// * 部门ID
|
||||
// */
|
||||
// projectId?: string | number;
|
||||
// }
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user