|
@ -57,7 +57,11 @@ function memberModal (props) { |
|
|
form.current |
|
|
form.current |
|
|
.validate() |
|
|
.validate() |
|
|
.then((values) => { |
|
|
.then((values) => { |
|
|
dispatch(install.postOrganizationUser({ role: values.role, pepUserId: values.pepUserId })).then((res) => {//获取项企(PEP)全部部门及其下用户 |
|
|
let roleArr=JSON.parse(JSON.stringify(values.role)) |
|
|
|
|
|
if (roleArr.indexOf('admin') != -1) { |
|
|
|
|
|
roleArr.splice(roleArr.indexOf('admin'),1) |
|
|
|
|
|
} |
|
|
|
|
|
dispatch(install.postOrganizationUser({ role: roleArr, pepUserId: values.pepUserId })).then((res) => {//获取项企(PEP)全部部门及其下用户 |
|
|
if(res.success){ |
|
|
if(res.success){ |
|
|
close(); |
|
|
close(); |
|
|
} |
|
|
} |
|
|