|
|
@@ -39,28 +39,27 @@ export default [
|
|
|
{
|
|
|
path: '/customer',
|
|
|
redirect: '/customer/company'
|
|
|
- // authority: ['admin', 'company_access']
|
|
|
},
|
|
|
{
|
|
|
path: '/customer/company',
|
|
|
name: 'company',
|
|
|
icon: 'icon-building',
|
|
|
- component: './Customer/Company'
|
|
|
- // authority: ['admin', 'company_access']
|
|
|
+ component: './Customer/Company',
|
|
|
+ access: 'authRouteFilter'
|
|
|
},
|
|
|
{
|
|
|
path: '/customer/client',
|
|
|
name: 'client',
|
|
|
icon: 'icon-address-book',
|
|
|
- component: './Customer/Client'
|
|
|
- // authority: ['admin', 'client_access']
|
|
|
+ component: './Customer/Client',
|
|
|
+ access: 'authRouteFilter'
|
|
|
},
|
|
|
{
|
|
|
path: '/customer/business',
|
|
|
name: 'business',
|
|
|
icon: 'icon-usd-circle',
|
|
|
- component: './Customer/Business'
|
|
|
- // authority: ['admin', 'business_access']
|
|
|
+ component: './Customer/Business',
|
|
|
+ access: 'authRouteFilter'
|
|
|
},
|
|
|
{
|
|
|
path: '/customer/test',
|
|
|
@@ -124,21 +123,20 @@ export default [
|
|
|
]
|
|
|
},
|
|
|
{
|
|
|
- path: '/staff',
|
|
|
- name: 'staff',
|
|
|
+ path: '/hr',
|
|
|
+ name: 'hr',
|
|
|
icon: 'icon-users',
|
|
|
routes: [
|
|
|
{
|
|
|
- path: '/staff',
|
|
|
- redirect: '/staff/employee'
|
|
|
- // authority: ['admin', 'department_access']
|
|
|
+ path: '/hr',
|
|
|
+ redirect: '/hr/employee'
|
|
|
},
|
|
|
{
|
|
|
- path: '/staff/employee',
|
|
|
- name: 'employee',
|
|
|
+ path: '/hr/employee',
|
|
|
+ name: 'Employee',
|
|
|
icon: 'icon-users',
|
|
|
- component: './Staff/Employee'
|
|
|
- // authority: ['admin', 'department_access']
|
|
|
+ component: './Hr/Employee',
|
|
|
+ access: 'authRouteFilter'
|
|
|
}
|
|
|
]
|
|
|
},
|