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() {
|
// 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>
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue