From e40fb13ab9b59ea216fc3bf6fadde70fce161fdc Mon Sep 17 00:00:00 2001 From: xingyuv Date: Wed, 12 Apr 2023 16:17:27 +0800 Subject: [PATCH] feat: role scope init --- src/views/system/role/RoleMenuModal.vue | 50 +++++++++++++++++++++++++ src/views/system/role/index.vue | 18 ++++++++- src/views/system/role/role.data.ts | 38 ++++++++++++++++++- 3 files changed, 103 insertions(+), 3 deletions(-) create mode 100644 src/views/system/role/RoleMenuModal.vue diff --git a/src/views/system/role/RoleMenuModal.vue b/src/views/system/role/RoleMenuModal.vue new file mode 100644 index 00000000..0cf48f22 --- /dev/null +++ b/src/views/system/role/RoleMenuModal.vue @@ -0,0 +1,50 @@ + + diff --git a/src/views/system/role/index.vue b/src/views/system/role/index.vue index e033e6be..9fc90b3e 100644 --- a/src/views/system/role/index.vue +++ b/src/views/system/role/index.vue @@ -20,13 +20,13 @@ icon: IconEnum.EDIT, label: '菜单权限', auth: 'system:permission:assign-role-menu', - onClick: handleEdit.bind(null, record) + onClick: handleMenu.bind(null, record) }, { icon: IconEnum.EDIT, label: '数据权限', auth: 'system:permission:assign-role-data-scope', - onClick: handleEdit.bind(null, record) + onClick: handleDataScope.bind(null, record) }, { icon: IconEnum.DELETE, @@ -45,6 +45,8 @@ + +