diff --git a/src/pages/config/pages/roleManage/index.vue b/src/pages/config/pages/roleManage/index.vue index ecb83f4f6..7c49f1c58 100644 --- a/src/pages/config/pages/roleManage/index.vue +++ b/src/pages/config/pages/roleManage/index.vue @@ -623,9 +623,6 @@ export default { }) }, SuperiorRole() { // 点击选择上级角色按钮 - this.addForm.parentId = '' - this.addForm.parent = '' - this.nodeList3 = [] this.SuperiorRoleModel = true }, RolesAdd(type, row) { // 新增/编辑角色按钮 @@ -637,6 +634,8 @@ export default { this.addForm.parentId = '' this.addForm.parent = '' this.addForm.id = '' + this.nodeList3 = [] + this.nodeList3.push(this.addForm.parentId) } else { this.addRoleTitle = '编辑角色' this.addForm.name = row.name