diff --git a/web/client/src/sections/metadataManagement/containers/databasesTable.js b/web/client/src/sections/metadataManagement/containers/databasesTable.js index 55ddb01..800672f 100644 --- a/web/client/src/sections/metadataManagement/containers/databasesTable.js +++ b/web/client/src/sections/metadataManagement/containers/databasesTable.js @@ -36,7 +36,7 @@ const DatabaseTable = (props) => { }, [resourceCatalogId]); const initData = (query = {}) => { - dispatch(metadataManagement.getMetadataDatabases({ resourceId: params?.resourceId, catalog: resourceCatalogId, keywords, orderBy: 'createAt', ...query })).then(res => { + dispatch(metadataManagement.getMetadataDatabases({ resourceId: params?.type == 'databases' ? params?.resourceId : null, catalog: resourceCatalogId, keywords, orderBy: 'createAt', ...query })).then(res => { if (res.success) { setTableData(res.payload.data.rows); setTableDataCount(res.payload.data.count); diff --git a/web/client/src/sections/metadataManagement/containers/filesTable.js b/web/client/src/sections/metadataManagement/containers/filesTable.js index a0e7ca2..a7ae2d6 100644 --- a/web/client/src/sections/metadataManagement/containers/filesTable.js +++ b/web/client/src/sections/metadataManagement/containers/filesTable.js @@ -37,7 +37,7 @@ const FilesTable = (props) => { }, []); const initData = (query = {}) => { - dispatch(metadataManagement.getMetadataFiles({ resourceId: params?.resourceId, catalog: resourceCatalogId, keywords, orderBy: 'updateAt', ...query })).then(res => { + dispatch(metadataManagement.getMetadataFiles({ resourceId: params?.type == 'files' ? params?.resourceId : null, catalog: resourceCatalogId, keywords, orderBy: 'updateAt', ...query })).then(res => { if (res.success) { setTableData(res.payload.data.rows); setTableDataCount(res.payload.data.count); diff --git a/web/client/src/sections/metadataManagement/containers/restapisTable.js b/web/client/src/sections/metadataManagement/containers/restapisTable.js index 2779b8d..af6c907 100644 --- a/web/client/src/sections/metadataManagement/containers/restapisTable.js +++ b/web/client/src/sections/metadataManagement/containers/restapisTable.js @@ -28,7 +28,7 @@ const RestapisTable = (props) => { }, []); const initData = (query = {}) => { - dispatch(metadataManagement.getMetadataRestapis({ resourceId: params?.resourceId, catalog: resourceCatalogId, keywords, ...query })).then(res => { + dispatch(metadataManagement.getMetadataRestapis({ resourceId: params?.type == 'restapis' ? params?.resourceId : null, catalog: resourceCatalogId, keywords, ...query })).then(res => { if (res.success) { setTableData(res.payload.data.rows); setTableDataCount(res.payload.data.count); diff --git a/web/client/src/sections/resourceRetrieval/containers/retrieval.js b/web/client/src/sections/resourceRetrieval/containers/retrieval.js index 84c124e..3edb9db 100644 --- a/web/client/src/sections/resourceRetrieval/containers/retrieval.js +++ b/web/client/src/sections/resourceRetrieval/containers/retrieval.js @@ -92,7 +92,7 @@ function Retrieval(props) { return !result?.rows ?
数据资源检索
- { setKeywords(firstInput) }} style={{ color: '#fff' }}>搜索一下
} + { setKeywords(firstInput) }} style={{ color: '#fff', cursor: 'pointer' }}>搜索一下} style={{ width: '40%', marginLeft: 10, marginBottom: 30 }} onChange={e => { setFirstInput(e.target.value) }} onPressEnter={e => { setKeywords(e.target.value) }}