From 99aa674995c826da862e6a0f51474f6f658e9cb6 Mon Sep 17 00:00:00 2001 From: alexandre Date: Mon, 14 Nov 2022 14:29:40 +0100 Subject: [PATCH] refs #3963 working on mockup --- modules/ticket/back/model-config.json | 4 ++++ modules/ticket/back/models/ticket-methods.js | 1 + modules/ticket/front/index.js | 2 ++ modules/ticket/front/routes.json | 9 ++++++++- 4 files changed, 15 insertions(+), 1 deletion(-) diff --git a/modules/ticket/back/model-config.json b/modules/ticket/back/model-config.json index 82d8e3b1a..a7aaf0054 100644 --- a/modules/ticket/back/model-config.json +++ b/modules/ticket/back/model-config.json @@ -95,4 +95,8 @@ "TicketFuture": { "dataSource": "vn" } + , + "TicketAdvance": { + "dataSource": "vn" + } } diff --git a/modules/ticket/back/models/ticket-methods.js b/modules/ticket/back/models/ticket-methods.js index 92036d77f..80a22b696 100644 --- a/modules/ticket/back/models/ticket-methods.js +++ b/modules/ticket/back/models/ticket-methods.js @@ -35,4 +35,5 @@ module.exports = function(Self) { require('../methods/ticket/closeByRoute')(Self); require('../methods/ticket-future/getTicketsFuture')(Self); require('../methods/ticket/merge')(Self); + require('../methods/ticket-advance/getTicketsAdvance')(Self); }; diff --git a/modules/ticket/front/index.js b/modules/ticket/front/index.js index 6106a22eb..2d0527706 100644 --- a/modules/ticket/front/index.js +++ b/modules/ticket/front/index.js @@ -36,3 +36,5 @@ import './sms'; import './boxing'; import './future'; import './future-search-panel'; +import './advance' +import './advance-search-panel' diff --git a/modules/ticket/front/routes.json b/modules/ticket/front/routes.json index 2963d54c4..a16f951b7 100644 --- a/modules/ticket/front/routes.json +++ b/modules/ticket/front/routes.json @@ -8,7 +8,8 @@ "main": [ {"state": "ticket.index", "icon": "icon-ticket"}, {"state": "ticket.weekly.index", "icon": "schedule"}, - {"state": "ticket.future", "icon": "keyboard_double_arrow_right"} + {"state": "ticket.future", "icon": "double_arrow"}, + {"state": "ticket.advance", "icon": "keyboard_double_arrow_left"} ], "card": [ {"state": "ticket.card.basicData.stepOne", "icon": "settings"}, @@ -290,6 +291,12 @@ "state": "ticket.future", "component": "vn-ticket-future", "description": "Future tickets" + }, + { + "url": "/advance", + "state": "ticket.advance", + "component": "vn-ticket-advance", + "description": "Advance tickets" } ] }