Commit a2bc073b authored by 皮倩雯's avatar 皮倩雯

fix: '修复机构管理-管理权限修改后,站点权限无法更新bug'

parent 9d819d1e
Pipeline #84346 passed with stages
...@@ -19,6 +19,7 @@ const RelateRoleModal = props => { ...@@ -19,6 +19,7 @@ const RelateRoleModal = props => {
multiRoleList, multiRoleList,
multistationList, multistationList,
mult, mult,
submitSearchUser,
} = props; } = props;
const { TabPane } = Tabs; const { TabPane } = Tabs;
const [roleValueList, setRoleValueList] = useState({}); // 勾选的角色列表 const [roleValueList, setRoleValueList] = useState({}); // 勾选的角色列表
...@@ -66,9 +67,10 @@ const RelateRoleModal = props => { ...@@ -66,9 +67,10 @@ const RelateRoleModal = props => {
if (res.code == 0) { if (res.code == 0) {
onCancel(); onCancel();
// 跳转到新组织机构下的用户表 // 跳转到新组织机构下的用户表
if (currentSelectOrg !== '-1') { // if (currentSelectOrg !== '-1') {
onSelect([currentSelectOrg]); // onSelect([currentSelectOrg]);
} // }
currentSelectOrg === '-1' ? submitSearchUser() : onSelect([currentSelectOrg]);
notification.success({ notification.success({
message: '提交成功', message: '提交成功',
duration: 2, duration: 2,
......
...@@ -1679,6 +1679,7 @@ const UserManage = () => { ...@@ -1679,6 +1679,7 @@ const UserManage = () => {
stationlist={stationlist} stationlist={stationlist}
multiRelateRoles={multiRelateRoles} multiRelateRoles={multiRelateRoles}
onSelect={onSelect} onSelect={onSelect}
submitSearchUser={submitSearchUser}
onCancel={() => { onCancel={() => {
setRoleVisible(false); setRoleVisible(false);
setMultiRelateRoles(false); setMultiRelateRoles(false);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment