|
@ -211,7 +211,7 @@ const Roles = (props) => { |
|
|
theme="borderless" |
|
|
theme="borderless" |
|
|
style={{ color: '#F31C1C' }} |
|
|
style={{ color: '#F31C1C' }} |
|
|
onClick={() => { |
|
|
onClick={() => { |
|
|
dispatch(install.putOrganizationUser({ pomsUserId: row?.id, disabled: !row?.disabled })).then(() => getUserList()) |
|
|
dispatch(install.putOrganizationUser({ pomsUserId: row?.id, disabled: !row?.disabled,msg:'更新成员状态' })).then(() => getUserList()) |
|
|
}} |
|
|
}} |
|
|
> |
|
|
> |
|
|
已禁用 |
|
|
已禁用 |
|
@ -223,7 +223,7 @@ const Roles = (props) => { |
|
|
showArrow={true} |
|
|
showArrow={true} |
|
|
position="topRight" |
|
|
position="topRight" |
|
|
onConfirm={() => { |
|
|
onConfirm={() => { |
|
|
dispatch(install.putOrganizationUser({ pomsUserId: row?.id, disabled: !row?.disabled })).then(() => { |
|
|
dispatch(install.putOrganizationUser({ pomsUserId: row?.id, disabled: !row?.disabled,msg:'更新成员状态' })).then(() => { |
|
|
getUserList(); |
|
|
getUserList(); |
|
|
}) |
|
|
}) |
|
|
}} |
|
|
}} |
|
@ -247,7 +247,7 @@ const Roles = (props) => { |
|
|
showArrow={true} |
|
|
showArrow={true} |
|
|
position="topRight" |
|
|
position="topRight" |
|
|
onConfirm={() => { |
|
|
onConfirm={() => { |
|
|
dispatch(install.putOrganizationUser({ pomsUserId: row?.id, deleted: true })).then(() => { |
|
|
dispatch(install.putOrganizationUser({ pomsUserId: row?.id, deleted: true,msg:'删除成员' })).then(() => { |
|
|
if (page.current > 0 && mylimits.current < 2) { |
|
|
if (page.current > 0 && mylimits.current < 2) { |
|
|
setQuery({ limit: 10, page: page.current - 1 }) |
|
|
setQuery({ limit: 10, page: page.current - 1 }) |
|
|
} else { |
|
|
} else { |
|
@ -276,7 +276,6 @@ const Roles = (props) => { |
|
|
dispatch(install.getOrganizationDeps()).then((res) => {//获取项企(PEP)全部部门及其下用户 |
|
|
dispatch(install.getOrganizationDeps()).then((res) => {//获取项企(PEP)全部部门及其下用户 |
|
|
setPepList(res.payload.data) |
|
|
setPepList(res.payload.data) |
|
|
}) |
|
|
}) |
|
|
getUserList() |
|
|
|
|
|
}, []) |
|
|
}, []) |
|
|
function getUserList () { |
|
|
function getUserList () { |
|
|
let searchData = { ...query, role: roleChoose } |
|
|
let searchData = { ...query, role: roleChoose } |
|
|