2022-04-12 12:53:43 +00:00
|
|
|
//import customer from './modules/customer';
|
2022-03-15 09:33:28 +00:00
|
|
|
import ticket from './modules/ticket';
|
2022-03-11 10:25:30 +00:00
|
|
|
|
2022-03-24 12:33:14 +00:00
|
|
|
const routes = [
|
2022-03-11 10:41:23 +00:00
|
|
|
{
|
|
|
|
path: '/login',
|
|
|
|
name: 'Login',
|
2022-03-14 09:36:52 +00:00
|
|
|
meta: { title: 'logIn' },
|
2022-04-05 14:30:53 +00:00
|
|
|
component: () => import('../pages/Login/Login.vue')
|
2022-03-11 10:41:23 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
path: '/',
|
|
|
|
name: 'Main',
|
2022-03-24 15:49:33 +00:00
|
|
|
component: () => import('../layouts/MainLayout.vue'),
|
2022-03-11 10:41:23 +00:00
|
|
|
redirect: { name: 'Dashboard' },
|
|
|
|
children: [
|
|
|
|
{
|
|
|
|
path: '/dashboard',
|
|
|
|
name: 'Dashboard',
|
2022-03-15 09:33:28 +00:00
|
|
|
meta: { title: 'dashboard', icon: 'dashboard' },
|
2022-04-12 12:53:43 +00:00
|
|
|
component: () => import('../pages/Dashboard/DashboardLayout.vue'),
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: '/customer',
|
|
|
|
name: 'Customer',
|
|
|
|
meta: {
|
|
|
|
title: 'customers',
|
|
|
|
icon: 'vn:client',
|
|
|
|
roles: ['salesPerson'],
|
|
|
|
},
|
|
|
|
component: () => import('src/pages/Customer/CustomerLayout.vue'),
|
2022-04-19 09:03:37 +00:00
|
|
|
redirect: { name: 'CustomerMain' },
|
2022-04-12 12:53:43 +00:00
|
|
|
children: [
|
|
|
|
{
|
2022-04-19 09:03:37 +00:00
|
|
|
path: '',
|
|
|
|
name: 'CustomerMain',
|
|
|
|
component: () => import('src/pages/Customer/CustomerMain.vue'),
|
|
|
|
redirect: { name: 'CustomerList' },
|
|
|
|
children: [
|
|
|
|
{
|
|
|
|
path: 'list',
|
|
|
|
name: 'CustomerList',
|
|
|
|
meta: {
|
|
|
|
title: 'list'
|
|
|
|
},
|
|
|
|
component: () => import('src/pages/Customer/CustomerList.vue'),
|
|
|
|
},
|
|
|
|
]
|
2022-04-12 12:53:43 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
path: ':id',
|
|
|
|
component: () => import('src/pages/Customer/Card/CustomerCard.vue'),
|
|
|
|
redirect: { name: 'CustomerBasicData' },
|
|
|
|
children: [
|
|
|
|
{
|
|
|
|
path: 'basic-data',
|
|
|
|
name: 'CustomerBasicData',
|
|
|
|
meta: {
|
|
|
|
title: 'basicData'
|
|
|
|
},
|
|
|
|
component: () => import('src/pages/Customer/Card/CustomerBasicData.vue'),
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
]
|
2022-03-11 10:41:23 +00:00
|
|
|
},
|
2022-03-28 07:05:56 +00:00
|
|
|
/* {
|
|
|
|
path: '/:pathMatch(.*)*',
|
|
|
|
name: 'NotFound',
|
|
|
|
component: () => import('../pages/NotFound.vue'),
|
|
|
|
}, */
|
2022-03-15 09:33:28 +00:00
|
|
|
// Module routes
|
2022-04-12 12:53:43 +00:00
|
|
|
//customer,
|
2022-03-15 09:33:28 +00:00
|
|
|
ticket,
|
2022-03-11 10:41:23 +00:00
|
|
|
],
|
|
|
|
},
|
2022-03-11 10:25:30 +00:00
|
|
|
];
|
|
|
|
|
2022-03-24 15:49:33 +00:00
|
|
|
export default routes;
|