From 042a9264cd52c5f48bf47ec9850b97006b7bc8be Mon Sep 17 00:00:00 2001 From: AnandaTon Date: Fri, 15 Sep 2023 13:01:47 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B9=81=E0=B8=81=E0=B9=89=E0=B9=84=E0=B8=82?= =?UTF-8?q?=E0=B8=9A=E0=B8=A3=E0=B8=A3=E0=B8=88=E0=B8=B8=20=E0=B9=81?= =?UTF-8?q?=E0=B8=95=E0=B9=88=E0=B8=87=E0=B8=95=E0=B8=B1=E0=B9=89=E0=B8=87?= =?UTF-8?q?=20=E0=B9=82=E0=B8=AD=E0=B8=99=20=E0=B8=A2=E0=B9=89=E0=B8=B2?= =?UTF-8?q?=E0=B8=A2=20details?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/AppointMent/Detail.vue | 23 ++-- .../05_placement/components/Other/Detail.vue | 24 ++-- .../components/Transfer/transferRegistry.vue | 107 +++++++++--------- 3 files changed, 83 insertions(+), 71 deletions(-) diff --git a/src/modules/05_placement/components/AppointMent/Detail.vue b/src/modules/05_placement/components/AppointMent/Detail.vue index 73b1d3391..979cb23a0 100644 --- a/src/modules/05_placement/components/AppointMent/Detail.vue +++ b/src/modules/05_placement/components/AppointMent/Detail.vue @@ -32,7 +32,7 @@ const title = ref({ positionTypeOld: "", }); const appointment = ref([]); - +const myform = ref(); const edit = ref(false); const profileId = ref(""); const organizationPositionOld = ref(""); @@ -83,8 +83,14 @@ const fecthappointmentByid = async () => { hideLoader(); }); }; -const clickSave = () => { - dialogConfirm($q, () => putAppointment()); +const clickSave = async () => { + console.log(reason.value); + await myform.value.validate().then(async (success: boolean) => { + if (success) { + dialogConfirm($q, () => putAppointment()); + } else { + } + }); }; const putAppointment = async () => { console.log("บันทึกข้อมูล"); @@ -242,7 +248,7 @@ const getClass = (val: boolean) => {
- +
วุฒิการศึกษา
@@ -289,7 +295,7 @@ const getClass = (val: boolean) => {
-
+
{ />
-
+
{ />
-
+
{ />
-
+