From da2df8a6c090da56896270aafd3069fb6ab6e345 Mon Sep 17 00:00:00 2001 From: kur0nek-o Date: Mon, 1 Apr 2024 10:38:08 +0700 Subject: [PATCH 1/6] fix: loading in daftar gangguan dialihkan ke posko lain --- src/components/Dialogs/BufferDialog.vue | 27 +++++++++ .../Pages/Gangguan/Daftar/DGangguan_DKPL.vue | 14 +++-- src/components/Pages/MenuProvider.vue | 6 +- src/report/Gangguan/Daftar/DGangguan_DKPL.ts | 58 ++++++++++--------- 4 files changed, 70 insertions(+), 35 deletions(-) create mode 100644 src/components/Dialogs/BufferDialog.vue diff --git a/src/components/Dialogs/BufferDialog.vue b/src/components/Dialogs/BufferDialog.vue new file mode 100644 index 0000000..059901b --- /dev/null +++ b/src/components/Dialogs/BufferDialog.vue @@ -0,0 +1,27 @@ + diff --git a/src/components/Pages/Gangguan/Daftar/DGangguan_DKPL.vue b/src/components/Pages/Gangguan/Daftar/DGangguan_DKPL.vue index 171d77a..757cb00 100755 --- a/src/components/Pages/Gangguan/Daftar/DGangguan_DKPL.vue +++ b/src/components/Pages/Gangguan/Daftar/DGangguan_DKPL.vue @@ -33,7 +33,7 @@ /> - + /> --> + + -@/utils/helper diff --git a/src/components/Pages/Gangguan/Rekap/RGangguan_KTI.vue b/src/components/Pages/Gangguan/Rekap/RGangguan_KTI.vue index cb9b92b..4d3bc71 100755 --- a/src/components/Pages/Gangguan/Rekap/RGangguan_KTI.vue +++ b/src/components/Pages/Gangguan/Rekap/RGangguan_KTI.vue @@ -1659,4 +1659,3 @@ onMounted(() => { } }) -@/utils/helper From fd08049392dc03f4b03e970f646fcf501f6de475 Mon Sep 17 00:00:00 2001 From: kur0nek-o Date: Mon, 1 Apr 2024 12:26:52 +0700 Subject: [PATCH 3/6] fix: export pdf in daftar gangguan dialihkan ke posko lain --- .../Pages/Gangguan/Daftar/DGangguan_DKPL.vue | 5 ----- src/report/Gangguan/Daftar/DGangguan_DKPL.ts | 13 ++++++++----- 2 files changed, 8 insertions(+), 10 deletions(-) diff --git a/src/components/Pages/Gangguan/Daftar/DGangguan_DKPL.vue b/src/components/Pages/Gangguan/Daftar/DGangguan_DKPL.vue index 757cb00..a347997 100755 --- a/src/components/Pages/Gangguan/Daftar/DGangguan_DKPL.vue +++ b/src/components/Pages/Gangguan/Daftar/DGangguan_DKPL.vue @@ -8,7 +8,6 @@ ref="dataGridRef" :allow-column-reordering="true" class="max-h-[calc(100vh-140px)] mb-10" - :remote-operations="true" :data-source="data" key-expr="no_laporan" :show-column-lines="true" @@ -375,10 +374,6 @@ const dialogDetail = ref(false) const loading = ref(false) const closeDialog = () => (dialogDetail.value = false) -const bufferTest = () => { - console.log('Buffer Test') -} - const resetData = () => { data.value = [] } diff --git a/src/report/Gangguan/Daftar/DGangguan_DKPL.ts b/src/report/Gangguan/Daftar/DGangguan_DKPL.ts index 5cac721..8dcbd48 100644 --- a/src/report/Gangguan/Daftar/DGangguan_DKPL.ts +++ b/src/report/Gangguan/Daftar/DGangguan_DKPL.ts @@ -20,7 +20,7 @@ import { formatWaktu } from '@/components/Form/FiltersType/reference' import { setHeaderStyle } from '@/report/utils/xlsx' const reportName = 'Daftar Gangguan Dialihkan Ke Posko Lain' -const fontSize = 5 +const fontSize = 4 const docxFontSize = 6 const formatMetaData = (reportMeta: any) => { @@ -58,7 +58,7 @@ const exportToPDF = (reportMeta: any, data: any) => { head: [ ['PT. PLN(Persero)', '', ''], [ - { content: 'UNIT INDUK', styles: { cellWidth: 25 } }, + { content: 'UNIT INDUK', styles: { cellWidth: 35 } }, { content: ':', styles: { cellWidth: 1 } }, reportMeta.value.uid ? reportMeta.value.uid.name.toUpperCase() @@ -102,7 +102,7 @@ const exportToPDF = (reportMeta: any, data: any) => { halign: 'center' }, theme: 'plain', - startY: 18 + startY: 25 }) autoTable(doc, { @@ -175,7 +175,7 @@ const exportToPDF = (reportMeta: any, data: any) => { }) } }, - startY: 23 + startY: 35 }) autoTable(doc, { @@ -262,7 +262,10 @@ const exportToXLSX = (reportMeta: any, e: any) => { component: e.component, worksheet, autoFilterEnabled: true, - topLeftCell: { row: 10, column: 1 } + topLeftCell: { row: 10, column: 1 }, + loadPanel: { + enabled: false + } }).then(() => { workbook.xlsx.writeBuffer().then((buffer: any) => { saveAs(new Blob([buffer], { type: 'application/octet-stream' }), `Laporan ${reportName}.xlsx`) From ab8474823cf01ac3d2b4bc2872ebcd54a163d8dc Mon Sep 17 00:00:00 2001 From: Dede Fuji Abdul Date: Mon, 1 Apr 2024 13:53:05 +0700 Subject: [PATCH 4/6] Refactor Anomali_LAPPGU_LPP component and update data binding --- .../Pages/Anomali/Gangguan/Anomali_LAPPGU.vue | 37 +++- .../Anomali/Gangguan/Anomali_LAPPGU_LPP.vue | 33 +--- .../Anomali/Gangguan/Anomali_LAPPGU_LPT.vue | 160 ++++++++++-------- 3 files changed, 121 insertions(+), 109 deletions(-) diff --git a/src/components/Pages/Anomali/Gangguan/Anomali_LAPPGU.vue b/src/components/Pages/Anomali/Gangguan/Anomali_LAPPGU.vue index 0364bf5..4db90a2 100644 --- a/src/components/Pages/Anomali/Gangguan/Anomali_LAPPGU.vue +++ b/src/components/Pages/Anomali/Gangguan/Anomali_LAPPGU.vue @@ -11,7 +11,7 @@ - + \ No newline at end of file + From 7766351568edabd296fa6be57352664b14602b5c Mon Sep 17 00:00:00 2001 From: Dede Fuji Abdul Date: Mon, 1 Apr 2024 14:50:49 +0700 Subject: [PATCH 6/6] Update Anomali_LAPPGP.vue and Anomali_LAPPGU_LPT.vue components --- .../Pages/Anomali/Gangguan/Anomali_LAPPGP.vue | 13 +- .../Anomali/Gangguan/Anomali_LAPPGP_LPT.vue | 198 ++++++++++++++++-- .../Anomali/Gangguan/Anomali_LAPPGU_LPT.vue | 20 +- src/utils/api/api.graphql.ts | 9 + 4 files changed, 209 insertions(+), 31 deletions(-) diff --git a/src/components/Pages/Anomali/Gangguan/Anomali_LAPPGP.vue b/src/components/Pages/Anomali/Gangguan/Anomali_LAPPGP.vue index 630b0ff..5c2d61a 100644 --- a/src/components/Pages/Anomali/Gangguan/Anomali_LAPPGP.vue +++ b/src/components/Pages/Anomali/Gangguan/Anomali_LAPPGP.vue @@ -10,8 +10,14 @@ /> - - + + diff --git a/src/components/Pages/Anomali/Gangguan/Anomali_LAPPGU_LPT.vue b/src/components/Pages/Anomali/Gangguan/Anomali_LAPPGU_LPT.vue index c4d6aa3..3ec0358 100755 --- a/src/components/Pages/Anomali/Gangguan/Anomali_LAPPGU_LPT.vue +++ b/src/components/Pages/Anomali/Gangguan/Anomali_LAPPGU_LPT.vue @@ -618,7 +618,7 @@

No Laporan Referensi:

- +
@@ -995,12 +999,16 @@

Status Induk:

- +

Referensi Marking Induk:

- +
diff --git a/src/utils/api/api.graphql.ts b/src/utils/api/api.graphql.ts index 26cd82e..c6a333d 100755 --- a/src/utils/api/api.graphql.ts +++ b/src/utils/api/api.graphql.ts @@ -3031,7 +3031,9 @@ export const queries = { id_ulp nama_ulp no_laporan + no_laporan_referensi referensi_marking + referensi_marking_induk waktu_lapor waktu_response waktu_recovery @@ -3049,6 +3051,7 @@ export const queries = { media diselesaikan_oleh status_akhir + status_induk kode_gangguan jenis_gangguan penyebab @@ -3129,7 +3132,9 @@ export const queries = { id_ulp nama_ulp no_laporan + no_laporan_referensi referensi_marking + referensi_marking_induk waktu_lapor waktu_response waktu_recovery @@ -3147,6 +3152,7 @@ export const queries = { media diselesaikan_oleh status_akhir + status_induk kode_gangguan jenis_gangguan penyebab @@ -3227,7 +3233,9 @@ export const queries = { id_ulp nama_ulp no_laporan + no_laporan_referensi referensi_marking + referensi_marking_induk waktu_lapor waktu_response waktu_recovery @@ -3245,6 +3253,7 @@ export const queries = { media diselesaikan_oleh status_akhir + status_induk kode_gangguan jenis_gangguan penyebab