Commit 25bdfd93 by zhaochengxiang

资产增加来源

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