diff --git a/src/modules/01_exam/components/ExamForm.vue b/src/modules/01_exam/components/ExamForm.vue index 30bea2b..dfe1101 100644 --- a/src/modules/01_exam/components/ExamForm.vue +++ b/src/modules/01_exam/components/ExamForm.vue @@ -233,10 +233,15 @@ const saveForm = async () => { const clickSave = async () => { saveAuto.value = false - await saveData() + if (defaultInformation.value.profileImg == null || '') { + notifyError($q, 'กรุณาอัพโหลดรูปถ่าย') + } else { + await saveData() + } } const saveData = async () => { + //เช็ครูป await formInformation.value.validate().then(async (suc: boolean) => { if (suc) { await formAddress.value.validate().then(async (suc: boolean) => { @@ -304,7 +309,8 @@ const saveData = async () => { contactfirstname: defaultContact.value.contactfirstname, contactlastname: defaultContact.value.contactlastname, contactrelations: defaultContact.value.contactrelations, - contacttel: defaultContact.value.contacttel + contacttel: defaultContact.value.contacttel, + profileImg: defaultInformation.value.profileImg }) .then(async () => { success($q, 'บันทึกข้อมูลส่วนตัวสำเร็จ')