From 751f40eb1feb3d58481fbdba2a4aea43c74c878d Mon Sep 17 00:00:00 2001 From: "DESKTOP-1R2VSQH\\Lenovo ThinkPad E490" Date: Tue, 19 Nov 2024 13:23:35 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B8=9B=E0=B8=A3=E0=B8=B1=E0=B8=9A=20API=20Re?= =?UTF-8?q?port=20=E0=B9=82=E0=B8=84=E0=B8=A3=E0=B8=87=E0=B8=AA=E0=B8=A3?= =?UTF-8?q?=E0=B9=89=E0=B8=B2=E0=B8=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/02_organization/components/TreeTable.vue | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/modules/02_organization/components/TreeTable.vue b/src/modules/02_organization/components/TreeTable.vue index 5b2566d01..8729f373c 100644 --- a/src/modules/02_organization/components/TreeTable.vue +++ b/src/modules/02_organization/components/TreeTable.vue @@ -459,9 +459,14 @@ function getSummary() { * function DownloadReport */ async function onClickDownloadReport(val: string, name: string) { + const newReport = + store.typeOrganizational !== "draft" && val === "report2" + ? "report2-history" + : val; + showLoader(); await http - .get(config.API.orgReport(val) + `/${orgRootId.value}`) + .get(config.API.orgReport(newReport) + `/${orgRootId.value}`) .then(async (res) => { const data = res.data.result; if (data) {