Commit 1245dced by zhaochengxiang

资产管理目录增加统计

parent 7a549653
......@@ -66,7 +66,7 @@ const AssetItem = (props) => {
overlayClassName='tooltip-common'
title={(typeof metadata==='string') ? (content||'') : <div style={{ width: 500, maxHeight: 300, overflow: 'auto' }}>
<Table
dataSource={metadata.columnItems||[]}
dataSource={metadata?.columnItems||[]}
columns={cols}
loading={false}
pagination={false}
......
......@@ -565,11 +565,19 @@ const AssetTree = (props) => {
{beforeStr}
<span className="site-tree-search-value">{keyword}</span>
{afterStr}
{
reference === AssetManageReference && <span>{` (${item.dataAssetAndSubDirCount})`}</span>
}
</span>
) : (
<span
className={isRootLeaf?'title-color': 'text-color'}
>{item.text}</span>
>
{item.text}
{
reference === AssetManageReference && <span>{` (${item.dataAssetAndSubDirCount})`}</span>
}
</span>
);
if (item.children) {
return { ...item, ...{title, key: item.nodeId, children: loop(item.children, false)} };
......
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