validateForm download

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2023-12-27 16:25:07 +07:00
parent 4841a384a7
commit 50de210ae3
3 changed files with 44 additions and 1 deletions

View file

@ -448,7 +448,9 @@ watch(
onMounted(async () => {
route.params.id && fetchCheckStep(route.params.id.toString());
route.name === "evaluate-add" && (showLoadStatus.value = true);
route.name === "evaluate-add" &&
(showLoadStatus.value = true) &&
store.step === 1;
});
</script>
<template>

View file

@ -322,21 +322,27 @@ async function downloadFile(fileName: string) {
.then((res) => {
if (fileName === "1-แบบพิจารณาคุณสมบัติบุคคล") {
downloadFile1.value = res.data.downloadUrl;
// fileEvaluation1.value = res.data.upload;
} else if (fileName === "2-แบบแสดงรายละเอียดการเสนอผลงาน") {
downloadFile2.value = res.data.downloadUrl;
// fileEvaluation2.value = res.data.upload;
} else if (
fileName ===
"3-แบบตรวจสอบความถูกต้องครบถ้วนของข้อมูลเพื่อประกอบการคัดเลือกบุคคล (เอกสารแบบ ก.)"
) {
downloadFile3.value = res.data.downloadUrl;
// fileEvaluation3.value = res.data.upload;
} else if (fileName === "4-แบบประเมินคุณลักษณะบุคคล") {
downloadFile4.value = res.data.downloadUrl;
// fileEvaluation4.value = res.data.upload;
} else if (
fileName === "5-แบบสรุปข้อมูลของผู้ขอรับการคัดเลือก (เอกสารหมายเลข 9)"
) {
downloadFile5.value = res.data.downloadUrl;
// fileEvaluation5.value = res.data.upload;
} else if (fileName === "6-ผลงานที่จะส่งประเมิน (เอกสารหมายเลข 11)") {
downloadFile6.value = res.data.downloadUrl;
// fileEvaluation6.value = res.data.upload;
}
})
.finally(() => {
@ -473,6 +479,11 @@ onMounted(async () => {
hide-bottom-space
lazy-rules
accept=".pdf"
:rules="
downloadFile1 === ''
? [(val) => !!val || 'กรุณาเลือกไฟล์']
: []
"
>
<template v-slot:prepend>
<q-icon name="attach_file" />
@ -555,6 +566,11 @@ onMounted(async () => {
hide-bottom-space
lazy-rules
accept=".pdf"
:rules="
downloadFile2 === ''
? [(val) => !!val || 'กรุณาเลือกไฟล์']
: []
"
>
<template v-slot:prepend>
<q-icon name="attach_file" />
@ -638,6 +654,11 @@ onMounted(async () => {
hide-bottom-space
lazy-rules
accept=".pdf"
:rules="
downloadFile3 === ''
? [(val) => !!val || 'กรุณาเลือกไฟล์']
: []
"
>
<template v-slot:prepend>
<q-icon name="attach_file" />
@ -720,6 +741,11 @@ onMounted(async () => {
hide-bottom-space
lazy-rules
accept=".pdf"
:rules="
downloadFile4 === ''
? [(val) => !!val || 'กรุณาเลือกไฟล์']
: []
"
>
<template v-slot:prepend>
<q-icon name="attach_file" />
@ -801,6 +827,11 @@ onMounted(async () => {
hide-bottom-space
lazy-rules
accept=".pdf"
:rules="
downloadFile5 === ''
? [(val) => !!val || 'กรุณาเลือกไฟล์']
: []
"
>
<template v-slot:prepend>
<q-icon name="attach_file" />
@ -883,6 +914,11 @@ onMounted(async () => {
hide-bottom-space
lazy-rules
accept=".pdf"
:rules="
downloadFile6 === ''
? [(val) => !!val || 'กรุณาเลือกไฟล์']
: []
"
>
<template v-slot:prepend>
<q-icon name="attach_file" />

View file

@ -291,6 +291,11 @@ onMounted(() => {
hide-bottom-space
lazy-rules
accept=".pdf"
:rules="
downloadUrl === ''
? [(val) => !!val || 'กรุณาเลือกไฟล์']
: []
"
>
<template v-slot:prepend>
<q-icon name="attach_file" />