แก้ส่งข้อมูลรายงานลงเวลา

This commit is contained in:
Warunee Tamkoo 2023-12-23 17:27:29 +07:00
parent 86ba9053a7
commit 63a65cda86
2 changed files with 6 additions and 2 deletions

View file

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