Commit fe894532 authored by 陈前坚's avatar 陈前坚

fix: 查找用户批量关联机构id为空

parent ca1ddab2
......@@ -17,6 +17,7 @@ const RelateRoleModal = props => {
multiRelateRoles,
onCancel,
onSelect,
submitSearchUser,
loading,
} = props;
const { TabPane } = Tabs;
......@@ -81,8 +82,10 @@ const RelateRoleModal = props => {
.then(res => {
if (res.code === 0) {
onCancel();
// 跳转到组织
onSelect([currentSelectOrg]);
// 跳转到组织重新请求改机构下用户数据,查找用户时currentSelectOrg为空数组,不需要重新请求
if(currentSelectOrg.length!==0) {
onSelect([currentSelectOrg]);
};
notification.success({
message: '提交成功',
duration: 2,
......
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