fix: refs #6321 ticket-router
This commit is contained in:
parent
af56321377
commit
5c295ebd33
|
@ -6,22 +6,7 @@ const ticketCard = {
|
||||||
component: () => import('src/pages/Ticket/Card/TicketCard.vue'),
|
component: () => import('src/pages/Ticket/Card/TicketCard.vue'),
|
||||||
redirect: { name: 'TicketSummary' },
|
redirect: { name: 'TicketSummary' },
|
||||||
meta: {
|
meta: {
|
||||||
title: 'tickets',
|
menu: [
|
||||||
icon: 'vn:ticket',
|
|
||||||
moduleName: 'Ticket',
|
|
||||||
keyBinding: 't',
|
|
||||||
},
|
|
||||||
component: RouterView,
|
|
||||||
redirect: { name: 'TicketMain' },
|
|
||||||
menus: {
|
|
||||||
main: [
|
|
||||||
'TicketList',
|
|
||||||
'TicketAdvance',
|
|
||||||
'TicketWeekly',
|
|
||||||
'TicketFuture',
|
|
||||||
'TicketNegative',
|
|
||||||
],
|
|
||||||
card: [
|
|
||||||
'TicketBasicData',
|
'TicketBasicData',
|
||||||
'TicketSale',
|
'TicketSale',
|
||||||
'TicketLog',
|
'TicketLog',
|
||||||
|
@ -40,92 +25,6 @@ const ticketCard = {
|
||||||
'TicketSms',
|
'TicketSms',
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
children: [
|
|
||||||
{
|
|
||||||
name: 'TicketMain',
|
|
||||||
path: '',
|
|
||||||
component: () => import('src/components/common/VnSectionMain.vue'),
|
|
||||||
redirect: { name: 'TicketList' },
|
|
||||||
children: [
|
|
||||||
{
|
|
||||||
path: 'list',
|
|
||||||
name: 'TicketList',
|
|
||||||
meta: {
|
|
||||||
title: 'list',
|
|
||||||
icon: 'view_list',
|
|
||||||
},
|
|
||||||
component: () => import('src/pages/Ticket/TicketList.vue'),
|
|
||||||
},
|
|
||||||
{
|
|
||||||
path: 'negative',
|
|
||||||
redirect: { name: 'TicketNegative' },
|
|
||||||
children: [
|
|
||||||
{
|
|
||||||
name: 'TicketNegative',
|
|
||||||
meta: {
|
|
||||||
title: 'negative',
|
|
||||||
icon: 'view_list',
|
|
||||||
},
|
|
||||||
// redirect: { name: 'TicketNegative' },
|
|
||||||
component: () =>
|
|
||||||
import('src/pages/Ticket/Negative/TicketLackList.vue'),
|
|
||||||
path: '',
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: 'NegativeDetail',
|
|
||||||
path: ':id',
|
|
||||||
meta: {
|
|
||||||
title: 'summary',
|
|
||||||
icon: 'launch',
|
|
||||||
},
|
|
||||||
component: () =>
|
|
||||||
import('src/pages/Ticket/Negative/TicketLackDetail.vue'),
|
|
||||||
},
|
|
||||||
],
|
|
||||||
},
|
|
||||||
{
|
|
||||||
path: 'create',
|
|
||||||
name: 'TicketCreate',
|
|
||||||
meta: {
|
|
||||||
title: 'createTicket',
|
|
||||||
icon: 'vn:ticketAdd',
|
|
||||||
},
|
|
||||||
component: () => import('src/pages/Ticket/TicketCreate.vue'),
|
|
||||||
},
|
|
||||||
{
|
|
||||||
path: 'weekly',
|
|
||||||
name: 'TicketWeekly',
|
|
||||||
meta: {
|
|
||||||
title: 'weeklyTickets',
|
|
||||||
icon: 'access_time',
|
|
||||||
},
|
|
||||||
component: () => import('src/pages/Ticket/TicketWeekly.vue'),
|
|
||||||
},
|
|
||||||
{
|
|
||||||
path: 'future',
|
|
||||||
name: 'TicketFuture',
|
|
||||||
meta: {
|
|
||||||
title: 'futureTickets',
|
|
||||||
icon: 'keyboard_double_arrow_right',
|
|
||||||
},
|
|
||||||
component: () => import('src/pages/Ticket/TicketFuture.vue'),
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: 'TicketAdvance',
|
|
||||||
path: 'advance',
|
|
||||||
meta: {
|
|
||||||
title: 'ticketAdvance',
|
|
||||||
icon: 'keyboard_double_arrow_left',
|
|
||||||
},
|
|
||||||
component: () => import('src/pages/Ticket/TicketAdvance.vue'),
|
|
||||||
},
|
|
||||||
],
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: 'TicketCard',
|
|
||||||
path: ':id',
|
|
||||||
component: () => import('src/pages/Ticket/Card/TicketCard.vue'),
|
|
||||||
redirect: { name: 'TicketSummary' },
|
|
||||||
children: [
|
children: [
|
||||||
{
|
{
|
||||||
path: 'summary',
|
path: 'summary',
|
||||||
|
@ -162,8 +61,7 @@ const ticketCard = {
|
||||||
title: 'purchaseRequest',
|
title: 'purchaseRequest',
|
||||||
icon: 'vn:buyrequest',
|
icon: 'vn:buyrequest',
|
||||||
},
|
},
|
||||||
component: () =>
|
component: () => import('src/pages/Ticket/Card/TicketPurchaseRequest.vue'),
|
||||||
import('src/pages/Ticket/Card/TicketPurchaseRequest.vue'),
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: 'tracking',
|
path: 'tracking',
|
||||||
|
@ -294,7 +192,13 @@ export default {
|
||||||
icon: 'vn:ticket',
|
icon: 'vn:ticket',
|
||||||
moduleName: 'Ticket',
|
moduleName: 'Ticket',
|
||||||
keyBinding: 't',
|
keyBinding: 't',
|
||||||
menu: ['TicketList', 'TicketAdvance', 'TicketWeekly', 'TicketFuture'],
|
menu: [
|
||||||
|
'TicketList',
|
||||||
|
'TicketAdvance',
|
||||||
|
'TicketWeekly',
|
||||||
|
'TicketFuture',
|
||||||
|
'TicketNegative',
|
||||||
|
],
|
||||||
},
|
},
|
||||||
component: RouterView,
|
component: RouterView,
|
||||||
redirect: { name: 'TicketMain' },
|
redirect: { name: 'TicketMain' },
|
||||||
|
@ -331,6 +235,33 @@ export default {
|
||||||
},
|
},
|
||||||
component: () => import('src/pages/Ticket/TicketCreate.vue'),
|
component: () => import('src/pages/Ticket/TicketCreate.vue'),
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
path: 'negative',
|
||||||
|
redirect: { name: 'TicketNegative' },
|
||||||
|
children: [
|
||||||
|
{
|
||||||
|
name: 'TicketNegative',
|
||||||
|
meta: {
|
||||||
|
title: 'negative',
|
||||||
|
icon: 'view_list',
|
||||||
|
},
|
||||||
|
// redirect: { name: 'TicketNegative' },
|
||||||
|
component: () =>
|
||||||
|
import('src/pages/Ticket/Negative/TicketLackList.vue'),
|
||||||
|
path: '',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'NegativeDetail',
|
||||||
|
path: ':id',
|
||||||
|
meta: {
|
||||||
|
title: 'summary',
|
||||||
|
icon: 'launch',
|
||||||
|
},
|
||||||
|
component: () =>
|
||||||
|
import('src/pages/Ticket/Negative/TicketLackDetail.vue'),
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
{
|
{
|
||||||
path: 'weekly',
|
path: 'weekly',
|
||||||
name: 'TicketWeekly',
|
name: 'TicketWeekly',
|
||||||
|
|
Loading…
Reference in New Issue