Browse Source

(*)资源检索定位功能完善

master
peng.peng 2 years ago
parent
commit
278841de55
  1. 2
      web/client/src/sections/metadataManagement/containers/databasesTable.js
  2. 2
      web/client/src/sections/metadataManagement/containers/filesTable.js
  3. 2
      web/client/src/sections/metadataManagement/containers/restapisTable.js
  4. 2
      web/client/src/sections/resourceRetrieval/containers/retrieval.js

2
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);

2
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);

2
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);

2
web/client/src/sections/resourceRetrieval/containers/retrieval.js

@ -92,7 +92,7 @@ function Retrieval(props) {
return !result?.rows ? <div className='search-container'>
<div className='title'>数据资源检索</div>
<Input addonAfter={<div onClick={() => { setKeywords(firstInput) }} style={{ color: '#fff' }}>搜索一下</div>}
<Input addonAfter={<div onClick={() => { setKeywords(firstInput) }} style={{ color: '#fff', cursor: 'pointer' }}>搜索一下</div>}
style={{ width: '40%', marginLeft: 10, marginBottom: 30 }}
onChange={e => { setFirstInput(e.target.value) }}
onPressEnter={e => { setKeywords(e.target.value) }}

Loading…
Cancel
Save