6 changed files with 68 additions and 17 deletions
			
			
		| @ -0,0 +1,37 @@ | |||||
|  | 'use strict'; | ||||
|  | import React, { useEffect, useRef } from 'react'; | ||||
|  | import { connect } from 'react-redux'; | ||||
|  | import { push } from 'react-router-redux'; | ||||
|  | import { Form, Button, Toast, Table } from '@douyinfe/semi-ui'; | ||||
|  | import { IconLock, IconUser } from '@douyinfe/semi-icons'; | ||||
|  | 
 | ||||
|  | const GatewayManage = props => { | ||||
|  |     const { dispatch, user, error, actions, apiRoot, isRequesting } = props | ||||
|  | 
 | ||||
|  | 
 | ||||
|  |     useEffect(() => { | ||||
|  | 
 | ||||
|  | 
 | ||||
|  | 
 | ||||
|  | 
 | ||||
|  |     }, []) | ||||
|  | 
 | ||||
|  |     return ( | ||||
|  |         <div style={{}}> | ||||
|  |             网关设备列表 | ||||
|  |         </div> | ||||
|  |     ); | ||||
|  | } | ||||
|  | 
 | ||||
|  | function mapStateToProps(state) { | ||||
|  |     const { auth, global } = state; | ||||
|  |     return { | ||||
|  |         user: auth.user, | ||||
|  |         error: auth.error, | ||||
|  |         actions: global.actions, | ||||
|  |         apiRoot: global.apiRoot, | ||||
|  |         isRequesting: auth.isRequesting | ||||
|  |     } | ||||
|  | } | ||||
|  | 
 | ||||
|  | export default connect(mapStateToProps)(GatewayManage); | ||||
| @ -1,4 +1,5 @@ | |||||
| 'use strict'; | 'use strict'; | ||||
| import Administer from './administer.jsx'; | import EditionManage from './administer'; | ||||
|  | import GatewayManage from './gateway'; | ||||
| 
 | 
 | ||||
| export { Administer }; | export { EditionManage, GatewayManage }; | ||||
| @ -1,11 +1,15 @@ | |||||
| import React from 'react'; | import React from 'react'; | ||||
| import { IconCode } from '@douyinfe/semi-icons'; | import { IconCheckList } from '@douyinfe/semi-icons'; | ||||
| 
 | 
 | ||||
| export function getNavItem(user, dispatch) { | export function getNavItem(user, dispatch) { | ||||
|    return ( |    return ( | ||||
|       [ |       [ | ||||
|          { |          { | ||||
|             itemKey: 'edition', text: '版本管理', icon: <IconCode />, to: '/edition', |             itemKey: 'edgeGateway', text: '网关管理', to: '/edgeGateway/gateway', icon: <IconCheckList />, | ||||
|  |             items: [ | ||||
|  |                { itemKey: 'gateway', to: '/edgeGateway/gateway', text: '设备列表' }, | ||||
|  |                { itemKey: 'edition', to: '/edgeGateway/edition', text: '版本管理' } | ||||
|  |             ], | ||||
|          }, |          }, | ||||
|       ] |       ] | ||||
|    ); |    ); | ||||
|  | |||||
| @ -1,15 +1,24 @@ | |||||
| 'use strict'; | 'use strict'; | ||||
| 
 | 
 | ||||
| import { Administer } from './containers'; | import { EditionManage, GatewayManage } from './containers'; | ||||
| 
 | 
 | ||||
| export default [ | export default [ | ||||
|     { |     { | ||||
|         type: 'inner', |         type: 'inner', | ||||
|         route: { |         route: { | ||||
|  |             key: 'edgeGateway', | ||||
|  |             path: "/edgeGateway", | ||||
|  |             childRoutes: [{ | ||||
|  |                 path: '/edition', | ||||
|                 key: 'edition', |                 key: 'edition', | ||||
|             path: "/edition", |  | ||||
|                 breadcrumb: '版本管理', |                 breadcrumb: '版本管理', | ||||
|             component: Administer, |                 component: EditionManage | ||||
|  |             }, { | ||||
|  |                 path: '/gateway', | ||||
|  |                 key: 'gateway', | ||||
|  |                 breadcrumb: '网关管理', | ||||
|  |                 component: GatewayManage | ||||
|  |             }] | ||||
|         } |         } | ||||
|     } |     } | ||||
| ]; | ]; | ||||
					Loading…
					
					
				
		Reference in new issue