Commit 2d6a140f by zhaochengxiang

资产编辑权限

parent 5b21ed3b
...@@ -548,7 +548,7 @@ const AssetAction = (props) => { ...@@ -548,7 +548,7 @@ const AssetAction = (props) => {
</div> </div>
} }
{ {
readOnly && <div className='flex' style={{ justifyContent: 'right' }}> readOnly && app?.user?.roles && (app?.user?.roles?.indexOf('ROLE_dataAsset_editor') !== -1) && <div className='flex' style={{ justifyContent: 'right' }}>
{ {
currentAction==='detail' ? <Button type='primary' onClick={onActionButtonClick}>编辑</Button> : <Space> currentAction==='detail' ? <Button type='primary' onClick={onActionButtonClick}>编辑</Button> : <Space>
<Button type='primary' onClick={onCancelButtonClick}>取消</Button> <Button type='primary' onClick={onCancelButtonClick}>取消</Button>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment