fixing comment function registry
This commit is contained in:
parent
c03bcb3928
commit
2c273efb78
1 changed files with 24 additions and 24 deletions
|
|
@ -227,28 +227,28 @@ function redirectToPagePetition() {
|
|||
// };
|
||||
// }
|
||||
|
||||
async function getReport() {
|
||||
loadingBtn.value = true;
|
||||
await http
|
||||
.get(
|
||||
config.API.reportOrgByType(
|
||||
empType.value == "officer" ? "officer" : "emp"
|
||||
) +
|
||||
`?rootId=&year=${year.value}&ageMin=${rangeAge.value.min}&ageMax=${rangeAge.value.max}`
|
||||
)
|
||||
.then((res) => {
|
||||
const data = res.data.result;
|
||||
genReportXLSX(data);
|
||||
})
|
||||
.catch((err) => {
|
||||
messageError($q, err);
|
||||
})
|
||||
.finally(() => {
|
||||
setTimeout(() => {
|
||||
loadingBtn.value = false;
|
||||
}, 500);
|
||||
});
|
||||
}
|
||||
// async function getReport() {
|
||||
// loadingBtn.value = true;
|
||||
// await http
|
||||
// .get(
|
||||
// config.API.reportOrgByType(
|
||||
// empType.value == "officer" ? "officer" : "emp"
|
||||
// ) +
|
||||
// `?rootId=&year=${year.value}&ageMin=${rangeAge.value.min}&ageMax=${rangeAge.value.max}`
|
||||
// )
|
||||
// .then((res) => {
|
||||
// const data = res.data.result;
|
||||
// genReportXLSX(data);
|
||||
// })
|
||||
// .catch((err) => {
|
||||
// messageError($q, err);
|
||||
// })
|
||||
// .finally(() => {
|
||||
// setTimeout(() => {
|
||||
// loadingBtn.value = false;
|
||||
// }, 500);
|
||||
// });
|
||||
// }
|
||||
|
||||
// /**
|
||||
// * function เรียกไฟล์ XLSX
|
||||
|
|
@ -686,7 +686,7 @@ watch(
|
|||
</div>
|
||||
</q-card-section>
|
||||
<q-separator />
|
||||
<q-card-actions align="right" class="q-ma-xs">
|
||||
<!-- <q-card-actions align="right" class="q-ma-xs">
|
||||
<q-btn
|
||||
:loading="loadingBtn"
|
||||
:disable="loadingBtn"
|
||||
|
|
@ -698,7 +698,7 @@ watch(
|
|||
>
|
||||
<q-tooltip>ดาวน์โหลดรายงาน</q-tooltip>
|
||||
</q-btn>
|
||||
</q-card-actions>
|
||||
</q-card-actions> -->
|
||||
</q-card>
|
||||
</q-dialog>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue