fix รายงานทะเบียนประวัติ xlsx
This commit is contained in:
parent
32ec0e31ed
commit
95224671b1
1 changed files with 1 additions and 1 deletions
|
|
@ -565,7 +565,7 @@ async function onSearch() {
|
|||
function exportToExcel() {
|
||||
const newData = rows.value.map((e: any) => {
|
||||
const { dateAppointFull, profileId, empType, ...rest } = e;
|
||||
return rest;
|
||||
return { ...rest, dateRetireLaw: date2Thai(e.dateRetireLaw) };
|
||||
});
|
||||
|
||||
const headers = columns.value?.map((item: any) => item.label) || []; // หัวคอลัมน์ภาษาไทย
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue