角色添加、角色编辑关联菜单功能
This commit is contained in:
@@ -28,7 +28,7 @@ export function treeselect() {
|
||||
// 根据角色ID查询菜单下拉树结构
|
||||
export function roleMenuTreeselect(roleId) {
|
||||
return request({
|
||||
url: '/system/menu/roleMenuTreeselect/' + roleId,
|
||||
url: '/menu/getListByRoleId/' + roleId,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
@@ -31,7 +31,7 @@ export function addRole(data) {
|
||||
// 修改角色
|
||||
export function updateRole(data) {
|
||||
return request({
|
||||
url: '/system/role',
|
||||
url: '/role/updateInfo',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
@@ -130,4 +130,5 @@ export function roleOptionselect() {
|
||||
url: '/role/getList',
|
||||
method: 'get'
|
||||
})
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user