| | |
| | | /* eslint-disable */ |
| | | import React from 'react'; |
| | | import ReactDOM from 'react-dom'; |
| | | import './index.css'; |
| | |
| | | // 引进页面(pages) |
| | | import Index from './pages/Index'; |
| | | import Login from './pages/login/login'; |
| | | import JurisdictionPersonMgt from './pages/collect/jurisdictionPersonMgt'; //信息采集--辖区人口管理 |
| | | import Workbench from './pages/index/workbench'; //首页--工作台 |
| | | import System from './pages/index/System'; //首页--工作制度 |
| | | import Announcement from './pages/index/Announcement'; //全部通知 |
| | | |
| | | |
| | | |
| | | import DocumentEdit from './pages/document/DocumentEdit'; //新建文档 |
| | | import DocumentDetail from './pages/document/DocumentDetail'; //文档详情 |
| | | import BrowseLog from './pages/logManage/browseLog'; //浏览日志 |
| | | import OperLog from './pages/logManage/operLog'; //操作日志 |
| | | import Rawler from './pages/logManage/Rawler'; //爬虫词条管理 |
| | | import Information from './pages/personal/information'; //个人信息 |
| | | |
| | | |
| | | // 基础平台 |
| | | import UserManage from './components/page/basicConfig/UserManage';//用户管理 |
| | | |
| | | const { Content } = Layout; |
| | | const history = createHashHistory(); |
| | |
| | | </Switch> |
| | | <Content> |
| | | <Switch> |
| | | {/* 新建文档 */} |
| | | <Route path="/document/create" component={DocumentEdit} /> |
| | | {/* 基础平台 */} |
| | | <Route path="/baseManage/user" component={UserManage} /> |
| | | |
| | | {/* 新建文档 */} |
| | | <Route path="/document/create/:id?" component={DocumentEdit} /> |
| | | {/* 文档、通知详情 */} |
| | | <Route path="/document/detail/:id" component={DocumentDetail} /> |
| | | |
| | | {/* 全部通知 */} |
| | | <Route path="/index/workbench/announcement" component={Announcement} /> |
| | | {/* 首页 */} |
| | | <Route path="/index/workbench" component={Workbench} /> |
| | | <Route |
| | | path="/index/workbench/announcement" |
| | | component={Announcement} |
| | | /> |
| | | {/* 规章制度 */} |
| | | <Route path="/index/system" component={System} /> |
| | | <Route path="/index/rules" component={System} /> |
| | | {/* 首页 */} |
| | | <Route path="/index" component={Workbench} /> |
| | | |
| | | {/* 浏览日志 */} |
| | | <Route path="/logManage/browseLog" component={BrowseLog} /> |
| | | {/* 操作日志 */} |
| | | <Route path="/logManage/operLog" component={OperLog} /> |
| | | {/* 爬虫词条管理 */} |
| | | <Route path="/logManage/rawler" component={Rawler} /> |
| | | {/* 个人信息 */} |
| | | <Route path="/personal/information" component={Information} /> |
| | | |
| | | |
| | | |
| | | |
| | | {/* 登录页 */} |
| | | <Route path="/login" component={Login} /> |
| | | <Route path="/" component={Workbench} /> |
| | | |
| | | <Route path="/" component={Index} /> |
| | | {/* 路由的页面重定向 */} |
| | | <Redirect to="/" component={Index} /> |
| | | <Redirect to="/" component={Workbench} /> |
| | | </Switch> |
| | | </Content> |
| | | </Layout> |