From 9a566ba87c07d2256c2c2e76e6a6788cab0bc6c1 Mon Sep 17 00:00:00 2001 From: pablone Date: Wed, 6 Dec 2023 09:48:51 +0100 Subject: [PATCH] feat(wagonCounter): refs #6545 move to test --- src/i18n/en/index.js | 1 + src/i18n/es/index.js | 1 + src/pages/Wagon/WagonCounter.vue | 128 +++++++++++++++++++++++++++++++ src/router/modules/wagon.js | 11 ++- 4 files changed, 140 insertions(+), 1 deletion(-) create mode 100644 src/pages/Wagon/WagonCounter.vue diff --git a/src/i18n/en/index.js b/src/i18n/en/index.js index 948332d46..7ff2b41f6 100644 --- a/src/i18n/en/index.js +++ b/src/i18n/en/index.js @@ -448,6 +448,7 @@ export default { typesList: 'Types List', typeCreate: 'Create type', typeEdit: 'Edit type', + wagonCounter: 'Trolley counter', }, type: { name: 'Name', diff --git a/src/i18n/es/index.js b/src/i18n/es/index.js index 9b452ab22..b65375a2c 100644 --- a/src/i18n/es/index.js +++ b/src/i18n/es/index.js @@ -448,6 +448,7 @@ export default { typesList: 'Listado tipos', typeCreate: 'Crear tipo', typeEdit: 'Editar tipo', + wagonCounter: 'Contador de carros', }, type: { name: 'Nombre', diff --git a/src/pages/Wagon/WagonCounter.vue b/src/pages/Wagon/WagonCounter.vue new file mode 100644 index 000000000..38e9bc529 --- /dev/null +++ b/src/pages/Wagon/WagonCounter.vue @@ -0,0 +1,128 @@ + + + + +es: + Substract 1: Quitar 1 + Flush: Vaciar + Are you sure?: ¿Estás seguro? + It will set to 0: Se pondrá a 0 + diff --git a/src/router/modules/wagon.js b/src/router/modules/wagon.js index 3fb808778..238e482dd 100644 --- a/src/router/modules/wagon.js +++ b/src/router/modules/wagon.js @@ -10,7 +10,7 @@ export default { component: RouterView, redirect: { name: 'WagonMain' }, menus: { - main: ['WagonList', 'WagonTypeList'], + main: ['WagonList', 'WagonTypeList', 'WagonCounter'], card: [], }, children: [ @@ -47,6 +47,15 @@ export default { }, component: () => import('src/pages/Wagon/WagonCreate.vue'), }, + { + path: 'counter', + name: 'WagonCounter', + meta: { + title: 'wagonCounter', + icon: 'add_circle', + }, + component: () => import('src/pages/Wagon/WagonCounter.vue'), + }, ], }, {