fixing comment function registry

This commit is contained in:
Warunee Tamkoo 2025-02-20 17:38:23 +07:00
parent c03bcb3928
commit 2c273efb78

View file

@ -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>