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.
40 lines
881 B
40 lines
881 B
|
2 years ago
|
import request from '@/utils/request';
|
||
|
|
import { AxiosPromise } from 'axios';
|
||
|
|
import { postinfp,tarData,addlist,deltarget,getgroupData } 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/getgroupuser',
|
||
|
|
method:'post',
|
||
|
|
data:data
|
||
|
|
})
|
||
|
|
}
|
||
|
|
export function
|