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.
135 lines
2.8 KiB
135 lines
2.8 KiB
|
1 year ago
|
import request from '@/utils/request';
|
||
|
|
import { AxiosPromise } from 'axios';
|
||
|
|
import { searchFormTitle,orgClassListCont,addOrgTypesCont,orgClassCont,editOrgTypeEditOrDel,searchOrgCont,orgInfo,addOrgInfo,editOrgDel,searchTeamList,orgTeamListCont,orgFormTree,archivesList } from './type';
|
||
|
|
/**
|
||
|
|
* 获取组织类别
|
||
|
|
*/
|
||
|
|
export function getRolePage(data?: searchFormTitle): AxiosPromise<orgClassListCont> {
|
||
|
|
return request({
|
||
|
|
url: '/hrapi/org/govclasslist',
|
||
|
|
method: 'post',
|
||
|
|
data: data
|
||
|
|
});
|
||
|
|
}
|
||
|
|
/**
|
||
|
|
* 获取所有组织类别
|
||
|
|
*/
|
||
|
|
export function getOrgClassAllPage(data?: addOrgTypesCont) {
|
||
|
|
return request({
|
||
|
|
url: '/hrapi/org/govclassalllist',
|
||
|
|
method: 'post',
|
||
|
|
data: data
|
||
|
|
});
|
||
|
|
}
|
||
|
|
/**
|
||
|
|
* 添加组织分类
|
||
|
|
*/
|
||
|
|
export function addOrgClassInfo(data: addOrgTypesCont){
|
||
|
|
return request({
|
||
|
|
url: '/hrapi/org/addgovclass',
|
||
|
|
method: 'post',
|
||
|
|
data: data
|
||
|
|
});
|
||
|
|
}
|
||
|
|
/**
|
||
|
|
* 编辑组织分类
|
||
|
|
*/
|
||
|
|
export function editOrgClassInfo(data: orgClassCont){
|
||
|
|
return request({
|
||
|
|
url: '/hrapi/org/eitegovclasscont',
|
||
|
|
method: 'post',
|
||
|
|
data: data
|
||
|
|
});
|
||
|
|
}
|
||
|
|
/**
|
||
|
|
* 编辑组织类别状态
|
||
|
|
*/
|
||
|
|
export function editOrgClassStatus(data: editOrgTypeEditOrDel){
|
||
|
|
return request({
|
||
|
|
url: '/hrapi/org/base_edit_orgclass_status',
|
||
|
|
method: 'post',
|
||
|
|
data: data
|
||
|
|
});
|
||
|
|
}
|
||
|
|
/**
|
||
|
|
* 获取行政组织树
|
||
|
|
*/
|
||
|
|
export function getOrgTreeList(data: searchOrgCont): AxiosPromise<orgInfo[]>{
|
||
|
|
return request({
|
||
|
|
url: '/hrapi/org/govnewthreeing',
|
||
|
|
method: 'post',
|
||
|
|
data: data
|
||
|
|
});
|
||
|
|
}
|
||
|
|
/**
|
||
|
|
* 新增行政组织内容
|
||
|
|
*/
|
||
|
|
export function addOrgInfoApi(data: addOrgInfo){
|
||
|
|
return request({
|
||
|
|
url: '/hrapi/org/newaddgovcont',
|
||
|
|
method: 'post',
|
||
|
|
data: data
|
||
|
|
});
|
||
|
|
}
|
||
|
|
/**
|
||
|
|
* 编辑行政组织内容
|
||
|
|
*/
|
||
|
|
export function editOrgInfoApi(data: addOrgInfo){
|
||
|
|
return request({
|
||
|
|
url: '/hrapi/org/neweitegovcont',
|
||
|
|
method: 'post',
|
||
|
|
data: data
|
||
|
|
});
|
||
|
|
}
|
||
|
|
/**
|
||
|
|
* 编辑行政组织内容
|
||
|
|
*/
|
||
|
|
export function editOrgStatusApi(data: editOrgDel){
|
||
|
|
return request({
|
||
|
|
url: '/hrapi/org/neweitegovstateordel',
|
||
|
|
method: 'post',
|
||
|
|
data: data
|
||
|
|
});
|
||
|
|
}
|
||
|
|
/**
|
||
|
|
* 获取班组列表
|
||
|
|
*/
|
||
|
|
export function getTeamListCont(data: searchTeamList): AxiosPromise<orgTeamListCont>{
|
||
|
|
return request({
|
||
|
|
url: '/hrapi/org/teamcontlist',
|
||
|
|
method: 'post',
|
||
|
|
data: data
|
||
|
|
});
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 获取自定义表单行政组织树
|
||
|
|
*/
|
||
|
|
export function getOrgFormTree(data?: editOrgDel): AxiosPromise<orgFormTree>{
|
||
|
|
return request({
|
||
|
|
url: '/hrapi/org/orgtreelist',
|
||
|
|
method: 'post',
|
||
|
|
data: data
|
||
|
|
});
|
||
|
|
}
|
||
|
|
/**
|
||
|
|
* 获取人员列表
|
||
|
|
*/
|
||
|
|
export function getOrgFormUserList(data:any): AxiosPromise<archivesList>{
|
||
|
|
return request({
|
||
|
|
url: '/hrapi/org/search_user_list',
|
||
|
|
method: 'post',
|
||
|
|
data: data
|
||
|
|
});
|
||
|
|
}
|
||
|
|
/**
|
||
|
|
* 获取人员列表
|
||
|
|
*/
|
||
|
|
export function searchUserCustomerFormList(data:any): AxiosPromise<archivesList[]>{
|
||
|
|
return request({
|
||
|
|
url: '/hrapi/org/search_userlist_customerform',
|
||
|
|
method: 'post',
|
||
|
|
data: data
|
||
|
|
});
|
||
|
|
}
|