Commit d113ca65 by zhaochengxiang

元数据挂载资产

parent 8be981c6
...@@ -746,14 +746,14 @@ const AssetManageTree = (props) => { ...@@ -746,14 +746,14 @@ const AssetManageTree = (props) => {
); );
if (item.children && item.children.length>0) { if (item.children && item.children.length>0) {
return { ...item, ...{title, key: item.nodeId, disableCheckbox: (item.level!==3), children: loop(item.children, rootResourceType), className: (item.level===1)?'root':''} }; return { ...item, ...{title, key: item.nodeId, disableCheckbox: !item.allowdLoadDataAsset, children: loop(item.children, rootResourceType), className: (item.level===1)?'root':''} };
} }
if (rootResourceType !== 'custom') { if (rootResourceType !== 'custom') {
return { ...item, ...{ title, key: item.nodeId, disableCheckbox: (item.level!==3), isLeaf: true, className: (item.level===1)?'root':'' }}; return { ...item, ...{ title, key: item.nodeId, disableCheckbox: !item.allowdLoadDataAsset, isLeaf: true, className: (item.level===1)?'root':'' }};
} }
return { ...item, ...{ title, key: item.nodeId, disableCheckbox: (item.level!==3), children: null, className: (item.level===1)?'root':''}}; return { ...item, ...{ title, key: item.nodeId, disableCheckbox: !item.allowdLoadDataAsset, children: null, className: (item.level===1)?'root':''}};
}); });
const classes = classNames('asset-manage-tree', className, { const classes = classNames('asset-manage-tree', className, {
......
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