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 + > + +