//将拦截器整体导入
|
import request from '@/util/request'//导入已经写好的拦截器
|
|
// 获取架构树
|
export function getStructure(){
|
return request({
|
url: '/sys/districtInfo/org',
|
method: 'get'
|
})
|
}
|
|
// 新增
|
export function addDep(data){
|
return request({
|
url: '/org/structure/add',
|
method: 'post',
|
data: data,
|
})
|
}
|
|
// 修改
|
export function editDep(data){
|
return request({
|
url: '/org/structure/update',
|
method: 'post',
|
data: data,
|
})
|
}
|
|
// 修改
|
export function editArea(data){
|
return request({
|
url: '/sys/districtInfo/update',
|
method: 'post',
|
data: data,
|
})
|
}
|
|
// 删除
|
export function delStructure(id){
|
return request({
|
url: '/org/structure/delete/' + id,
|
method: 'delete'
|
})
|
}
|
|
// 更新统计
|
export function getUpdateData(){
|
return request({
|
url: '/org/user/task/statistic',
|
method: 'get'
|
})
|
}
|
|
// 下发更新任务
|
export function deliverUpdate(){
|
return request({
|
url: '/org/user/task/update',
|
method: 'get'
|
})
|
}
|
|
// 架构详情
|
export function getStructureDetail(id){
|
return request({
|
url: '/org/structure/findById/' + id,
|
method: 'get'
|
})
|
}
|
|
// 分页
|
export function getContactors(data){
|
return request({
|
url: '/org/user/page',
|
method: 'post',
|
data: data,
|
})
|
}
|
|
// 新增
|
export function addContactors(data){
|
return request({
|
url: '/org/user/add',
|
method: 'post',
|
data: data,
|
})
|
}
|
|
// 更新
|
export function updateContactors(data){
|
return request({
|
url: '/org/user/update',
|
method: 'post',
|
data: data,
|
})
|
}
|
|
// 删除
|
export function delContactors(id){
|
return request({
|
url: '/org/user/delete/' + id,
|
method: 'delete'
|
})
|
}
|
|
// 无需更新
|
export function noUpdate(id){
|
return request({
|
url: '/org/user/no/update/' + id,
|
method: 'get'
|
})
|
}
|
|
// 通讯录下拉接口
|
// export function getNewAddressBook(){
|
// return request({
|
// url: '/org/structure/select/user',
|
// method: 'get'
|
// })
|
// }
|
|
//新通讯录-根据平级单位查人
|
export function getNewAddressBookUser(id){
|
return request({
|
url: '/org/user/select/user/' + id,
|
method: 'get'
|
})
|
}
|
//新通讯录-根据区划查子级以及平级单位
|
export function getNewAddressBookArea(){
|
return request({
|
url: '/sys/districtInfo/select/org',
|
method: 'get'
|
})
|
}
|