zhouwx
2024-08-30 1f6893d24ba87313d4114c68813073ead53b2e12
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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
//将拦截器整体导入
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'
    })
}