diff --git a/manager/src/views/sys/role-manage/roleManage.vue b/manager/src/views/sys/role-manage/roleManage.vue index f72d7099..d0cc5323 100644 --- a/manager/src/views/sys/role-manage/roleManage.vue +++ b/manager/src/views/sys/role-manage/roleManage.vue @@ -76,22 +76,22 @@ - +
+ + +
{{ item.title }}
- - - 操作数据权限 - - - 查看权限 - - + + + 操作数据权限 + + + 查看权限 + +
@@ -337,6 +337,17 @@ export default { this.getRoleList(); }, + /** + * 设置权限 + */ + setRole(val) { + let enable; + val == "onlyView" ? (enable = false) : (enable = true); + this.saveRoleWay.map((item) => { + item.isSuper = enable; + }); + }, + /** * 查询所有角色 */ @@ -515,7 +526,7 @@ export default { } // 递归判断子节点 this.checkPermTree(this.permData, rolePerms); - console.warn(this.permData); + this.permModalVisible = true; }, // 递归判断子节点 @@ -535,7 +546,6 @@ export default { }, // 判断角色拥有的权限节点勾选 hasPerm(p, rolePerms) { - console.log(p, rolePerms); if (!rolePerms) return false; let flag = false; for (let i = 0; i < rolePerms.length; i++) { @@ -568,7 +578,6 @@ export default { let way = []; selectedNodes.forEach((e) => { - console.log(e); let perm = { title: e.title, isSuper: e.isSuper, @@ -707,44 +716,42 @@ export default { display: flex; padding: 20px 0; align-items: center; - >.title{ + > .title { flex: 2; text-align: right; } - >.content{ + > .content { flex: 10; } } -.btns{ +.btns { display: flex; align-items: center; - justify-content: space-between; + justify-content: center; } -.btn-item{ +.btn-item { margin-right: 20px; } .permModal { - .ivu-modal-body { - max-height: 560px; - overflow: auto; - } + .ivu-modal-body { + max-height: 560px; + overflow: auto; + } } .depModal { - .ivu-modal-body { - max-height: 500px; - overflow: auto; - } + .ivu-modal-body { + max-height: 500px; + overflow: auto; + } } -.tips{ +.tips { font-size: 12px; color: #999; margin-left: 8px; } -.title{ - +.title { font-weight: bold; margin-right: 20px; } -