Create worker log #247

Merged
jsegarra merged 3 commits from :feature/worker-log into dev 2024-03-25 12:47:06 +00:00
4 changed files with 18 additions and 1 deletions
Showing only changes of commit cf25476a5d - Show all commits

View File

@ -836,6 +836,7 @@ export default {
workerCreate: 'New worker', workerCreate: 'New worker',
department: 'Department', department: 'Department',
pda: 'PDA', pda: 'PDA',
log: 'Log',
}, },
list: { list: {
name: 'Name', name: 'Name',

View File

@ -836,6 +836,7 @@ export default {
workerCreate: 'Nuevo trabajador', workerCreate: 'Nuevo trabajador',
department: 'Departamentos', department: 'Departamentos',
pda: 'PDA', pda: 'PDA',
log: 'Historial',
}, },
list: { list: {
name: 'Nombre', name: 'Nombre',

View File

@ -0,0 +1,6 @@
<script setup>
import VnLog from 'src/components/common/VnLog.vue';
</script>
<template>
<VnLog model="Worker" url="/WorkerLogs" />
</template>

View File

@ -12,7 +12,7 @@ export default {
redirect: { name: 'WorkerMain' }, redirect: { name: 'WorkerMain' },
menus: { menus: {
main: ['WorkerList', 'WorkerDepartment'], main: ['WorkerList', 'WorkerDepartment'],
card: ['WorkerNotificationsManager', 'WorkerPda'], card: ['WorkerNotificationsManager', 'WorkerPda', 'WorkerLog'],
departmentCard: ['BasicData'], departmentCard: ['BasicData'],
}, },
children: [ children: [
@ -85,6 +85,15 @@ export default {
}, },
component: () => import('src/pages/Worker/Card/WorkerPda.vue'), 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'),
},
], ],
}, },
], ],