commit | author | age
|
9bcb19
|
1 |
import { axios } from '@/utils/request' |
I |
2 |
|
|
3 |
/** |
|
4 |
* 获取菜单列表 |
|
5 |
* |
|
6 |
* @author yubaoshan |
|
7 |
* @param parameter |
|
8 |
* @returns {*} |
|
9 |
*/ |
|
10 |
export function getMenuList (parameter) { |
|
11 |
return axios({ |
|
12 |
url: '/sysMenu/list', |
|
13 |
method: 'get', |
|
14 |
params: parameter |
|
15 |
}) |
|
16 |
} |
|
17 |
|
|
18 |
/** |
|
19 |
* 获取系统菜单树,用于新增,编辑时选择上级节点 |
|
20 |
* |
|
21 |
* @author yubaoshan |
|
22 |
* @date 2020/4/23 12:22 |
|
23 |
*/ |
|
24 |
export function getMenuTree (parameter) { |
|
25 |
return axios({ |
|
26 |
url: '/sysMenu/tree', |
|
27 |
method: 'get', |
|
28 |
params: parameter |
|
29 |
}) |
|
30 |
} |
|
31 |
|
|
32 |
/** |
|
33 |
* 增加菜单 |
|
34 |
* |
|
35 |
* @author yubaoshan |
|
36 |
* @date 2020/4/24 23:23 |
|
37 |
*/ |
|
38 |
export function sysMenuAdd (parameter) { |
|
39 |
return axios({ |
|
40 |
url: '/sysMenu/add', |
|
41 |
method: 'post', |
|
42 |
data: parameter |
|
43 |
}) |
|
44 |
} |
|
45 |
|
|
46 |
/** |
|
47 |
* 增加菜单 |
|
48 |
* |
|
49 |
* @author yubaoshan |
|
50 |
* @date 2020/4/24 23:23 |
|
51 |
*/ |
|
52 |
export function sysMenuDelete (parameter) { |
|
53 |
return axios({ |
|
54 |
url: '/sysMenu/delete', |
|
55 |
method: 'post', |
|
56 |
data: parameter |
|
57 |
}) |
|
58 |
} |
|
59 |
|
|
60 |
/** |
|
61 |
* 查看菜单详情 |
|
62 |
* |
|
63 |
* @author yubaoshan |
|
64 |
* @date 2020/4/25 01:11 |
|
65 |
*/ |
|
66 |
export function sysMenuDetail (parameter) { |
|
67 |
return axios({ |
|
68 |
url: '/sysMenu/detail', |
|
69 |
method: 'post', |
|
70 |
data: parameter |
|
71 |
}) |
|
72 |
} |
|
73 |
|
|
74 |
/** |
|
75 |
* 编辑系统菜单 |
|
76 |
* |
|
77 |
* @author yubaoshan |
|
78 |
* @date 2020/4/25 01:11 |
|
79 |
*/ |
|
80 |
export function sysMenuEdit (parameter) { |
|
81 |
return axios({ |
|
82 |
url: '/sysMenu/edit', |
|
83 |
method: 'post', |
|
84 |
data: parameter |
|
85 |
}) |
|
86 |
} |
|
87 |
|
|
88 |
/** |
|
89 |
* 获取系统菜单树,用于给角色授权时选择 |
|
90 |
* |
|
91 |
* @author yubaoshan |
|
92 |
* @date 2020/6/2 17:30 |
|
93 |
*/ |
|
94 |
export function SysMenuTreeForGrant (parameter) { |
|
95 |
return axios({ |
|
96 |
url: '/sysMenu/treeForGrant', |
|
97 |
method: 'get', |
|
98 |
params: parameter |
|
99 |
}) |
|
100 |
} |
|
101 |
|
|
102 |
/** |
|
103 |
* 根据系统切换菜单 |
|
104 |
* |
|
105 |
* @author yubaoshan |
|
106 |
* @date 2020/6/28 15:25 |
|
107 |
*/ |
|
108 |
export function sysMenuChange (parameter) { |
|
109 |
return axios({ |
|
110 |
url: '/sysMenu/change', |
|
111 |
method: 'post', |
|
112 |
data: parameter |
|
113 |
}) |
|
114 |
} |