Browse Source

接口提示语修改

dev
deartibers 2 years ago
parent
commit
8a82fc82bc
  1. 12
      web/client/src/sections/install/actions/roles.js
  2. 2
      web/client/src/sections/install/components/adminModal.jsx
  3. 2
      web/client/src/sections/install/containers/roles.jsx

12
web/client/src/sections/install/actions/roles.js

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

2
web/client/src/sections/install/components/adminModal.jsx

@ -42,7 +42,7 @@ function adminModal (props) {
.validate()
.then((values) => {
if (adminEdit) {
dispatch(install.deteleOrganizationAdmin(editObj.id)).then(
dispatch(install.deteleOrganizationAdmin({id:editObj.id,msg:''})).then(
dispatch(install.postOrganizationUser({ role: ['admin'], pepUserId: values.pepUserId, msg: '修改管理员' })).then((res) => {//(PEP)
if (res.success) {
close();

2
web/client/src/sections/install/containers/roles.jsx

@ -400,7 +400,7 @@ const Roles = (props) => {
showArrow={true}
position="topRight"
onConfirm={() => {
dispatch(install.deteleOrganizationAdmin(item?.id)).then(() => getUserList())
dispatch(install.deteleOrganizationAdmin({id:item.id,msg:'删除管理员'})).then(() => getUserList())
}}
>
<div style={{ marginLeft: 4, cursor: "pointer", }}>

Loading…
Cancel
Save