Commit 5d922629 by zhaochengxiang

资产浏览显示来源

parent 98764dcc
......@@ -41,7 +41,7 @@ const AssetTable = (props) => {
const actionColumn = {
title: '操作',
key: 'action',
width: 190,
width: readOnly?60:190,
fixed: 'right',
render: (_,record) => {
......@@ -69,6 +69,8 @@ const AssetTable = (props) => {
</Tooltip>
}
</AppContext.Consumer>
{
!readOnly && <React.Fragment>
<div>
<Divider type='vertical' />
</div>
......@@ -102,6 +104,8 @@ const AssetTable = (props) => {
>
{ (nodeType==='RecycleBin')?'挂载':'变更' }
</Button>
</React.Fragment>
}
</div>
)
}
......@@ -265,11 +269,7 @@ const AssetTable = (props) => {
})
setAssets([]);
if (readOnly) {
setColumns(_columns);
} else {
setColumns([..._columns, actionColumn]);
}
getDataAssets(_metadataIndex);
......
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