wuqun
2 years ago
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: 'edition', |
key: 'edgeGateway', |
||||
path: "/edition", |
path: "/edgeGateway", |
||||
breadcrumb: '版本管理', |
childRoutes: [{ |
||||
component: Administer, |
path: '/edition', |
||||
|
key: 'edition', |
||||
|
breadcrumb: '版本管理', |
||||
|
component: EditionManage |
||||
|
}, { |
||||
|
path: '/gateway', |
||||
|
key: 'gateway', |
||||
|
breadcrumb: '网关管理', |
||||
|
component: GatewayManage |
||||
|
}] |
||||
} |
} |
||||
} |
} |
||||
]; |
]; |
Loading…
Reference in new issue