Refactor(BaseManagement): Support recompile
This commit is contained in:
@@ -169,18 +169,18 @@ const Base = () => {
|
|||||||
)}
|
)}
|
||||||
</>
|
</>
|
||||||
),
|
),
|
||||||
width: '12em',
|
width: '14em',
|
||||||
align: 'center',
|
align: 'center',
|
||||||
render: (_, record) => (
|
render: (_, record) => (
|
||||||
<>
|
<>
|
||||||
<AntdSpace size={'middle'}>
|
<AntdSpace size={'middle'}>
|
||||||
{!record.compiled && !Object.keys(hasEdited).length && (
|
{!Object.keys(hasEdited).length && (
|
||||||
<Permission operationCode={['system:tool:modify:base']}>
|
<Permission operationCode={['system:tool:modify:base']}>
|
||||||
<a
|
<a
|
||||||
style={{ color: COLOR_PRODUCTION }}
|
style={{ color: COLOR_PRODUCTION }}
|
||||||
onClick={handleOnCompileBtnClick(record)}
|
onClick={handleOnCompileBtnClick(record)}
|
||||||
>
|
>
|
||||||
编译
|
{record.compiled ? '重新编译' : '编译'}
|
||||||
</a>
|
</a>
|
||||||
</Permission>
|
</Permission>
|
||||||
)}
|
)}
|
||||||
|
|||||||
Reference in New Issue
Block a user