Administrator
2022-04-11 79d9fc857559982b00b68b2d709807bdc4cd286f
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
import request from '@/router/axios';
 
export const getList = (current, size, params) => {
    return request({
        url: '/api/blade-system/dept/list',
        method: 'get',
        params: {
            ...params,
            current,
            size,
        }
    })
}
 
export const getLazyList = (parentId, params) => {
    return request({
        url: '/api/blade-system/dept/lazy-list',
        method: 'get',
        params: {
            ...params,
            parentId
        }
    })
}
 
export const remove = (ids) => {
    return request({
        url: '/api/blade-system/dept/remove',
        method: 'post',
        params: {
            ids,
        }
    })
}
 
export const add = (row) => {
    return request({
        url: '/api/blade-system/dept/submit',
        method: 'post',
        data: row
    })
}
 
export const update = (row) => {
    return request({
        url: '/api/blade-system/dept/submit',
        method: 'post',
        data: row
    })
}
 
export const getDept = (id) => {
    return request({
        url: '/api/blade-system/dept/detail',
        method: 'get',
        params: {
            id,
        }
    })
}
 
export const getDeptTree = (tenantId) => {
    return request({
        url: '/api/blade-system/dept/tree',
        method: 'get',
        params: {
            tenantId,
        }
    })
}
 
export const getDeptLazyTree = (parentId, userId) => {
    return request({
        url: '/api/blade-system/dept/lazy-tree',
        method: 'get',
        params: {
            parentId,
            userId
        }
    })
}
 
export const getSecurityDeptTree = (jurisdiction, parentId, deptId) => {
    return request({
        url: '/api/blade-system/dept/security_lazy-tree',
        method: 'get',
        params: {
            jurisdiction,
            parentId,
            deptId
        }
    })
}
 
 
export const getDeptLazyTreeUser = (parentId) => {
    return request({
        url: '/api/blade-system/dept/lazy-tree-user',
        method: 'get',
        params: {
            parentId
        }
    })
}
 
export const ss = () => {
    return request({
        url: '/api/blade-system/dept/selectInfo',
        method: 'get',
    })
}
 
export const rs = () => {
    return request({
        url: '/api/blade-system/role/selectRole',
        method: 'get',
    })
}