Browse Source

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

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

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

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

Loading…
Cancel
Save