|
|
@ -145,7 +145,7 @@ |
|
|
|
<ns-button type="primary" @click="CancelUser">取消</ns-button> |
|
|
|
<ns-button |
|
|
|
v-if="roleDisabled" |
|
|
|
:disabled="!roleTreeData?.length" |
|
|
|
:disabled="!selectRoleRef || !roleTreeData?.length" |
|
|
|
type="primary" |
|
|
|
@click="rolePipe(roleEdit, false, false)"> |
|
|
|
编辑 |
|
|
@ -501,6 +501,7 @@ |
|
|
|
roleFormData.value = {}; |
|
|
|
opMap.type = ''; |
|
|
|
opMap.fuc = ''; |
|
|
|
selectRoleRef.value = ''; |
|
|
|
roleDisabled.value = true; |
|
|
|
}; |
|
|
|
|
|
|
@ -627,6 +628,7 @@ |
|
|
|
roleActiveKey.value = 1; |
|
|
|
// 需要重置数据 |
|
|
|
clearDeptData(); |
|
|
|
clearRoleData(); |
|
|
|
const { selected } = info; |
|
|
|
if (!selectedKeys?.length) return; |
|
|
|
|
|
|
@ -686,7 +688,7 @@ |
|
|
|
roleFormData.value = cloneDeep(info.node.dataRef); |
|
|
|
roleCheckedKeys.value = []; |
|
|
|
if (selectRoleRef.value?.proleId) { |
|
|
|
// 查询子部门 |
|
|
|
// 查询子角色 |
|
|
|
getRolesonPermissionTree({ roleId: selectRoleRef.value?.proleId }); |
|
|
|
} else { |
|
|
|
getRolePermissionTree({ deptId: selectRef.value.deptInfo.deptId }); |
|
|
@ -723,6 +725,13 @@ |
|
|
|
deptPermission().then(() => { |
|
|
|
clearDeptData(); |
|
|
|
disabled.value = true; |
|
|
|
// 部门权限修改后更新角色树 |
|
|
|
if (selectRoleRef.value?.proleId) { |
|
|
|
// 查询子角色 |
|
|
|
getRolesonPermissionTree({ roleId: selectRoleRef.value?.proleId }); |
|
|
|
} else { |
|
|
|
getRolePermissionTree({ deptId: selectRef.value.deptInfo.deptId }); |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|
}; |
|
|
|