export default [ { path: '/user', layout: false, routes: [ { name: 'login', path: '/user/login', component: './User/Login' } ] }, { path: '/', redirect: '/workbench' }, { path: '/account/settings', name: 'settings', hideInMenu: true, component: './User/Account/Settings' }, { path: '/workbench', name: 'workbench', icon: 'icon-chess', routes: [ { path: '/workbench', redirect: '/workbench/dashboard' }, { path: '/workbench/dashboard', name: 'dashboard', icon: 'icon-tachometer-alt', component: './Workbench/Dashboard', access: 'authPermDataFilter' } ] }, { path: '/customer', name: 'customer', icon: 'icon-address-book-o', routes: [ { path: '/customer', redirect: '/customer/client' }, { path: '/customer/client', name: 'client', icon: 'icon-address-book', component: './Customer/Client', access: 'authRouteFilter', validatePerm: true }, { path: '/customer/company', name: 'company', icon: 'icon-building', component: './Customer/Company', access: 'authRouteFilter', validatePerm: true }, { path: '/customer/business', name: 'business', icon: 'icon-usd-circle', component: './Customer/Business', access: 'authRouteFilter', validatePerm: true } // { // path: '/customer/test', // name: 'test', // icon: 'icon-usd-circle', // component: './Customer/Test' // } ] }, { path: '/product', name: 'product', icon: 'icon-box', routes: [ { path: '/product', redirect: '/product/lock' }, { path: '/product/lock', name: 'lock', icon: 'icon-magic', routes: [ { path: '/product/lock', redirect: '/product/lock/lockstore' }, { path: '/product/lock/lockstore', name: 'lockstore', component: './Product/Lock/LockStore', access: 'authRouteFilter', validatePerm: true } // { // path: '/product/lock/lockcount', // name: 'lockcount', // component: './Product/Lock/LockCount' // } ] }, { path: '/product/cloud', name: 'cloud', icon: 'icon-cloud', routes: [ { path: '/product/cloud', redirect: '/product/cloud/building' }, { path: '/product/cloud/building', name: 'building', component: './Product/Cloud' }, { path: '/product/cloud/curing', name: 'curing', component: './Product/Cloud' }, { path: '/product/cloud/highway', name: 'highway', component: './Product/Cloud' }, { path: '/product/cloud/gs', name: 'gs', component: './Product/Cloud' } ] } ] }, { path: 'statistic', name: 'statistic', icon: 'icon-tongji', routes: [ { path: '/statistic', redirect: '/statistic/product' }, { path: 'product', name: 'product', icon: 'icon-chanpin', routes: [ { path: '/statistic/product', redirect: '/statistic/product/software-usage' }, { path: 'software-usage', name: 'software-usage', component: './Statistic/Product/SoftwareUsage', access: 'authRouteFilter', validatePerm: true }, { path: 'invoice-aggregate', name: 'invoice-aggregate', component: './Statistic/Product/InvoiceAggregate', access: 'authRouteFilter', validatePerm: true }, { path: 'invoice-trends', name: 'invoice-trends', component: './Statistic/Product/InvoiceTrends', access: 'authRouteFilter', validatePerm: true } ] } ] }, { path: '/hr', name: 'hr', icon: 'icon-users', routes: [ { path: '/hr', redirect: '/hr/employee' }, { path: '/hr/employee', name: 'employee', icon: 'icon-users', component: './Hr/Employee', access: 'authRouteFilter' }, { path: '/hr/notification', name: 'notification', icon: 'icon-commentingo', component: './Hr/Notification', access: 'authRouteFilter' } ] }, { component: './404' } ]