Browse Source

(*)销售人员分布编辑删除权限控制

master
zmh 1 year ago
parent
commit
c451174172
  1. 6
      web/client/src/sections/humanAffairs/containers/salersDistribution/personnelDistribution.jsx

6
web/client/src/sections/humanAffairs/containers/salersDistribution/personnelDistribution.jsx

@ -181,12 +181,18 @@ const PersonnelDistribution = (props) => {
width: 120, width: 120,
render: (text, record) => { render: (text, record) => {
return <div> return <div>
{
isAuthorized('ADDSALESPERSONNEL') || isAuthorized('IMPORTSALESPERSONNELDISTRIBUTION') ?
<div>
<span style={{ color: '#1890FF', cursor: 'pointer' }} onClick={() => onEdit(record)}>编辑</span>&nbsp;&nbsp; <span style={{ color: '#1890FF', cursor: 'pointer' }} onClick={() => onEdit(record)}>编辑</span>&nbsp;&nbsp;
<Popconfirm <Popconfirm
title='提示' content="确认删除该销售人员信息?" position='topLeft' title='提示' content="确认删除该销售人员信息?" position='topLeft'
onConfirm={() => confirmDelete(record.pepUserId)} style={{ width: 330 }} onConfirm={() => confirmDelete(record.pepUserId)} style={{ width: 330 }}
> <span style={{ color: '#1890FF', cursor: 'pointer' }}>删除</span></Popconfirm> > <span style={{ color: '#1890FF', cursor: 'pointer' }}>删除</span></Popconfirm>
</div> </div>
: ""
}
</div>
} }
}]; }];

Loading…
Cancel
Save