From 0dee7e8cc9f86721f11a61e36abf62e0cbb6501c Mon Sep 17 00:00:00 2001 From: Kevin Martinez Date: Wed, 27 Mar 2024 16:51:44 -0300 Subject: [PATCH] Create worker calendar submodule --- src/pages/Worker/Card/WorkerCalendar.vue | 95 +++++++ .../Worker/Card/WorkerCalendarFilter.vue | 240 ++++++++++++++++++ src/pages/Worker/Card/WorkerCalendarItem.vue | 41 +++ src/router/modules/worker.js | 11 +- 4 files changed, 386 insertions(+), 1 deletion(-) create mode 100644 src/pages/Worker/Card/WorkerCalendar.vue create mode 100644 src/pages/Worker/Card/WorkerCalendarFilter.vue create mode 100644 src/pages/Worker/Card/WorkerCalendarItem.vue diff --git a/src/pages/Worker/Card/WorkerCalendar.vue b/src/pages/Worker/Card/WorkerCalendar.vue new file mode 100644 index 000000000..aca65750a --- /dev/null +++ b/src/pages/Worker/Card/WorkerCalendar.vue @@ -0,0 +1,95 @@ + + + + + + +es: + Search worker: Buscar trabajador + You can search by worker id or name: Puedes buscar por id o nombre del trabajador + diff --git a/src/pages/Worker/Card/WorkerCalendarFilter.vue b/src/pages/Worker/Card/WorkerCalendarFilter.vue new file mode 100644 index 000000000..d73305085 --- /dev/null +++ b/src/pages/Worker/Card/WorkerCalendarFilter.vue @@ -0,0 +1,240 @@ + + + + + + + +es: + Used: Utilizados + Spent: Utilizadas + Paid holidays: Vacaciones pagadas + of: de + days: días + hours: horas + Year: Año + Contract: Contrato + Festive: Festivo + Current day: Día actual + diff --git a/src/pages/Worker/Card/WorkerCalendarItem.vue b/src/pages/Worker/Card/WorkerCalendarItem.vue new file mode 100644 index 000000000..93b1d03c5 --- /dev/null +++ b/src/pages/Worker/Card/WorkerCalendarItem.vue @@ -0,0 +1,41 @@ + + diff --git a/src/router/modules/worker.js b/src/router/modules/worker.js index 1c722afe8..1331e7169 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', 'WorkerCalendar', 'WorkerPda'], departmentCard: ['BasicData'], }, children: [ @@ -76,6 +76,15 @@ export default { component: () => import('src/pages/Worker/Card/WorkerNotificationsManager.vue'), }, + { + name: 'WorkerCalendar', + path: 'calendar', + meta: { + title: 'calendar', + icon: 'calendar_today', + }, + component: () => import('src/pages/Worker/Card/WorkerCalendar.vue'), + }, { name: 'WorkerPda', path: 'pda',