From 63a65cda862cc021fe5762292fe2409e970f8da3 Mon Sep 17 00:00:00 2001 From: waruneeta Date: Sat, 23 Dec 2023 17:27:29 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B9=81=E0=B8=81=E0=B9=89=E0=B8=AA=E0=B9=88?= =?UTF-8?q?=E0=B8=87=E0=B8=82=E0=B9=89=E0=B8=AD=E0=B8=A1=E0=B8=B9=E0=B8=A5?= =?UTF-8?q?=E0=B8=A3=E0=B8=B2=E0=B8=A2=E0=B8=87=E0=B8=B2=E0=B8=99=E0=B8=A5?= =?UTF-8?q?=E0=B8=87=E0=B9=80=E0=B8=A7=E0=B8=A5=E0=B8=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/index.ts | 2 +- src/modules/09_leave/components/3_Report/DetailReport.vue | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/api/index.ts b/src/api/index.ts index 96924375a..a1c1f94e4 100644 --- a/src/api/index.ts +++ b/src/api/index.ts @@ -53,7 +53,7 @@ const config = ref({ API_RETIREMENT_URI: `${window.location.protocol}//${window.location.host}/api/v1`, API_PROBATION_URI: `${window.location.protocol}//${window.location.host}/api/v1/probation`, API_REPORT2_URI: `${window.location.protocol}//${window.location.host}/api/v2`, - LINK_EVALUATE_PUBLISH: `${window.location.protocol}//${window.location.host}`, + LINK_EVALUATE_PUBLISH: "https://bma-ehr-publish.frappet.synology.me", }, }); diff --git a/src/modules/09_leave/components/3_Report/DetailReport.vue b/src/modules/09_leave/components/3_Report/DetailReport.vue index 0683e748b..bcf1502bc 100644 --- a/src/modules/09_leave/components/3_Report/DetailReport.vue +++ b/src/modules/09_leave/components/3_Report/DetailReport.vue @@ -137,7 +137,11 @@ async function fetchReportTimeRecords(body: any) { .post(config.API.leaveReportTimeRecords(), body) .then((res) => { const data = res.data.result; - data && genReport(data); + data && genReport({ + data: data.data[0], + reportName: data.reportName, + template: data.template + }); dataDetail.value = data; }) .catch((err) => {