diff --git a/src/modules/01_exam/components/Form/Family.vue b/src/modules/01_exam/components/Form/Family.vue index 11890e8..726c354 100644 --- a/src/modules/01_exam/components/Form/Family.vue +++ b/src/modules/01_exam/components/Form/Family.vue @@ -10,8 +10,8 @@ /> -
-
+
+
-
+
-
+
-
• บิดา
+
• บิดา
-
+
-
+
-
• มารดา
+
• มารดา
-
+
-
+
-
{ }) } -// const clickProfile = async () => { -// if (fileProfile.value.length > 0) { -// const blob = fileProfile.value.slice(0, fileProfile.value[0].size) -// const newFile = new File(blob, fileProfile.value[0].name, { -// type: fileProfile.value[0].type -// }) -// fileDataUpload.value = newFile -// const formData = new FormData() -// formData.append('', fileDataUpload.value) -// loader.value = true -// await http -// .put(config.API.candidateProfile(examId.value, positionId.value), formData) -// .then(() => { -// success($q, 'อัพโหลดรูปสำเร็จ') -// }) -// .catch(() => {}) -// .finally(async () => { -// loader.value = false -// await fetchData() -// await fetchImgData() -// fileProfile.value = [] -// }) -// } else { -// modalError($q, 'ไม่สามารถอัพโหลดไฟล์ได้', 'กรุณาเลือกไฟล์ที่ต้องการอัพโหลด') -// } -// } - const uploadImage = async (e: any) => { let input = e.target.files if (input.length > 0) { @@ -522,7 +475,7 @@ const uploadImage = async (e: any) => { .catch((e) => {}) .finally(async () => { loader.value = false - await fetchData() + // await fetchData() await fetchImgData() fileProfile.value = [] }) diff --git a/src/modules/01_exam/interface/index/Main.ts b/src/modules/01_exam/interface/index/Main.ts index a04ddbe..2f55734 100644 --- a/src/modules/01_exam/interface/index/Main.ts +++ b/src/modules/01_exam/interface/index/Main.ts @@ -36,6 +36,7 @@ interface Information { relationshipId: string | null statusId: string | null knowledge: string | null + profileImg: string | null } interface Family { @@ -245,7 +246,8 @@ const defaultInformation = ref({ knowledge: null, districtId: null, provinceId: null, - statusId: null + statusId: null, + profileImg: null }) const defaultFamily = ref({