Browse Source

(*)元数据数据源信息,定时任务采集时有该值

master
peng.peng 2 years ago
parent
commit
42389762ec
  1. 6
      scripts/0.0.7/02_alter_t_data_source&t_metadata_database.sql
  2. 4
      web/client/src/sections/metadataManagement/containers/metadataDetails.js

6
scripts/0.0.7/02_alter_t_data_source.sql → scripts/0.0.7/02_alter_t_data_source&t_metadata_database.sql

@ -7,3 +7,9 @@ alter table t_data_source
add type enum_datasource_type;
comment on column t_data_source.type is '数据源类型';
alter table t_metadata_database
add datasource_config jsonb;
comment on column t_metadata_database.datasource_config is '元数据数据源信息,定时任务采集时有该值 手动创建的元数据没有';

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

@ -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 }}

Loading…
Cancel
Save