แก้ประเมิน step 1

This commit is contained in:
Warunee Tamkoo 2023-12-23 16:21:10 +07:00
parent 3487ae71bb
commit 86ba9053a7
7 changed files with 473 additions and 299 deletions

View file

@ -226,6 +226,7 @@ function fileUpLoad(url: string) {
})
.finally(() => {
fileEvaluationUpload.value = null;
checkDoc10();
success($q, "อัปโหลดไฟล์สำเร็จ");
});
}
@ -250,6 +251,32 @@ function sentMessenger() {
});
});
}
const download10Url = ref<string>("");
function checkDoc10() {
showLoader();
http
.get(
config.API.evaluationPatchData(
"เล่ม 1",
id.value,
"10-ประกาศผลการคัดเลือกบุคคล (เอกสารหมายเลข 10)"
)
)
.then((res: any) => {
download10Url.value = res.data.downloadUrl;
})
// .catch((e) => {
// messageError($q, e);
// })
.finally(() => {
hideLoader();
});
}
onMounted(() => {
checkDoc10();
});
</script>
<template>
@ -320,7 +347,9 @@ function sentMessenger() {
</div>
<div class="col-xs-12 col-sm-6 row">
<q-btn
v-if="fileEvaluationUpload"
v-if="download10Url != ''"
:href="download10Url"
target="_blank"
class="col-12"
outline
icon="visibility"
@ -361,7 +390,7 @@ function sentMessenger() {
</div>
</q-card>
</div>
<div class="col-12">
<div v-if="store.currentStep == 4" class="col-12">
<div class="q-mt-xs q-gutter-md" align="right">
<q-btn label="ติดต่อผู้ขอประเมิน" color="info" @click="openPopUp" />
<q-btn