权限
This commit is contained in:
@@ -61,23 +61,27 @@ const GrpListForm: React.FC = () => {
|
||||
<GapBox>
|
||||
{item?.group_id != 1 && (
|
||||
<>
|
||||
<Button
|
||||
type='primary'
|
||||
onClick={() => {
|
||||
AdminGrpEditModalRef.current?.show(item);
|
||||
}}
|
||||
>
|
||||
编辑
|
||||
</Button>
|
||||
<Popconfirm
|
||||
placement='bottom'
|
||||
title='确认删除该岗位角色吗?'
|
||||
onConfirm={() => {
|
||||
deleteAdminGroupRequest(stringify({ group_id: item.group_id }));
|
||||
}}
|
||||
>
|
||||
<Button danger>删除</Button>
|
||||
</Popconfirm>
|
||||
{auth.SF_ADMIN_GROUP_EDIT && (
|
||||
<Button
|
||||
type='primary'
|
||||
onClick={() => {
|
||||
AdminGrpEditModalRef.current?.show(item);
|
||||
}}
|
||||
>
|
||||
编辑
|
||||
</Button>
|
||||
)}
|
||||
{auth.SF_ADMIN_GROUP_DEL && (
|
||||
<Popconfirm
|
||||
placement='top'
|
||||
title='确认删除该岗位角色吗?'
|
||||
onConfirm={() => {
|
||||
deleteAdminGroupRequest(stringify({ group_id: item.group_id }));
|
||||
}}
|
||||
>
|
||||
<Button danger>删除</Button>
|
||||
</Popconfirm>
|
||||
)}
|
||||
</>
|
||||
)}
|
||||
</GapBox>
|
||||
@@ -190,14 +194,16 @@ const GrpListForm: React.FC = () => {
|
||||
|
||||
<GapBox style={{ marginBottom: 12, justifyContent: 'space-between' }}>
|
||||
<GapBox>
|
||||
<Button
|
||||
type='primary'
|
||||
onClick={() => {
|
||||
AdminGrpEditModalRef.current?.show();
|
||||
}}
|
||||
>
|
||||
新增
|
||||
</Button>
|
||||
{auth.SF_ADMIN_GROUP_ADD && (
|
||||
<Button
|
||||
type='primary'
|
||||
onClick={() => {
|
||||
AdminGrpEditModalRef.current?.show();
|
||||
}}
|
||||
>
|
||||
新增
|
||||
</Button>
|
||||
)}
|
||||
</GapBox>
|
||||
<HeaderPagination
|
||||
style={{ marginBottom: 0, marginRight: 12 }}
|
||||
|
||||
Reference in New Issue
Block a user