Browse Source

库表元数据查看详情修改

master
zmh 2 years ago
parent
commit
6d59506078
  1. 6
      web/client/src/sections/metadataManagement/containers/metadataDetails.js

6
web/client/src/sections/metadataManagement/containers/metadataDetails.js

@ -55,8 +55,8 @@ const MetadataDetails = (props) => {
</div >
<Divider orientation="left" orientationMargin="5" plain>属性</Divider>
< div style={{ lineHeight: '35px', marginLeft: 32 }}>
{metadataModels && metadataModels.filter(mm => mm.modelType === databasesRecord.type).map(mm =>
<div > {mm.attributeName}<span style={{ color: '#7F7F7F' }}>{databasesRecord.attributesParam[mm.attributeCode]}</span></div>)}
{databasesRecord.attributesParam ? metadataModels && metadataModels.filter(mm => mm.modelType === databasesRecord.type).map(mm =>
<div > {mm.attributeName}<span style={{ color: '#7F7F7F' }}>{databasesRecord.attributesParam[mm.attributeCode]}</span></div>) : ''}
</div >
</div > : <></>
}
@ -105,7 +105,7 @@ const MetadataDetails = (props) => {
}
}];
return <Spin spinning={isRequesting}>
return databasesRecord && ConfigurableTypes['表'].includes(databasesRecord.type) ? null : <Spin spinning={isRequesting}>
<div style={{ marginBottom: 16 }}>
<Button type='primary' onClick={() => {
setEditData({ add: true, title: '新建库表元数据', record: { path: '/' + resourceCatalogPath.join('/'), type: ConfigurableTypes[databasesRecord.type][0] } });

Loading…
Cancel
Save