马宇豪
2024-06-04 0d32ef0479cb7d7d0f24b4e866994d43dfaf82e6
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
//将拦截器整体导入
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'
    })
}