|
|
@ -253,6 +253,9 @@ function OrgnizationMgm() { |
|
|
|
img_url: data.img_url |
|
|
|
}) |
|
|
|
setImgUrl(data.img_url) |
|
|
|
|
|
|
|
handleControlTypeChange(data.control_type) |
|
|
|
|
|
|
|
setRoleCheckedKeys(data.role_auth ? data.role_auth.map((id) => Number(id)) : []) |
|
|
|
}).catch(err => { |
|
|
|
message.error(err) |
|
|
@ -359,11 +362,6 @@ function OrgnizationMgm() { |
|
|
|
return item |
|
|
|
}) |
|
|
|
} |
|
|
|
const formatAreaTree = (data, controlType) => { |
|
|
|
const copyData = [...data] |
|
|
|
recursionAreaTree(copyData, controlType) |
|
|
|
return copyData |
|
|
|
} |
|
|
|
|
|
|
|
const handleOrgConfirm = () => { |
|
|
|
orgForm.validateFields().then((data) => { |
|
|
|