From 2c273efb78828a770ed409957e173f548c35ba83 Mon Sep 17 00:00:00 2001 From: waruneeauy Date: Thu, 20 Feb 2025 17:38:23 +0700 Subject: [PATCH] fixing comment function registry --- .../components/TableView.vue | 48 +++++++++---------- 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/src/modules/04_registryPerson/components/TableView.vue b/src/modules/04_registryPerson/components/TableView.vue index 9a737e39e..835bbf6e2 100644 --- a/src/modules/04_registryPerson/components/TableView.vue +++ b/src/modules/04_registryPerson/components/TableView.vue @@ -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( - +