SIT ระบบพัฒนาบุคลากร>>ทุนการศึกษา/ฝึกอบรม (ฟอร์มรายงานตัวกลับเข้ารับราชการ รูปแบบไฟล์ pdf หรือ xlsx)
This commit is contained in:
parent
b6ea5ee476
commit
e4fcc797ad
1 changed files with 21 additions and 5 deletions
|
|
@ -271,13 +271,13 @@ function onOpenReturn() {
|
||||||
dialogReturn.value = true;
|
dialogReturn.value = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
function onDownload() {
|
function onDownload(type: string) {
|
||||||
showLoader();
|
showLoader();
|
||||||
http
|
http
|
||||||
.get(config.API.developmentScholarshipReport + `/${id.value}`)
|
.get(config.API.developmentScholarshipReport + `/${id.value}`)
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
const dataList = res.data.result;
|
const dataList = res.data.result;
|
||||||
genReport(dataList, "ฟอร์มรายงานตัวกลับเข้ารับราชการ(ต้นแบบ)");
|
genReport(dataList, "ฟอร์มรายงานตัวกลับเข้ารับราชการ(ต้นแบบ)", type);
|
||||||
})
|
})
|
||||||
.catch((e) => {
|
.catch((e) => {
|
||||||
messageError($q, e);
|
messageError($q, e);
|
||||||
|
|
@ -543,11 +543,27 @@ onMounted(async () => {
|
||||||
</q-item-label>
|
</q-item-label>
|
||||||
</q-item-section>
|
</q-item-section>
|
||||||
</q-item>
|
</q-item>
|
||||||
<q-item clickable v-close-popup @click="onDownload">
|
<q-item clickable v-close-popup @click="onDownload('docx')">
|
||||||
<q-item-section>
|
<q-item-section>
|
||||||
<q-item-label>
|
<q-item-label>
|
||||||
<q-icon name="download" color="primary" size="18px" />
|
<q-icon
|
||||||
ดาวน์โหลดฟอร์มต้นแบบ
|
name="mdi-file-word"
|
||||||
|
color="blue"
|
||||||
|
size="18px"
|
||||||
|
/>
|
||||||
|
ดาวน์โหลดฟอร์มต้นแบบ .docx
|
||||||
|
</q-item-label>
|
||||||
|
</q-item-section>
|
||||||
|
</q-item>
|
||||||
|
<q-item clickable v-close-popup @click="onDownload('pdf')">
|
||||||
|
<q-item-section>
|
||||||
|
<q-item-label>
|
||||||
|
<q-icon
|
||||||
|
name="mdi-file-pdf-box"
|
||||||
|
color="red"
|
||||||
|
size="18px"
|
||||||
|
/>
|
||||||
|
ดาวน์โหลดฟอร์มต้นแบบ .pdf
|
||||||
</q-item-label>
|
</q-item-label>
|
||||||
</q-item-section>
|
</q-item-section>
|
||||||
</q-item>
|
</q-item>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue