From 23770d74b5f3454c3790488ef4a20e1ea20fff4a Mon Sep 17 00:00:00 2001 From: setthawutttty Date: Fri, 11 Oct 2024 16:01:26 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B9=80=E0=B8=9E=E0=B8=B4=E0=B9=88=E0=B8=A1?= =?UTF-8?q?=E0=B8=99=E0=B8=B1=E0=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/Dialog/DialogUpdate.vue | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/modules/04_registryPerson/components/Dialog/DialogUpdate.vue b/src/modules/04_registryPerson/components/Dialog/DialogUpdate.vue index d63855eba..5c7376fb1 100644 --- a/src/modules/04_registryPerson/components/Dialog/DialogUpdate.vue +++ b/src/modules/04_registryPerson/components/Dialog/DialogUpdate.vue @@ -109,7 +109,6 @@ const childData = ref([]); /** ปิด popup */ async function closeDialog() { modal.value = false; - count.value = 0; childData.value = []; formInformations.bloodGroup = null; @@ -158,7 +157,7 @@ async function upDateInfomation() { undefined, }) .then(async () => { - count.value + 1; + count.value += 1; }) .catch((e) => { messageError($q, e); @@ -186,7 +185,9 @@ async function upDateAddress() { ...formDataAddress, id: undefined, }) - .then(async () => {}) + .then(async () => { + count.value += 1; + }) .catch((e) => { messageError($q, e); hideLoader(); @@ -199,14 +200,14 @@ async function upDateFamily() { await saveFather(); await saveMother(); if (coupleData.citizenId !== "") { - await saveCouple(); + saveCouple(); } if (childData.value.length !== 0) { for (const child of childData.value) { - await saveChildren(child); + saveChildren(child); } } - count.value + 1; + count.value += 1; } async function saveFather() { @@ -429,6 +430,7 @@ watch( async () => { if (modal.value) { showLoader(); + count.value = 0; await fetchDataRelationship(); await storeLinkCenter.fetchPerson(); await amiRequest();