This commit is contained in:
2026-01-23 16:40:39 +08:00
parent 8825b8f23c
commit c84d4f74a6

View File

@@ -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>
), ),
}, },