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