From d22649832251f9ec8b6d2a9ebe5d6fda18d33348 Mon Sep 17 00:00:00 2001 From: "DESKTOP-1R2VSQH\\Lenovo ThinkPad E490" Date: Thu, 23 May 2024 10:10:32 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B8=A3=E0=B8=B2=E0=B8=A2=E0=B8=81=E0=B8=B2?= =?UTF-8?q?=E0=B8=A3=E0=B9=80=E0=B8=A5=E0=B8=B7=E0=B9=88=E0=B8=AD=E0=B8=99?= =?UTF-8?q?=E0=B9=80=E0=B8=87=E0=B8=B4=E0=B8=99=E0=B9=80=E0=B8=94=E0=B8=B7?= =?UTF-8?q?=E0=B8=AD=E0=B8=99=E0=B8=82=E0=B9=89=E0=B8=B2=E0=B8=A3=E0=B8=B2?= =?UTF-8?q?=E0=B8=8A=E0=B8=81=E0=B8=B2=E0=B8=A3=E0=B8=AF=3D>=20=E0=B9=81?= =?UTF-8?q?=E0=B8=81=E0=B9=89=E0=B9=84=E0=B8=82=E0=B8=84=E0=B8=B8=E0=B8=93?= =?UTF-8?q?=E0=B8=AA=E0=B8=A1=E0=B8=9A=E0=B8=B1=E0=B8=95=E0=B8=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../SalaryLists/DialogProperties.vue | 23 ++++++------------- 1 file changed, 7 insertions(+), 16 deletions(-) diff --git a/src/modules/13_salary/components/SalaryLists/DialogProperties.vue b/src/modules/13_salary/components/SalaryLists/DialogProperties.vue index 0f9f4fc36..b11de0b02 100644 --- a/src/modules/13_salary/components/SalaryLists/DialogProperties.vue +++ b/src/modules/13_salary/components/SalaryLists/DialogProperties.vue @@ -37,8 +37,6 @@ const props = defineProps({ }); const type = ref(""); -const typeRef = ref(null); -const isReadonly = ref(false); // อ่านได้อย่างเดียว const isPunish = ref(false); // มีการแก้ไขข้อมูลหรือไม่ const isSuspension = ref(false); // สำรองหรือไม่ @@ -100,10 +98,12 @@ function onSubmit() { watch( () => modal.value, () => { - isPunish.value = props.isPunish; - isSuspension.value = props.isSuspension; - isAbsent.value = props.isAbsent; - isLeave.value = props.isLeave; + if (modal.value) { + isPunish.value = props.isPunish ? props.isPunish : false; + isSuspension.value = props.isSuspension ? props.isSuspension : false; + isAbsent.value = props.isAbsent ? props.isAbsent : false; + isLeave.value = props.isLeave ? props.isLeave : false; + } } ); @@ -117,33 +117,24 @@ watch(
- +