From eee9a71cd956cdbe522b03d9d21be0d836eaadaf Mon Sep 17 00:00:00 2001 From: izory <791736813@qq.com> Date: Mon, 11 Oct 2021 15:12:15 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E8=A7=92=E8=89=B2=E6=9D=83?= =?UTF-8?q?=E9=99=90=E5=88=86=E9=85=8D=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ZR.Vue/src/views/system/role/index.vue | 47 ++++++++++++-------------- 1 file changed, 22 insertions(+), 25 deletions(-) diff --git a/ZR.Vue/src/views/system/role/index.vue b/ZR.Vue/src/views/system/role/index.vue index ee82f70..18e3a56 100644 --- a/ZR.Vue/src/views/system/role/index.vue +++ b/ZR.Vue/src/views/system/role/index.vue @@ -26,43 +26,46 @@ - - + + - - - + + + - - - - + + + + - - - + + + + {{form.roleKey}} + + 展开/折叠 - + 全选/全不选 + 父子联动 + - 保存 + 保存 - @@ -81,12 +84,6 @@ {{ dict.dictLabel }} - @@ -398,11 +395,10 @@ export default { /** 分配角色权限按钮操作 */ //新增 和上面代码基本相同 handleDataScope(row) { - if(row.roleId == 1){ + if (row.roleId == 1) { this.showRoleScope = false; return; } - console.log('分配菜单') this.reset(); this.showRoleScope = true; const roleId = row.roleId || this.ids; @@ -420,6 +416,7 @@ export default { roleId: row.roleId, roleName: row.roleName, roleKey: row.roleKey, + menuCheckStrictly: true }; }, /** 提交按钮 */