diff --git a/src/modules/09_scholarship/views/detail.vue b/src/modules/09_scholarship/views/detail.vue index a682cf5..012df96 100644 --- a/src/modules/09_scholarship/views/detail.vue +++ b/src/modules/09_scholarship/views/detail.vue @@ -271,13 +271,13 @@ function onOpenReturn() { dialogReturn.value = true; } -function onDownload() { +function onDownload(type: string) { showLoader(); http .get(config.API.developmentScholarshipReport + `/${id.value}`) .then((res) => { const dataList = res.data.result; - genReport(dataList, "ฟอร์มรายงานตัวกลับเข้ารับราชการ(ต้นแบบ)"); + genReport(dataList, "ฟอร์มรายงานตัวกลับเข้ารับราชการ(ต้นแบบ)", type); }) .catch((e) => { messageError($q, e); @@ -543,11 +543,27 @@ onMounted(async () => { - + - - ดาวน์โหลดฟอร์มต้นแบบ + + ดาวน์โหลดฟอร์มต้นแบบ .docx + + + + + + + + ดาวน์โหลดฟอร์มต้นแบบ .pdf