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) => {
-
+
{ />
-
+
{ />
-
+
{ />
-
+