From 893b1bb4c8471645c8976110d6381f90059acaae Mon Sep 17 00:00:00 2001 From: wbuezas Date: Tue, 26 Dec 2023 16:15:46 -0300 Subject: [PATCH] Add department basic data --- src/components/FormModel.vue | 11 +- src/i18n/en/index.js | 1 - src/i18n/es/index.js | 1 - .../Department/Card/DepartmentBasicData.vue | 136 +++++++++++++++++- src/pages/Department/Card/DepartmentCard.vue | 6 - 5 files changed, 141 insertions(+), 14 deletions(-) diff --git a/src/components/FormModel.vue b/src/components/FormModel.vue index 62993ef24..e683ce735 100644 --- a/src/components/FormModel.vue +++ b/src/components/FormModel.vue @@ -58,7 +58,7 @@ const $props = defineProps({ mapper: { type: Function, default: null, - } + }, }); const emit = defineEmits(['onFetch', 'onDataSaved']); @@ -129,7 +129,7 @@ async function save() { isLoading.value = true; try { - const body = $props.mapper ? $props.mapper(formData.value) : formData.value + const body = $props.mapper ? $props.mapper(formData.value) : formData.value; if ($props.urlCreate) { await axios.post($props.urlCreate, body); notify('globals.dataCreated', 'positive'); @@ -179,11 +179,14 @@ watch(formUrl, async () => { }); - - -es: - Search worker: Buscar trabajador - You can search by worker id or name: Puedes buscar por id o nombre del trabajador -