Commit dde24f60 by zhaochengxiang

bug fix

parent 3f1d16ff
......@@ -85,7 +85,7 @@ const AssetAction = (props) => {
width: 170,
fixed: 'right',
render: (_, record) => {
return !readonly && (reference===AssetManageReference||canEdit) ? <Space>
return <Space>
<Button
size='small'
onClick={() => {
......@@ -120,7 +120,7 @@ const AssetAction = (props) => {
取消关联
</Button>
}
</Space>: null;
</Space>
}
}
......@@ -384,15 +384,16 @@ const AssetAction = (props) => {
});
}
if (reference===AssetManageReference || (reference!==AssetDraftReference&&canEdit)) {
if (!readonly &&
(reference===AssetManageReference||(reference!==AssetDraftReference&&canEdit))
) {
newCols.push(actionCol)
}
return newCols
}
return []
}, [assets, columns, actionCol, canEdit, metadataColumnList, reference, permissionId])
}, [assets, columns, actionCol, canEdit, metadataColumnList, reference, permissionId, readonly])
useEffect(() => {
getSystems();
......
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