|
|
@ -78,7 +78,7 @@ |
|
|
|
<div class="ns-table-title ns-title-extra-box">角色管理</div> |
|
|
|
<a-row> |
|
|
|
<a-col :span="8" class="tree"> |
|
|
|
<a-space wrap style="margin-bottom: 16px"> |
|
|
|
<a-space wrap style="margin-bottom: 16px; justify-content: flex-start"> |
|
|
|
<ns-button type="primary" @click="rolePipe(addUser, true)"> 新增角色 </ns-button> |
|
|
|
<ns-button type="primary" @click="rolePipe(addUserSon)">新增子角色</ns-button> |
|
|
|
<ns-button type="primary" @click="rolePipe(deleteUser)"> 删除 </ns-button> |
|
|
@ -366,12 +366,22 @@ |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
const addApartmentSon = () => { |
|
|
|
const getParent = (data) => { |
|
|
|
if (data?.parent) { |
|
|
|
getParent(data.parent); |
|
|
|
} else { |
|
|
|
data; |
|
|
|
} |
|
|
|
}; |
|
|
|
|
|
|
|
const addApartmentSon = (data) => { |
|
|
|
const { deptInfo } = data; |
|
|
|
|
|
|
|
disabled.value = false; |
|
|
|
opMap.type = 'addson'; |
|
|
|
formData.value = {}; |
|
|
|
let sourceOrgId = ''; |
|
|
|
if (!currentOrgRef.value?.own && orgId !== selectRef.value.deptInfo?.orgId) { |
|
|
|
if (deptInfo.orgId !== orgId) { |
|
|
|
sourceOrgId = orgId; |
|
|
|
} |
|
|
|
opMap.fuc = (params) => { |
|
|
@ -380,7 +390,7 @@ |
|
|
|
...params, |
|
|
|
orgId, |
|
|
|
projectId, |
|
|
|
pdeptId: selectRef.value.deptInfo.deptId, |
|
|
|
pdeptId: deptInfo.deptId, |
|
|
|
sourceOrgId, |
|
|
|
// deptName: selectRef.value.deptInfo.deptName, |
|
|
|
}); |
|
|
|