api.ts
1.58 KB
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
import request from '@/utils/request'
// 路由
export const getRouterData = (data: any) =>
request({
url: `/authority/menu/router`,
method: 'get',
data
})
// 上传图片
export const getVisit = (data: any) =>
request({
url: `/file/attachment/upload`,
method: 'post',
data
})
// 查询附件
export const getAttachment = (data: any) =>
request({
url: `/file/attachment`,
method: 'post',
data
})
// 导入
export const exportExle = (data: any) =>
request({
url: `/authority/user/importExcel`,
method: 'post',
responseType: 'blob',
data
})
// 角色
export const getRole = (data: any) =>
request({
url: `/authority/role/findAllRoles`,
method: 'get',
data
})
// 角色
export const getRepelRole = (params: any) =>
request({
// url: `/authority/role`,/authority/role/page
url: `/authority/role/page`,
method: 'get',
params
})
// 组织
// export const getAllTree = (data: any) =>
// request({
// url: `/authority/org/tree`,
// method: 'get',
// data
// })
export const getAllTree = (params: any) =>
request({
url: `/authority/org/tree`,
method: 'get',
params
})
// 人员
export const getTree = (data: any) =>
request({
url: `/authority/userGroup/orgUserTree`,
method: 'get',
data
})
// 岗位
export const getAllStation = (params: any) =>
request({
url: `/authority/station/list`,
method: 'get',
params
})
// 获取个人信息及权限
export const getUserAndPermissionInfo = () =>
request({
url: `/authority/user/login`,
method: 'get'
})