17 changed files with 30 additions and 80 deletions
			
			
		| @ -1,6 +1,8 @@ | |||
| 'use strict'; | |||
| 
 | |||
| import * as member from './member'; | |||
| import * as organization from './organization'; | |||
| export default { | |||
|     ...member | |||
|     ...member, | |||
|     ...organization | |||
| } | |||
| @ -1,5 +1,5 @@ | |||
| 'use strict'; | |||
| 
 | |||
| import MemberManagement from './member'; | |||
| 
 | |||
| export { MemberManagement }; | |||
| import Organization from './organization'; | |||
| export { MemberManagement, Organization }; | |||
|  | |||
| @ -1,17 +1,22 @@ | |||
| 'use strict'; | |||
| import { MemberManagement } from './containers'; | |||
| import { MemberManagement, Organization } from './containers'; | |||
| export default [{ | |||
|     type: 'inner', | |||
|     route: { | |||
|         path: '/memberManagement', | |||
|         key: 'memberManagement', | |||
|         breadcrumb: '用户管理', | |||
|         breadcrumb: '统一用户管理', | |||
|         // 不设置 component 则面包屑禁止跳转
 | |||
|         childRoutes: [{ | |||
|             path: '/auth', | |||
|             key: 'auth', | |||
|             component: MemberManagement, | |||
|             breadcrumb: '权限管理' | |||
|             breadcrumb: '用户管理' | |||
|         }, { | |||
|             path: '/organization', | |||
|             key: 'organization', | |||
|             component: MemberManagement, | |||
|             breadcrumb: '机构管理' | |||
|         }] | |||
|     } | |||
| }]; | |||
| @ -1,6 +1,6 @@ | |||
| 'use strict'; | |||
| 
 | |||
| import * as member from './organization'; | |||
| import * as member from '../../memberManagement/actions/organization'; | |||
| export default { | |||
|     ...member | |||
| } | |||
| @ -1,5 +0,0 @@ | |||
| 'use strict'; | |||
| 
 | |||
| import Organization from './organization'; | |||
| 
 | |||
| export { Organization }; | |||
| @ -1,5 +0,0 @@ | |||
| .protable-title { | |||
|     margin-bottom: 16px; | |||
|     padding-left: 24px; | |||
|     padding-right: 24px; | |||
| } | |||
| @ -1,15 +0,0 @@ | |||
| 'use strict'; | |||
| 
 | |||
| import reducers from './reducers'; | |||
| import routes from './routes'; | |||
| import actions from './actions'; | |||
| import { getNavItem } from './nav-item'; | |||
| 
 | |||
| export default { | |||
|     key: 'organization', | |||
|     name: '机构管理', | |||
|     reducers: reducers, | |||
|     routes: routes, | |||
|     actions: actions, | |||
|     getNavItem: getNavItem | |||
| }; | |||
| @ -1,20 +0,0 @@ | |||
| import React from 'react'; | |||
| import { Link } from 'react-router-dom'; | |||
| import { Menu } from 'antd'; | |||
| import { UserOutlined } from '@ant-design/icons'; | |||
| const SubMenu = Menu.SubMenu; | |||
| 
 | |||
| export function getNavItem(user) { | |||
| 
 | |||
|     return ( | |||
|         user?.username == 'SuperAdmin' && <Menu.Item icon={<UserOutlined />} key="organization"> | |||
|             <Link to="/organization">机构管理</Link> | |||
|         </Menu.Item> | |||
|         // user?.role == '系统管理员' && <SubMenu key="memberManagement" icon={<UserOutlined />} title='用户管理'>
 | |||
|         //     <Menu.Item key="auth">
 | |||
|         //         <Link to="/memberManagement/auth">用户权限</Link>
 | |||
|         //     </Menu.Item>
 | |||
|         // </ SubMenu >
 | |||
|     ) | |||
| 
 | |||
| } | |||
| @ -1,5 +0,0 @@ | |||
| 'use strict'; | |||
| 
 | |||
| export default { | |||
| 
 | |||
| } | |||
| @ -1,12 +0,0 @@ | |||
| 'use strict'; | |||
| import { Organization } from './containers'; | |||
| export default [{ | |||
|     type: 'inner', | |||
|     route: { | |||
|         path: '/organization', | |||
|         key: 'organization', | |||
|         breadcrumb: '机构管理', | |||
|         component: Organization, | |||
| 
 | |||
|     } | |||
| }]; | |||
					Loading…
					
					
				
		Reference in new issue