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
| import { request } from '@umijs/max';
|
| // 列表
| export const getList = async (params) => {
| return request(`/api/huacheng-sangeshenbian/systemRole/list`, {
| method: 'GET',
| params
| });
| }
|
|
| // 单位列表
| export const getUnitList = async (params) => {
| return request(`/api/huacheng-sangeshenbian/department/list`, {
| method: 'GET',
| params
| });
| }
|
| // 编辑获取角色权限树
| export const getTree = async (id) => {
| return request(`/api/huacheng-sangeshenbian/systemRole/getSystemRoleInfo/${id}`, {
| method: 'GET',
| });
| }
|
| // 新增获取权限树
| export const getAddTree = async (id) => {
| return request(`/api/huacheng-sangeshenbian/systemMenu/getSystemMenuList`, {
| method: 'GET',
| });
| }
|
| // 新增
| export const add = async (data) => {
| return request('/api/huacheng-sangeshenbian/systemRole/add', {
| method: 'POST',
| data,
| });
| }
|
| // 编辑
| export const edit = async (data) => {
| return request('/api/huacheng-sangeshenbian/systemRole/edit', {
| method: 'POST',
| data,
| });
| }
|
| // 删除
| export const del = async (id) => {
| return request(`/api/huacheng-sangeshenbian/systemRole/delete/${id}`, {
| method: 'DELETE',
| });
| }
|
|