diff --git a/src/modules/21_report/components/01_org/MainReport.vue b/src/modules/21_report/components/01_org/MainReport.vue
index 19119313d..5afa2e63d 100644
--- a/src/modules/21_report/components/01_org/MainReport.vue
+++ b/src/modules/21_report/components/01_org/MainReport.vue
@@ -111,17 +111,16 @@ async function fetchSummary() {
* ฟังก์ชัน DownloadReport
* @param list รายงานที่ต้องการดาวน์โหลด
*/
-async function getReport(list: string) {
- const listFind = baseDocument.value.find(
- (item: DataDocument) => item.val == list
- )?.val;
- const newReport = listFind === "report2" ? "report2-history" : listFind;
+async function getReport(valReport: string) {
pdfSrc.value = undefined;
page.value = 1;
isLoadPDF.value = true;
- if (newReport) {
+ if (valReport) {
await http
- .get(config.API.orgReport(newReport) + `/${organizationId.value}`)
+ .post(config.API.orgReport(valReport), {
+ node: 0,
+ nodeId: organizationId.value,
+ })
.then(async (res) => {
const data = res.data.result;
detailReport.value = data;
@@ -414,10 +413,8 @@ onMounted(async () => {
color="primary"
icon="download"
>
-
- ดาวน์โหลดรายงาน
-
-
+ ดาวน์โหลดรายงาน
+