-
-
Responsive monitor
-
Dashboard page..
+
+
+
Responsive monitor
+
Dashboard page..
+
-
-
+
+
diff --git a/src/pages/Ticket/Card/TicketBasicData.vue b/src/pages/Ticket/Card/TicketBasicData.vue
new file mode 100644
index 000000000..b4e913ad5
--- /dev/null
+++ b/src/pages/Ticket/Card/TicketBasicData.vue
@@ -0,0 +1,3 @@
+
+ Basic Data
+
\ No newline at end of file
diff --git a/src/pages/Ticket/Card/TicketCard.vue b/src/pages/Ticket/Card/TicketCard.vue
new file mode 100644
index 000000000..7ac41ebf4
--- /dev/null
+++ b/src/pages/Ticket/Card/TicketCard.vue
@@ -0,0 +1,24 @@
+
+
+
+
+
+
+
+ Customer ID: {{ entityId }}
+
+
+
+
+
+
diff --git a/src/pages/Ticket/TicketLayout.vue b/src/pages/Ticket/TicketLayout.vue
deleted file mode 100644
index 2785996d8..000000000
--- a/src/pages/Ticket/TicketLayout.vue
+++ /dev/null
@@ -1,3 +0,0 @@
-
-
-
diff --git a/src/pages/Ticket/TicketList.vue b/src/pages/Ticket/TicketList.vue
index e69de29bb..ebc291933 100644
--- a/src/pages/Ticket/TicketList.vue
+++ b/src/pages/Ticket/TicketList.vue
@@ -0,0 +1,110 @@
+
+
+
+
+
+
+
+
+
+ {{ customer.name }}
+ @{{ customer.username }}
+
+
+
+
+ Email
+ {{ customer.email }}
+
+
+
+
+ Phone
+ {{ customer.phone }}
+
+
+
+
+
+
+
+
+
+ Action 1
+
+
+ Action 2
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Address
+ Avenue 11
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/pages/Ticket/TicketMain.vue b/src/pages/Ticket/TicketMain.vue
new file mode 100644
index 000000000..731ebb803
--- /dev/null
+++ b/src/pages/Ticket/TicketMain.vue
@@ -0,0 +1,28 @@
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/router/modules/customer.js b/src/router/modules/customer.js
index 948fcc4c3..d72834dc9 100644
--- a/src/router/modules/customer.js
+++ b/src/router/modules/customer.js
@@ -1,3 +1,5 @@
+import { RouterView } from 'vue-router';
+
export default {
path: '/customer',
name: 'Customer',
@@ -6,24 +8,32 @@ export default {
icon: 'vn:client',
roles: ['salesPerson'],
},
- component: () => import('src/pages/Customer/CustomerLayout.vue'),
- redirect: { name: 'CustomerList' },
+ component: RouterView,
+ redirect: { name: 'CustomerMain' },
children: [
{
- path: 'list',
- name: 'CustomerList',
- meta: {
- title: 'list'
- },
- component: () => import('src/pages/Customer/CustomerList.vue'),
- },
- {
- path: 'create',
- name: 'CustomerCreate',
- meta: {
- title: 'create'
- },
- component: () => import('src/pages/Customer/CustomerCreate.vue'),
+ 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'),
+ },
+ {
+ path: 'create',
+ name: 'CustomerCreate',
+ meta: {
+ title: 'create'
+ },
+ component: () => import('src/pages/Customer/CustomerCreate.vue'),
+ },
+ ]
},
{
path: ':id',
@@ -40,5 +50,5 @@ export default {
}
]
},
- ],
+ ]
};
\ No newline at end of file
diff --git a/src/router/modules/ticket.js b/src/router/modules/ticket.js
index 6e22a0ecc..a8dd42165 100644
--- a/src/router/modules/ticket.js
+++ b/src/router/modules/ticket.js
@@ -1,18 +1,46 @@
+import { RouterView } from 'vue-router';
+
export default {
path: '/ticket',
name: 'Ticket',
meta: {
title: 'tickets',
icon: 'vn:ticket',
+ roles: ['salesPerson'],
},
- component: () => import('src/pages/Ticket/TicketLayout.vue'),
- redirect: { path: '/ticket/list' },
+ component: RouterView,
+ redirect: { name: 'TicketMain' },
children: [
{
- path: 'list',
- name: 'TicketList',
- meta: { title: 'list' },
- component: () => import('src/pages/Ticket/TicketList.vue'),
- }
- ],
+ path: '',
+ name: 'TicketMain',
+ component: () => import('src/pages/Ticket/TicketMain.vue'),
+ redirect: { name: 'TicketList' },
+ children: [
+ {
+ path: 'list',
+ name: 'TicketList',
+ meta: {
+ title: 'list'
+ },
+ component: () => import('src/pages/Ticket/TicketList.vue'),
+ },
+ ]
+ },
+ {
+ path: ':id',
+ component: () => import('src/pages/Ticket/Card/TicketCard.vue'),
+ redirect: { name: 'TicketBasicData' },
+ children: [
+ {
+ path: 'basic-data',
+ name: 'TicketBasicData',
+ meta: {
+ title: 'basicData'
+ },
+ component: () => import('src/pages/Ticket/Card/TicketBasicData.vue'),
+ }
+ ]
+ },
+ ]
};
\ No newline at end of file
diff --git a/src/router/routes.js b/src/router/routes.js
index d4b63df1d..6905c4116 100644
--- a/src/router/routes.js
+++ b/src/router/routes.js
@@ -20,16 +20,16 @@ const routes = [
meta: { title: 'dashboard', icon: 'dashboard' },
component: () => import('../pages/Dashboard/Dashboard.vue'),
},
- /* {
- path: '/:pathMatch(.*)*',
- name: 'NotFound',
- component: () => import('../pages/NotFound.vue'),
- }, */
// Module routes
customer,
ticket,
],
},
+ {
+ path: '/:pathMatch(.*)*',
+ name: 'NotFound',
+ component: () => import('../pages/NotFound.vue'),
+ }
];
export default routes;
\ No newline at end of file
diff --git a/src/types/route.ts b/src/types/route.ts
deleted file mode 100644
index ea7b84d42..000000000
--- a/src/types/route.ts
+++ /dev/null
@@ -1,4 +0,0 @@
-export interface Route {
- path: string;
- component: any;
-}
\ No newline at end of file