| | |
| | | import type { ReactNode } from 'react'; |
| | | import { |
| | | ApartmentOutlined, |
| | | AppstoreOutlined, |
| | | ContactsOutlined, |
| | | DashboardOutlined, |
| | | ProfileOutlined, |
| | | SettingOutlined, |
| | | SafetyCertificateOutlined, |
| | | SafetyOutlined, |
| | | TeamOutlined, |
| | | UnorderedListOutlined, |
| | | } from '@ant-design/icons'; |
| | | import Customers from '@/pages/business/customers'; |
| | | import Orders from '@/pages/business/orders'; |
| | | import CustomerList from '@/pages/customers/list'; |
| | | import Dashboard from '@/pages/dashboard'; |
| | | import Departments from '@/pages/system/departments'; |
| | | import Roles from '@/pages/system/roles'; |
| | | import Users from '@/pages/system/users'; |
| | | |
| | | export interface AppRouteItem { |
| | |
| | | element: <Dashboard />, |
| | | }, |
| | | { |
| | | path: '/customers', |
| | | title: '客户管理', |
| | | icon: <ContactsOutlined />, |
| | | children: [ |
| | | { |
| | | path: '/customers/list', |
| | | title: '客户列表', |
| | | icon: <UnorderedListOutlined />, |
| | | element: <CustomerList />, |
| | | }, |
| | | ], |
| | | }, |
| | | { |
| | | path: '/system', |
| | | title: '系统管理', |
| | | icon: <SettingOutlined />, |
| | | title: '用户与权限', |
| | | icon: <SafetyCertificateOutlined />, |
| | | children: [ |
| | | { |
| | | path: '/system/users', |
| | | title: '用户管理', |
| | | icon: <TeamOutlined />, |
| | | element: <Users />, |
| | | }, |
| | | { |
| | | path: '/system/roles', |
| | | title: '角色管理', |
| | | icon: <SafetyOutlined />, |
| | | element: <Roles />, |
| | | }, |
| | | { |
| | | path: '/system/departments', |
| | | title: '部门管理', |
| | | icon: <ApartmentOutlined />, |
| | | element: <Departments />, |
| | | }, |
| | | ], |
| | | }, |
| | |
| | | title: '订单管理', |
| | | icon: <ProfileOutlined />, |
| | | element: <Orders />, |
| | | }, |
| | | { |
| | | path: '/business/customers', |
| | | title: '客户管理', |
| | | icon: <ContactsOutlined />, |
| | | element: <Customers />, |
| | | }, |
| | | ], |
| | | }, |