|
@ -60,14 +60,20 @@ export function postOrganizationUser (data) {//添加/编辑成员 |
|
|
reducer: { name: "" }, |
|
|
reducer: { name: "" }, |
|
|
}); |
|
|
}); |
|
|
} |
|
|
} |
|
|
export function deteleOrganizationAdmin(orgId) { |
|
|
export function deteleOrganizationAdmin(data) { |
|
|
|
|
|
let pomsUserId = '' |
|
|
|
|
|
let msg = '' |
|
|
|
|
|
if (data) { |
|
|
|
|
|
pomsUserId = data.id |
|
|
|
|
|
msg=data.msg |
|
|
|
|
|
} |
|
|
return (dispatch) => |
|
|
return (dispatch) => |
|
|
basicAction({ |
|
|
basicAction({ |
|
|
type: "del", |
|
|
type: "del", |
|
|
dispatch: dispatch, |
|
|
dispatch: dispatch, |
|
|
actionType: "DEL_ORGANIZATION_ADMIN", |
|
|
actionType: "DEL_ORGANIZATION_ADMIN", |
|
|
url: `${ApiTable.deteleOrganizationAdmin.replace("{pomsUserId}", orgId)}`, |
|
|
url: `${ApiTable.deteleOrganizationAdmin.replace("{pomsUserId}", pomsUserId)}`, |
|
|
msg: { option: "删除管理员" }, //删除管理员
|
|
|
msg: { option: msg }, //删除管理员
|
|
|
reducer: {}, |
|
|
reducer: {}, |
|
|
}); |
|
|
}); |
|
|
} |
|
|
} |