สรรหา เพิ่มคะแนนแบบสอบถาม

This commit is contained in:
Kittapath 2023-09-23 18:11:58 +07:00
parent b1ec7ed575
commit c68a68bdb9
6 changed files with 66 additions and 26 deletions

View file

@ -273,9 +273,9 @@ const fetchData = async () => {
}
const clickPayment = async () => {
if (img.value != null || img.value != '') {
const formData = new FormData()
formData.append('', filePayment.value[0])
// if (img.value != null || img.value != '') {
// const formData = new FormData()
// formData.append('', filePayment.value[0])
loaderPage(true)
await http
.post(config.API.candidatePayment(examId.value, positionId.value))
@ -289,9 +289,9 @@ const clickPayment = async () => {
filePayment.value = []
await props.fetchStep()
})
} else {
modalError($q, 'ไม่สามารถยืนยันการชำระเงินได้', 'กรุณาอัปโหลดเอกสารหลักฐานชำระเงิน')
}
// } else {
// modalError($q, '', '')
// }
}
const uploadImage = async (file: any) => {
@ -303,7 +303,7 @@ const uploadImage = async (file: any) => {
await http
.put(config.API.candidatePayment(examId.value, positionId.value), formData)
.then(() => {
success($q, 'ส่งหลักฐานชำระเงินสำเร็จ')
success($q, 'อัปโหลดหลักฐานชำระเงินสำเร็จ')
})
.catch((e) => {
messageError($q, e)
@ -314,7 +314,7 @@ const uploadImage = async (file: any) => {
file = []
})
} else {
modalError($q, 'ไม่สามารถอัพโหลดไฟล์ได้', 'กรุณาเลือกไฟล์ที่ต้องการอัพโหลด')
// modalError($q, '', '')
}
}