|
|
@ -108,10 +108,10 @@ const MetadataDetails = (props) => { |
|
|
|
|
|
|
|
return databasesRecord && (ConfigurableTypes['表'].includes(databasesRecord.type) || databasesRecord.type === '视图') ? null : <Spin spinning={isRequesting}> |
|
|
|
<div style={{ marginBottom: 16 }}> |
|
|
|
<Button type='primary' onClick={() => { |
|
|
|
{user?.role == '系统管理员' && <Button type='primary' onClick={() => { |
|
|
|
setEditData({ add: true, title: '新建库表元数据', record: { path: '/' + resourceCatalogPath.join('/'), type: ConfigurableTypes[databasesRecord.type][0] } }); |
|
|
|
setModalVisible(true); |
|
|
|
}}>新建</Button> |
|
|
|
}}>新建</Button>} |
|
|
|
</div> |
|
|
|
<Table |
|
|
|
scroll={{ y: clientHeight - 320 }} |
|
|
|