From cf25476a5d73aa422a641b40310078c17e754971 Mon Sep 17 00:00:00 2001 From: Kevin Martinez Date: Mon, 18 Mar 2024 21:04:52 -0300 Subject: [PATCH] Create worker log --- src/i18n/en/index.js | 1 + src/i18n/es/index.js | 1 + src/pages/Worker/Card/WorkerLog.vue | 6 ++++++ src/router/modules/worker.js | 11 ++++++++++- 4 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 src/pages/Worker/Card/WorkerLog.vue diff --git a/src/i18n/en/index.js b/src/i18n/en/index.js index 4fe31cd2c..bbfccf719 100644 --- a/src/i18n/en/index.js +++ b/src/i18n/en/index.js @@ -836,6 +836,7 @@ export default { workerCreate: 'New worker', department: 'Department', pda: 'PDA', + log: 'Log', }, list: { name: 'Name', diff --git a/src/i18n/es/index.js b/src/i18n/es/index.js index 96303e856..b1baa0c0b 100644 --- a/src/i18n/es/index.js +++ b/src/i18n/es/index.js @@ -836,6 +836,7 @@ export default { workerCreate: 'Nuevo trabajador', department: 'Departamentos', pda: 'PDA', + log: 'Historial', }, list: { name: 'Nombre', diff --git a/src/pages/Worker/Card/WorkerLog.vue b/src/pages/Worker/Card/WorkerLog.vue new file mode 100644 index 000000000..ef5a2e0d8 --- /dev/null +++ b/src/pages/Worker/Card/WorkerLog.vue @@ -0,0 +1,6 @@ + + diff --git a/src/router/modules/worker.js b/src/router/modules/worker.js index 1c722afe8..448aab79c 100644 --- a/src/router/modules/worker.js +++ b/src/router/modules/worker.js @@ -12,7 +12,7 @@ export default { redirect: { name: 'WorkerMain' }, menus: { main: ['WorkerList', 'WorkerDepartment'], - card: ['WorkerNotificationsManager', 'WorkerPda'], + card: ['WorkerNotificationsManager', 'WorkerPda', 'WorkerLog'], departmentCard: ['BasicData'], }, children: [ @@ -85,6 +85,15 @@ export default { }, component: () => import('src/pages/Worker/Card/WorkerPda.vue'), }, + { + name: 'WorkerLog', + path: 'log', + meta: { + title: 'log', + icon: 'vn:History', + }, + component: () => import('src/pages/Worker/Card/WorkerLog.vue'), + }, ], }, ],