fix: Update export file names in DKeluhan_DKUL.vue

This commit is contained in:
kur0nek-o
2024-03-12 22:38:42 +07:00
parent f3dfec2dd0
commit 36ed670067
2 changed files with 272 additions and 81 deletions

View File

@@ -253,8 +253,7 @@ const onExporting = (e: any) => {
'Tgl Recovery',
'Durasi Response Time',
'Durasi Recovery Time',
'Posko Asal',
'Posko Tujuan',
'Unit Asal',
'Status',
'IDPEL/NO METER',
'Nama Pelapor',
@@ -273,7 +272,6 @@ const onExporting = (e: any) => {
item.durasi_response_time,
item.durasi_recovery_time,
item.nama_unit_lama,
item.nama_unit_tujuan,
item.status_akhir,
item.idpel_nometer,
item.nama_pelapor,
@@ -286,10 +284,10 @@ const onExporting = (e: any) => {
}
})
doc.save('Daftar Gangguan Dialihkan Ke Posko Lain.pdf')
doc.save('Daftar Keluhan Dialihkan Ke Unit Lain.pdf')
} else {
const workbook = new Workbook()
const worksheet = workbook.addWorksheet('Daftar Gangguan Dialihkan Ke Posko Lain')
const worksheet = workbook.addWorksheet('Daftar Keluhan Dialihkan Ke Unit Lain')
exportToExcel({
component: e.component,
@@ -299,7 +297,7 @@ const onExporting = (e: any) => {
workbook.xlsx.writeBuffer().then((buffer: any) => {
saveAs(
new Blob([buffer], { type: 'application/octet-stream' }),
'Daftar Gangguan Dialihkan Ke Posko Lain.xlsx'
'Daftar Keluhan Dialihkan Ke Unit Lain.xlsx'
)
})
})