Merge branch 'lx' of http://xny.yj-3d.com:3000/taoge_xiaodi/maintenance_system into tcy
This commit is contained in:
26
src/api/renyuan/paiban/index.ts
Normal file
26
src/api/renyuan/paiban/index.ts
Normal file
@ -0,0 +1,26 @@
|
||||
import request from '@/utils/request';
|
||||
import { AxiosPromise } from 'axios';
|
||||
|
||||
|
||||
/**
|
||||
* 查询排班人员列表
|
||||
* @param deptId
|
||||
*/
|
||||
export function getPaibanRenYuanList(deptId:string | number): AxiosPromise<any> {
|
||||
return request({
|
||||
url: `/system/user/list/dept/`+deptId,
|
||||
method: 'get',
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 查询运维-人员排班列表
|
||||
* @param deptId
|
||||
*/
|
||||
export function getPaibanRiLiList(deptId:string | number): AxiosPromise<any> {
|
||||
return request({
|
||||
url: `/ops/personnel/scheduling/getRiLiList/`+deptId,
|
||||
method: 'get',
|
||||
});
|
||||
}
|
||||
0
src/api/renyuan/paiban/types.ts
Normal file
0
src/api/renyuan/paiban/types.ts
Normal file
63
src/api/renyuan/schedulingDate/index.ts
Normal file
63
src/api/renyuan/schedulingDate/index.ts
Normal file
@ -0,0 +1,63 @@
|
||||
import request from '@/utils/request';
|
||||
import { AxiosPromise } from 'axios';
|
||||
import { SchedulingDateVO, SchedulingDateForm, SchedulingDateQuery } from '@/api/renyuan/schedulingDate/types';
|
||||
|
||||
/**
|
||||
* 查询运维-排班时间类型列表
|
||||
* @param query
|
||||
* @returns {*}
|
||||
*/
|
||||
|
||||
export const listSchedulingDate = (query?: SchedulingDateQuery): AxiosPromise<SchedulingDateVO[]> => {
|
||||
return request({
|
||||
url: '/ops/personnel/schedulingDate/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 查询运维-排班时间类型详细
|
||||
* @param id
|
||||
*/
|
||||
export const getSchedulingDate = (id: string | number): AxiosPromise<SchedulingDateVO> => {
|
||||
return request({
|
||||
url: '/ops/personnel/schedulingDate/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 新增运维-排班时间类型
|
||||
* @param data
|
||||
*/
|
||||
export const addSchedulingDate = (data: SchedulingDateForm) => {
|
||||
return request({
|
||||
url: '/ops/personnel/schedulingDate',
|
||||
method: 'post',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 修改运维-排班时间类型
|
||||
* @param data
|
||||
*/
|
||||
export const updateSchedulingDate = (data: SchedulingDateForm) => {
|
||||
return request({
|
||||
url: '/ops/personnel/schedulingDate',
|
||||
method: 'put',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 删除运维-排班时间类型
|
||||
* @param id
|
||||
*/
|
||||
export const delSchedulingDate = (id: string | number | Array<string | number>) => {
|
||||
return request({
|
||||
url: '/ops/personnel/schedulingDate/' + id,
|
||||
method: 'delete'
|
||||
});
|
||||
};
|
||||
86
src/api/renyuan/schedulingDate/types.ts
Normal file
86
src/api/renyuan/schedulingDate/types.ts
Normal file
@ -0,0 +1,86 @@
|
||||
export interface SchedulingDateVO {
|
||||
/**
|
||||
* id
|
||||
*/
|
||||
id: string | number;
|
||||
|
||||
/**
|
||||
* 排班名称
|
||||
*/
|
||||
schedulingName: string;
|
||||
|
||||
/**
|
||||
* 开始时间
|
||||
*/
|
||||
startTime: string;
|
||||
|
||||
/**
|
||||
* 结束时间
|
||||
*/
|
||||
endTime: string;
|
||||
|
||||
/**
|
||||
* 部门ID
|
||||
*/
|
||||
projectId?: string | number;
|
||||
|
||||
}
|
||||
|
||||
export interface SchedulingDateForm extends BaseEntity {
|
||||
/**
|
||||
* id
|
||||
*/
|
||||
id?: string | number;
|
||||
|
||||
/**
|
||||
* 排班名称
|
||||
*/
|
||||
schedulingName?: string;
|
||||
|
||||
/**
|
||||
* 开始时间
|
||||
*/
|
||||
startTime?: string;
|
||||
|
||||
/**
|
||||
* 结束时间
|
||||
*/
|
||||
endTime?: string;
|
||||
|
||||
/**
|
||||
* 部门ID
|
||||
*/
|
||||
projectId?: string | number;
|
||||
|
||||
}
|
||||
|
||||
export interface SchedulingDateQuery extends PageQuery {
|
||||
|
||||
/**
|
||||
* 排班名称
|
||||
*/
|
||||
schedulingName?: string;
|
||||
|
||||
/**
|
||||
* 开始时间
|
||||
*/
|
||||
startTime?: string;
|
||||
|
||||
/**
|
||||
* 结束时间
|
||||
*/
|
||||
endTime?: string;
|
||||
|
||||
/**
|
||||
* 部门ID
|
||||
*/
|
||||
projectId?: string | number;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -20,10 +20,11 @@ export const getMenu = (menuId: string | number): AxiosPromise<MenuVO> => {
|
||||
};
|
||||
|
||||
// 查询菜单下拉树结构
|
||||
export const treeselect = (): AxiosPromise<MenuTreeOption[]> => {
|
||||
export const treeselect = (params?: any): AxiosPromise<MenuTreeOption[]> => {
|
||||
return request({
|
||||
url: '/system/menu/treeselect',
|
||||
method: 'get'
|
||||
method: 'get',
|
||||
params
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
@ -147,10 +147,11 @@ export const authUserSelectAll = (data: any) => {
|
||||
});
|
||||
};
|
||||
// 根据角色ID查询部门树结构
|
||||
export const deptTreeSelect = (roleId: string | number): AxiosPromise<RoleDeptTree> => {
|
||||
export const deptTreeSelect = (roleId: string | number, params?) => {
|
||||
return request({
|
||||
url: '/system/role/deptTree/' + roleId,
|
||||
method: 'get'
|
||||
method: 'get',
|
||||
params
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
@ -39,6 +39,7 @@ export interface RoleQuery extends PageQuery {
|
||||
|
||||
export interface RoleForm {
|
||||
roleName: string;
|
||||
deptId: string | undefined;
|
||||
roleKey: string;
|
||||
roleSort: number;
|
||||
status: string;
|
||||
|
||||
@ -202,10 +202,11 @@ export const listUserByDeptId = (deptId: string | number): AxiosPromise<UserVO[]
|
||||
/**
|
||||
* 查询部门下拉树结构
|
||||
*/
|
||||
export const deptTreeSelect = (): AxiosPromise<DeptTreeVO[]> => {
|
||||
export const deptTreeSelect = (data?: { isShow: string }): AxiosPromise<DeptTreeVO[]> => {
|
||||
return request({
|
||||
url: '/system/user/deptTree',
|
||||
method: 'get'
|
||||
method: 'get',
|
||||
params: data
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user