commit | author | age
|
9bcb19
|
1 |
import { axios } from '@/utils/request' |
I |
2 |
|
|
3 |
/** |
|
4 |
* 获取角色列表 |
|
5 |
* |
|
6 |
* @author yubaoshan |
|
7 |
* @date 2020/5/6 11:44 |
|
8 |
*/ |
|
9 |
export function getRolePage (parameter) { |
|
10 |
return axios({ |
|
11 |
url: '/sysRole/page', |
|
12 |
method: 'get', |
|
13 |
params: parameter |
|
14 |
}) |
|
15 |
} |
|
16 |
|
|
17 |
/** |
|
18 |
* 增加角色 |
|
19 |
* |
|
20 |
* @author yubaoshan |
|
21 |
* @date 2020/5/6 11:44 |
|
22 |
*/ |
|
23 |
export function sysRoleAdd (parameter) { |
|
24 |
return axios({ |
|
25 |
url: '/sysRole/add', |
|
26 |
method: 'post', |
|
27 |
data: parameter |
|
28 |
}) |
|
29 |
} |
|
30 |
|
|
31 |
/** |
|
32 |
* 编辑角色 |
|
33 |
* |
|
34 |
* @author yubaoshan |
|
35 |
* @date 2020/5/6 11:44 |
|
36 |
*/ |
|
37 |
export function sysRoleEdit (parameter) { |
|
38 |
return axios({ |
|
39 |
url: '/sysRole/edit', |
|
40 |
method: 'post', |
|
41 |
data: parameter |
|
42 |
}) |
|
43 |
} |
|
44 |
|
|
45 |
/** |
|
46 |
* 删除角色 |
|
47 |
* |
|
48 |
* @author yubaoshan |
|
49 |
* @date 2020/5/6 17:51 |
|
50 |
*/ |
|
51 |
export function sysRoleDelete (parameter) { |
|
52 |
return axios({ |
|
53 |
url: '/sysRole/delete', |
|
54 |
method: 'post', |
|
55 |
data: parameter |
|
56 |
}) |
|
57 |
} |
|
58 |
|
|
59 |
/** |
|
60 |
* 删除角色 |
|
61 |
* |
|
62 |
* @author yubaoshan |
|
63 |
* @date 2020/5/7 11:28 |
|
64 |
*/ |
|
65 |
export function sysRoleDeteil (parameter) { |
|
66 |
return axios({ |
|
67 |
url: '/sysRole/detail', |
|
68 |
method: 'get', |
|
69 |
params: parameter |
|
70 |
}) |
|
71 |
} |
|
72 |
|
|
73 |
/** |
|
74 |
* 获取授权角色列表 |
|
75 |
* |
|
76 |
* @author yubaoshan |
|
77 |
* @date 2020/5/26 23:59 |
|
78 |
*/ |
|
79 |
export function sysRoleDropDown (parameter) { |
|
80 |
return axios({ |
|
81 |
url: '/sysRole/dropDown', |
|
82 |
method: 'get', |
|
83 |
params: parameter |
|
84 |
}) |
|
85 |
} |
|
86 |
|
|
87 |
/** |
|
88 |
* 拥有菜单 |
|
89 |
* |
|
90 |
* @author yubaoshan |
|
91 |
* @date 2020/6/02 19:02 |
|
92 |
*/ |
|
93 |
export function sysRoleOwnMenu (parameter) { |
|
94 |
return axios({ |
|
95 |
url: '/sysRole/ownMenu', |
|
96 |
method: 'get', |
|
97 |
params: parameter |
|
98 |
}) |
|
99 |
} |
|
100 |
|
|
101 |
/** |
|
102 |
* 授权菜单 |
|
103 |
* |
|
104 |
* @author yubaoshan |
|
105 |
* @date 2020/6/2 21:10 |
|
106 |
*/ |
|
107 |
export function sysRoleGrantMenu (parameter) { |
|
108 |
return axios({ |
|
109 |
url: '/sysRole/grantMenu', |
|
110 |
method: 'post', |
|
111 |
data: parameter |
|
112 |
}) |
|
113 |
} |
|
114 |
|
|
115 |
/** |
|
116 |
* 拥有数据 |
|
117 |
* |
|
118 |
* @author yubaoshan |
|
119 |
* @date 2020/6/02 21:40 |
|
120 |
*/ |
|
121 |
export function sysRoleOwnData (parameter) { |
|
122 |
return axios({ |
|
123 |
url: '/sysRole/ownData', |
|
124 |
method: 'get', |
|
125 |
params: parameter |
|
126 |
}) |
|
127 |
} |
|
128 |
|
|
129 |
/** |
|
130 |
* 授权数据 |
|
131 |
* |
|
132 |
* @author yubaoshan |
|
133 |
* @date 2020/6/2 21:50 |
|
134 |
*/ |
|
135 |
export function sysRoleGrantData (parameter) { |
|
136 |
return axios({ |
|
137 |
url: '/sysRole/grantData', |
|
138 |
method: 'post', |
|
139 |
data: parameter |
|
140 |
}) |
|
141 |
} |