Commit 25bdfd93 by zhaochengxiang

资产增加来源

parent 44c870e6
...@@ -242,7 +242,7 @@ const AssetTable = (props) => { ...@@ -242,7 +242,7 @@ const AssetTable = (props) => {
if (typeof metadata==='string') { if (typeof metadata==='string') {
_content = metadata; _content = metadata;
} else { } else {
(metadata.columnItems||[]).forEach((item, index) => { (metadata?.columnItems||[]).forEach((item, index) => {
_content += ((index===0)?'':',') + item.metadataColumnName||''; _content += ((index===0)?'':',') + item.metadataColumnName||'';
}) })
} }
......
...@@ -24,10 +24,10 @@ const MetadataInfo = ({ value = '', config = true }) => { ...@@ -24,10 +24,10 @@ const MetadataInfo = ({ value = '', config = true }) => {
message: 'data-govern-show-metadata-message', message: 'data-govern-show-metadata-message',
data: metadata data: metadata
}) })
}} style={{ marginRight: 5, marginTop: 5 }}>{metadata?.tableName||''} }} style={{ marginRight: 5, marginTop: config?5:0 }}>{metadata?.tableName||''}
</a> </a>
{ {
metadata?.columnItems.map((item, index) => { (metadata?.columnItems||[]).map((item, index) => {
return <span key={index}>{item.metadataColumnName||''}</span> return <span key={index}>{item.metadataColumnName||''}</span>
}) })
} }
......
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