Commit 1245dced by zhaochengxiang

资产管理目录增加统计

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