From a3d6275b2f581e36eb0cd027dd5c319dc38ce01c Mon Sep 17 00:00:00 2001 From: jorgep Date: Mon, 4 Dec 2023 10:38:35 +0100 Subject: [PATCH] refs #6545 counters created --- src/i18n/en/index.js | 1 + src/i18n/es/index.js | 1 + src/pages/Wagon/WagonCounter.vue | 90 ++++++++++++++++++++++++++++++++ src/router/modules/wagon.js | 11 +++- 4 files changed, 102 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 0cd578848..ab5842cf6 100644 --- a/src/i18n/en/index.js +++ b/src/i18n/en/index.js @@ -449,6 +449,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 daaf93e33..04a25cb88 100644 --- a/src/i18n/es/index.js +++ b/src/i18n/es/index.js @@ -449,6 +449,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..8e1cabf1b --- /dev/null +++ b/src/pages/Wagon/WagonCounter.vue @@ -0,0 +1,90 @@ + + + + +es: + Substract 1: Quitar 1 + Flush: Vaciar + 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'), + }, ], }, {