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: "" }, 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: {},
}); });
} }

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

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

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

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

Loading…
Cancel
Save