权限
This commit is contained in:
@@ -52,23 +52,27 @@ const CompanyListForm: React.FC = () => {
|
|||||||
fixed: tableFixedByPhone('left'),
|
fixed: tableFixedByPhone('left'),
|
||||||
render: (_, item) => (
|
render: (_, item) => (
|
||||||
<GapBox>
|
<GapBox>
|
||||||
<Button
|
{auth.SF_ADMIN_COMPANY_EDIT && (
|
||||||
type='primary'
|
<Button
|
||||||
onClick={() => {
|
type='primary'
|
||||||
CompanyEditModalRef.current?.show(item);
|
onClick={() => {
|
||||||
}}
|
CompanyEditModalRef.current?.show(item);
|
||||||
>
|
}}
|
||||||
编辑
|
>
|
||||||
</Button>
|
编辑
|
||||||
<Button
|
</Button>
|
||||||
type='text'
|
)}
|
||||||
onClick={() => {
|
{auth.SF_ADMIN_USER_VIEW && (
|
||||||
//nav(`user/list?company_id=${item.company_id}`);
|
<Button
|
||||||
location.href = `#/user/list?company_id=${item.company_id}`;
|
type='text'
|
||||||
}}
|
onClick={() => {
|
||||||
>
|
//nav(`user/list?company_id=${item.company_id}`);
|
||||||
查看
|
location.href = `#/user/list?company_id=${item.company_id}`;
|
||||||
</Button>
|
}}
|
||||||
|
>
|
||||||
|
查看
|
||||||
|
</Button>
|
||||||
|
)}
|
||||||
</GapBox>
|
</GapBox>
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user