Commit 9641032f by 胡悦

角色管理添加指定数据权限

1 parent 2dfc20f7
......@@ -30,7 +30,8 @@ const ROLE_API = {
ROLE_EDIT: '/usercenter/role/edit',
ROLE_DELETE: '/usercenter/role/delete',
MENU_TREE: '/usercenter/menu/checkedtree',
ROLE_VISIBILITY: '/usercenter/role/visibility'
ROLE_VISIBILITY: '/usercenter/role/visibility',
ROLE_PERMISSION: '/usercenter/tenant/rolepermission'
}
const MENU_API = {
MENU_SEARCH: '/usercenter/menu/search',
......
......@@ -48,4 +48,10 @@ function getVisibility (params) {
return request(params, url)
}
export { getRoleList, roleInfo, getTenantList, addRole, editRole, deleteRole, getMenuTree, getVisibility }
// 数据权限租户列表接口
function getPermission (params) {
const url = ROLE_API.ROLE_PERMISSION
return request(params, url)
}
export { getRoleList, roleInfo, getTenantList, addRole, editRole, deleteRole, getMenuTree, getVisibility, getPermission }
......@@ -10,8 +10,35 @@ const Constants = {
'1': '本人及下属',
'2': '本人部门',
'3': '本部门及下级部门',
'6': '指定数据权限',
'4': '全部'
},
ROLEAUTH_LIST: [
{
label: '本人',
value: 0
},
{
label: '本人及下属',
value: 1
},
{
label: '本人部门',
value: 2
},
{
label: '本部门及下级部门',
value: 3
},
{
label: '指定数据权限',
value: 6
},
{
label: '全部',
value: 4
}
],
// 租户可见度
ROLE_VISIBLE: {
0: '共享',
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!