From 760e44bce01e705d4d8141adf57fc1f13a887917 Mon Sep 17 00:00:00 2001 From: setthawutttty Date: Mon, 16 Dec 2024 16:01:49 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B9=81=E0=B8=81=E0=B9=89=20=E0=B8=95?= =?UTF-8?q?=E0=B8=B4=E0=B8=81=E0=B9=80=E0=B8=9B=E0=B8=A5=E0=B8=B5=E0=B9=88?= =?UTF-8?q?=E0=B8=A2=E0=B8=99=E0=B8=8A=E0=B8=B7=E0=B9=88=E0=B8=AD=E0=B8=AD?= =?UTF-8?q?=E0=B8=AD=E0=B8=81=20=E0=B9=80=E0=B8=9B=E0=B8=A5=E0=B8=B5?= =?UTF-8?q?=E0=B9=88=E0=B8=A2=E0=B8=99=E0=B8=8A=E0=B8=B7=E0=B9=88=E0=B8=AD?= =?UTF-8?q?-=E0=B8=99=E0=B8=B2=E0=B8=A1=E0=B8=AA=E0=B8=81=E0=B8=B8?= =?UTF-8?q?=E0=B8=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../PersonalInformation/02_NameChangeHistory.vue | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/src/modules/04_registryPerson/components/detail/PersonalInformation/02_NameChangeHistory.vue b/src/modules/04_registryPerson/components/detail/PersonalInformation/02_NameChangeHistory.vue index 3b42fcf2c..bb859e338 100644 --- a/src/modules/04_registryPerson/components/detail/PersonalInformation/02_NameChangeHistory.vue +++ b/src/modules/04_registryPerson/components/detail/PersonalInformation/02_NameChangeHistory.vue @@ -416,6 +416,20 @@ watch( } ); +watch( + () => selection.value, + () => { + if (!selection.value.includes("prefix")) { + changeNameData.prefix = prefixChange.value; + } + if (!selection.value.includes("firstname")) { + changeNameData.firstName = firstNameChange.value; + } + if (!selection.value.includes("lastname")) { + changeNameData.lastName = lastNameChange.value; + } + } +); /** ทำงานเมื่อ Components ถูกเรียกใช้งาน*/ onMounted(async () => { // เช็ค ตัวเลือก ถ้าไม่มีให้ ดึงข้อมูลใหท่ @@ -541,7 +555,6 @@ onMounted(async () => { -