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) {