权限
This commit is contained in:
@@ -52,6 +52,7 @@ const CompanyListForm: React.FC = () => {
|
|||||||
fixed: tableFixedByPhone('left'),
|
fixed: tableFixedByPhone('left'),
|
||||||
render: (_, item) => (
|
render: (_, item) => (
|
||||||
<GapBox>
|
<GapBox>
|
||||||
|
{auth.SF_ADMIN_COMPANY_EDIT && (
|
||||||
<Button
|
<Button
|
||||||
type='primary'
|
type='primary'
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
@@ -60,6 +61,8 @@ const CompanyListForm: React.FC = () => {
|
|||||||
>
|
>
|
||||||
编辑
|
编辑
|
||||||
</Button>
|
</Button>
|
||||||
|
)}
|
||||||
|
{auth.SF_ADMIN_USER_VIEW && (
|
||||||
<Button
|
<Button
|
||||||
type='text'
|
type='text'
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
@@ -69,6 +72,7 @@ const CompanyListForm: React.FC = () => {
|
|||||||
>
|
>
|
||||||
查看
|
查看
|
||||||
</Button>
|
</Button>
|
||||||
|
)}
|
||||||
</GapBox>
|
</GapBox>
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user