Browse Source

(*)资源检索框架调整

master
zmh 2 years ago
parent
commit
6722960db1
  1. 7
      web/client/src/sections/resourceRetrieval/containers/results.js
  2. 10
      web/client/src/sections/resourceRetrieval/nav-item.js
  3. 15
      web/client/src/sections/resourceRetrieval/routes.js

7
web/client/src/sections/resourceRetrieval/containers/results.js

@ -1,7 +0,0 @@
import React, { useEffect, useState } from 'react'
function Results (props) {
return <>检索结果</>
}
export default Results

10
web/client/src/sections/resourceRetrieval/nav-item.js

@ -2,17 +2,11 @@ import React from 'react';
import { Link } from 'react-router-dom';
import { Menu } from 'antd';
import { FileSearchOutlined } from '@ant-design/icons';
const SubMenu = Menu.SubMenu;
export function getNavItem() {
return (
<SubMenu key="resourceRetrieval" icon={<FileSearchOutlined />} title='资源检索'>
<Menu.Item key="retrieval">
<Link to="/resourceRetrieval/retrieval">数据资源检索</Link>
<Menu.Item key="resourceRetrieval" icon={<FileSearchOutlined />}>
<Link to="/resourceRetrieval">资源检索</Link>
</Menu.Item>
<Menu.Item key="results">
<Link to="/resourceRetrieval/results">检索结果</Link>
</Menu.Item>
</ SubMenu >
);
}

15
web/client/src/sections/resourceRetrieval/routes.js

@ -1,22 +1,11 @@
'use strict';
import { Retrieval, Results } from './containers';
import { Retrieval } from './containers';
export default [{
type: 'inner',
route: {
path: '/resourceRetrieval',
key: 'resourceRetrieval',
breadcrumb: '资源消费',
// 不设置 component 则面包屑禁止跳转
childRoutes: [{
path: '/retrieval',
key: 'retrieval',
component: Retrieval,
breadcrumb: '数据资源检索'
}, {
path: '/results',
key: 'results',
component: Results,
breadcrumb: '检索结果'
}]
component: Retrieval
}
}];
Loading…
Cancel
Save