Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
micro-customization-system
/
system
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 9641032f
authored
Jul 07, 2021
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
角色管理添加指定数据权限
1 parent
2dfc20f7
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
36 additions
and
2 deletions
src/config/config.js
src/services/role.js
src/utils/constants.js
src/views/role/index.vue
src/config/config.js
View file @
9641032
...
@@ -30,7 +30,8 @@ const ROLE_API = {
...
@@ -30,7 +30,8 @@ const ROLE_API = {
ROLE_EDIT
:
'/usercenter/role/edit'
,
ROLE_EDIT
:
'/usercenter/role/edit'
,
ROLE_DELETE
:
'/usercenter/role/delete'
,
ROLE_DELETE
:
'/usercenter/role/delete'
,
MENU_TREE
:
'/usercenter/menu/checkedtree'
,
MENU_TREE
:
'/usercenter/menu/checkedtree'
,
ROLE_VISIBILITY
:
'/usercenter/role/visibility'
ROLE_VISIBILITY
:
'/usercenter/role/visibility'
,
ROLE_PERMISSION
:
'/usercenter/tenant/rolepermission'
}
}
const
MENU_API
=
{
const
MENU_API
=
{
MENU_SEARCH
:
'/usercenter/menu/search'
,
MENU_SEARCH
:
'/usercenter/menu/search'
,
...
...
src/services/role.js
View file @
9641032
...
@@ -48,4 +48,10 @@ function getVisibility (params) {
...
@@ -48,4 +48,10 @@ function getVisibility (params) {
return
request
(
params
,
url
)
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
}
src/utils/constants.js
View file @
9641032
...
@@ -10,8 +10,35 @@ const Constants = {
...
@@ -10,8 +10,35 @@ const Constants = {
'1'
:
'本人及下属'
,
'1'
:
'本人及下属'
,
'2'
:
'本人部门'
,
'2'
:
'本人部门'
,
'3'
:
'本部门及下级部门'
,
'3'
:
'本部门及下级部门'
,
'6'
:
'指定数据权限'
,
'4'
:
'全部'
'4'
:
'全部'
},
},
ROLEAUTH_LIST
:
[
{
label
:
'本人'
,
value
:
0
},
{
label
:
'本人及下属'
,
value
:
1
},
{
label
:
'本人部门'
,
value
:
2
},
{
label
:
'本部门及下级部门'
,
value
:
3
},
{
label
:
'指定数据权限'
,
value
:
6
},
{
label
:
'全部'
,
value
:
4
}
],
// 租户可见度
// 租户可见度
ROLE_VISIBLE
:
{
ROLE_VISIBLE
:
{
0
:
'共享'
,
0
:
'共享'
,
...
...
src/views/role/index.vue
View file @
9641032
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment