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.
75 lines
1.6 KiB
75 lines
1.6 KiB
|
2 years ago
|
import request from '@/utils/request';
|
||
|
|
import { AxiosPromise } from 'axios';
|
||
|
|
import { postinfp,tarData,addlist,deltarget,getgroupData,edittarget, position, getgroup, organd, postsss } from './type';
|
||
|
|
export function addPostCont(url:string,method:string,data?: postinfp){
|
||
|
|
return request({
|
||
|
|
url: url,
|
||
|
|
method: method,
|
||
|
|
data: data
|
||
|
|
});
|
||
|
|
}
|
||
|
|
export function tarlist(data?:tarData){
|
||
|
|
return request({
|
||
|
|
url:'/kpiapi/department_pc/new_depart_tar_list',
|
||
|
|
method:'post',
|
||
|
|
data:data
|
||
|
|
})
|
||
|
|
}
|
||
|
|
export function addtarget(data?:addlist){
|
||
|
|
return request({
|
||
|
|
url:'/kpiapi/department_pc/new_add_depar_target',
|
||
|
|
method:'post',
|
||
|
|
data:data
|
||
|
|
})
|
||
|
|
}
|
||
|
|
export function deltarget(data?:deltarget){
|
||
|
|
return request({
|
||
|
|
url:'/kpiapi/department_pc/new_del_target',
|
||
|
|
method:'post',
|
||
|
|
data:data
|
||
|
|
})
|
||
|
|
}
|
||
|
|
export function getgroupusers(data?:getgroupData){
|
||
|
|
return request({
|
||
|
|
url:'/api/group/getgroupdepartmap',
|
||
|
|
method:'post',
|
||
|
|
data:data
|
||
|
|
})
|
||
|
|
}
|
||
|
|
export function edittarget(data?:edittarget){
|
||
|
|
return request({
|
||
|
|
url:'/kpiapi/department_pc/new_edit_one_target',
|
||
|
|
method:'post',
|
||
|
|
data:data
|
||
|
|
})
|
||
|
|
}
|
||
|
|
export function positionlist(data?:position){
|
||
|
|
return request({
|
||
|
|
url:'/hrapi/org/positionlist',
|
||
|
|
method:'post',
|
||
|
|
data:data
|
||
|
|
})
|
||
|
|
}
|
||
|
|
export function getgroupuser(data?:getgroup){
|
||
|
|
return request({
|
||
|
|
url:'/api/group/getgroupuser',
|
||
|
|
method:'post',
|
||
|
|
data:data
|
||
|
|
})
|
||
|
|
}
|
||
|
|
export function organdpost(data?:organd){
|
||
|
|
return request({
|
||
|
|
url:'/hrapi/org/get_organdpost_three',
|
||
|
|
method:'post',
|
||
|
|
data:data
|
||
|
|
})
|
||
|
|
}
|
||
|
|
export function posttarget(data?:postsss){
|
||
|
|
return request({
|
||
|
|
url:'/kpiapi/postpc/get_posttarget_list',
|
||
|
|
method:'post',
|
||
|
|
data:data
|
||
|
|
})
|
||
|
|
}
|
||
|
|
export function addposttargetcont(dat)
|