From 7a3e91603974b2ce21832bf94b2f405da67d2ffd Mon Sep 17 00:00:00 2001 From: "DESKTOP-1R2VSQH\\Lenovo ThinkPad E490" Date: Wed, 3 Jul 2024 13:20:18 +0700 Subject: [PATCH] fix bug --- .../PersonalInformation/04_FamilyNew.vue | 1 - .../15_development/views/EmployeeHistory.vue | 27 +++++++++++++++---- src/modules/15_development/views/History.vue | 26 ++++++++++++++---- src/modules/15_development/views/MainPage.vue | 4 +-- 4 files changed, 45 insertions(+), 13 deletions(-) diff --git a/src/modules/04_registryNew/components/detail/PersonalInformation/04_FamilyNew.vue b/src/modules/04_registryNew/components/detail/PersonalInformation/04_FamilyNew.vue index b36510356..65139cc94 100644 --- a/src/modules/04_registryNew/components/detail/PersonalInformation/04_FamilyNew.vue +++ b/src/modules/04_registryNew/components/detail/PersonalInformation/04_FamilyNew.vue @@ -786,7 +786,6 @@ onMounted(() => { - {{ typeForm }} {{ isEdit }} { + .then(async (res) => { formFilter.root = null; rows.value = []; - agencyOp.value = res.data.result; - getData(); + const option = [{ name: "ทั้งหมด", id: null }]; + const optionNew = await res.data.result.map((e: string) => ({ + name: e, + id: e, + })); + option.push(...optionNew); + agencyOp.value = option; + // agencyOp.value = res.data.result; + await getData(); }) .catch((err) => { messageError($q, err); @@ -296,7 +303,17 @@ onMounted(() => { option-label="name" @update:model-value="(formFilter.page = 1), getData()" style="min-width: 150px" - /> + map-options + emit-value + > + +