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() { // async function getReport() {
loadingBtn.value = true; // loadingBtn.value = true;
await http // await http
.get( // .get(
config.API.reportOrgByType( // config.API.reportOrgByType(
empType.value == "officer" ? "officer" : "emp" // empType.value == "officer" ? "officer" : "emp"
) + // ) +
`?rootId=&year=${year.value}&ageMin=${rangeAge.value.min}&ageMax=${rangeAge.value.max}` // `?rootId=&year=${year.value}&ageMin=${rangeAge.value.min}&ageMax=${rangeAge.value.max}`
) // )
.then((res) => { // .then((res) => {
const data = res.data.result; // const data = res.data.result;
genReportXLSX(data); // genReportXLSX(data);
}) // })
.catch((err) => { // .catch((err) => {
messageError($q, err); // messageError($q, err);
}) // })
.finally(() => { // .finally(() => {
setTimeout(() => { // setTimeout(() => {
loadingBtn.value = false; // loadingBtn.value = false;
}, 500); // }, 500);
}); // });
} // }
// /** // /**
// * function XLSX // * function XLSX
@ -686,7 +686,7 @@ watch(
</div> </div>
</q-card-section> </q-card-section>
<q-separator /> <q-separator />
<q-card-actions align="right" class="q-ma-xs"> <!-- <q-card-actions align="right" class="q-ma-xs">
<q-btn <q-btn
:loading="loadingBtn" :loading="loadingBtn"
:disable="loadingBtn" :disable="loadingBtn"
@ -698,7 +698,7 @@ watch(
> >
<q-tooltip>ดาวนโหลดรายงาน</q-tooltip> <q-tooltip>ดาวนโหลดรายงาน</q-tooltip>
</q-btn> </q-btn>
</q-card-actions> </q-card-actions> -->
</q-card> </q-card>
</q-dialog> </q-dialog>