diff --git a/.env.development b/.env.development index 73a96a0..6bf8543 100755 --- a/.env.development +++ b/.env.development @@ -2,5 +2,7 @@ VITE_BASE_URL=http://localhost:5173 VITE_BASE_DIRECTORY=/ VITE_APP_VERSION=0.0.1 VITE_APP_NAME='Executive Information System' -VITE_APP_GRAPHQL_ENDPOINT=http://192.168.191.163:32169/graphql -VITE_APP_REST_ENDPOINT=http://192.168.191.163:32180 \ No newline at end of file +VITE_APP_GRAPHQL_ENDPOINT=http://127.0.0.1:32169/graphql +# VITE_APP_REST_ENDPOINT=http://192.168.191.163:32180 +# VITE_APP_GRAPHQL_ENDPOINT=http://10.1.50.173:32180/graphql +VITE_APP_REST_ENDPOINT=http://10.1.50.173:32181 \ No newline at end of file diff --git a/src/components/Pages/Gangguan/Rekap/RGangguan_ALL.vue b/src/components/Pages/Gangguan/Rekap/RGangguan_ALL.vue index 4e6cb21..c82a53f 100755 --- a/src/components/Pages/Gangguan/Rekap/RGangguan_ALL.vue +++ b/src/components/Pages/Gangguan/Rekap/RGangguan_ALL.vue @@ -18,13 +18,13 @@ :row-alternation-enabled="true" :hover-state-enabled="true" @selection-changed="onDataSelectionChanged" - :column-width="100" @exporting="onExporting" :allow-column-resizing="true" column-resizing-mode="widget" > + - + + + /> { if (import.meta.env.DEV) { - data.value = dummyData.keluhan.rekap.rekapitulasiKeluhanPenyelesaianPerFungsiBidang + data.value = [ + { + "id": 0, + "nama_regional": "REGIONAL SUMKAL", + "id_uid": 131, + "nama_uid": "WILAYAH SUMATERA BARAT", + "id_up3": 13100, + "nama_up3": "UP3 PADANG", + "id_ulp": 13105, + "nama_ulp": "ULP LUBUK ALUNG", + "fungsi_bidang": "Proses PD/TD, belum ada realisasinya ", + "total": 1, + "total_selesai": 1, + "persen_selesai": 100, + "total_inproses": 0, + "persen_inproses": 0, + "avg_durasi_response": 983, + "min_durasi_response": 983, + "max_durasi_response": 983, + "total_dibawah_sla_response": 1, + "total_diatas_sla_response": 0, + "avg_durasi_recovery": 1373, + "min_durasi_recovery": 1373, + "max_durasi_recovery": 1373, + "total_dibawah_sla_recovery": 1, + "total_diatas_sla_recovery": 0 + }, + { + "id": 1, + "nama_regional": "REGIONAL SUMKAL", + "id_uid": 131, + "nama_uid": "WILAYAH SUMATERA BARAT", + "id_up3": 13100, + "nama_up3": "UP3 PADANG", + "id_ulp": 13107, + "nama_ulp": "ULP PAINAN", + "fungsi_bidang": "Drop Tegangan ", + "total": 1, + "total_selesai": 1, + "persen_selesai": 100, + "total_inproses": 0, + "persen_inproses": 0, + "avg_durasi_response": 2228, + "min_durasi_response": 2228, + "max_durasi_response": 2228, + "total_dibawah_sla_response": 0, + "total_diatas_sla_response": 1, + "avg_durasi_recovery": 2347, + "min_durasi_recovery": 2347, + "max_durasi_recovery": 2347, + "total_dibawah_sla_recovery": 1, + "total_diatas_sla_recovery": 0 + }, + { + "id": 2, + "nama_regional": "REGIONAL SUMKAL", + "id_uid": 131, + "nama_uid": "WILAYAH SUMATERA BARAT", + "id_up3": 13100, + "nama_up3": "UP3 PADANG", + "id_ulp": 13104, + "nama_ulp": "ULP PARIAMAN", + "fungsi_bidang": "Kondisi Jaringan Listrik ", + "total": 4, + "total_selesai": 3, + "persen_selesai": 75, + "total_inproses": 1, + "persen_inproses": 25, + "avg_durasi_response": 772.6666666666666, + "min_durasi_response": 171, + "max_durasi_response": 1701, + "total_dibawah_sla_response": 2, + "total_diatas_sla_response": 1, + "avg_durasi_recovery": 3476, + "min_durasi_recovery": 2824, + "max_durasi_recovery": 3968, + "total_dibawah_sla_recovery": 4, + "total_diatas_sla_recovery": 0 + }, + { + "id": 3, + "nama_regional": "REGIONAL SUMKAL", + "id_uid": 131, + "nama_uid": "WILAYAH SUMATERA BARAT", + "id_up3": 13100, + "nama_up3": "UP3 PADANG", + "id_ulp": 13103, + "nama_ulp": "ULP INDARUNG", + "fungsi_bidang": "Alat Pembatas tidak berfungsi ", + "total": 25, + "total_selesai": 15, + "persen_selesai": 60, + "total_inproses": 10, + "persen_inproses": 40, + "avg_durasi_response": 1419, + "min_durasi_response": 109, + "max_durasi_response": 4384, + "total_dibawah_sla_response": 10, + "total_diatas_sla_response": 5, + "avg_durasi_recovery": 4791.6, + "min_durasi_recovery": 10, + "max_durasi_recovery": 21118, + "total_dibawah_sla_recovery": 17, + "total_diatas_sla_recovery": 8 + }, + { + "id": 4, + "nama_regional": "REGIONAL SUMKAL", + "id_uid": 131, + "nama_uid": "WILAYAH SUMATERA BARAT", + "id_up3": 13100, + "nama_up3": "UP3 PADANG", + "id_ulp": 13105, + "nama_ulp": "ULP LUBUK ALUNG", + "fungsi_bidang": "PD", + "total": 2, + "total_selesai": 2, + "persen_selesai": 100, + "total_inproses": 0, + "persen_inproses": 0, + "avg_durasi_response": 8920.5, + "min_durasi_response": 790, + "max_durasi_response": 17051, + "total_dibawah_sla_response": 1, + "total_diatas_sla_response": 1, + "avg_durasi_recovery": 13781.5, + "min_durasi_recovery": 6068, + "max_durasi_recovery": 21495, + "total_dibawah_sla_recovery": 0, + "total_diatas_sla_recovery": 2 + }, + { + "id": 5, + "nama_regional": "REGIONAL SUMKAL", + "id_uid": 131, + "nama_uid": "WILAYAH SUMATERA BARAT", + "id_up3": 13100, + "nama_up3": "UP3 PADANG", + "id_ulp": 13106, + "nama_ulp": "ULP SICINCIN", + "fungsi_bidang": "Alat Pembatas tidak berfungsi ", + "total": 11, + "total_selesai": 0, + "persen_selesai": 0, + "total_inproses": 11, + "persen_inproses": 100, + "avg_durasi_response": 828.25, + "min_durasi_response": 387, + "max_durasi_response": 1237, + "total_dibawah_sla_response": 4, + "total_diatas_sla_response": 0, + "avg_durasi_recovery": 2622.181818181818, + "min_durasi_recovery": 480, + "max_durasi_recovery": 15205, + "total_dibawah_sla_recovery": 10, + "total_diatas_sla_recovery": 1 + }, + { + "id": 6, + "nama_regional": "REGIONAL SUMKAL", + "id_uid": 131, + "nama_uid": "WILAYAH SUMATERA BARAT", + "id_up3": 13100, + "nama_up3": "UP3 PADANG", + "id_ulp": 13103, + "nama_ulp": "ULP INDARUNG", + "fungsi_bidang": "Tidak bisa beli Token ", + "total": 1, + "total_selesai": 1, + "persen_selesai": 100, + "total_inproses": 0, + "persen_inproses": 0, + "avg_durasi_response": 5442, + "min_durasi_response": 5442, + "max_durasi_response": 5442, + "total_dibawah_sla_response": 0, + "total_diatas_sla_response": 1, + "avg_durasi_recovery": 9759, + "min_durasi_recovery": 9759, + "max_durasi_recovery": 9759, + "total_dibawah_sla_recovery": 0, + "total_diatas_sla_recovery": 1 + }, + { + "id": 7, + "nama_regional": "REGIONAL SUMKAL", + "id_uid": 131, + "nama_uid": "WILAYAH SUMATERA BARAT", + "id_up3": 13100, + "nama_up3": "UP3 PADANG", + "id_ulp": 13102, + "nama_ulp": "ULP TABING", + "fungsi_bidang": "Kondisi Jaringan Listrik ", + "total": 13, + "total_selesai": 4, + "persen_selesai": 30.76923076923077, + "total_inproses": 9, + "persen_inproses": 69.23076923076923, + "avg_durasi_response": 5249.461538461538, + "min_durasi_response": 300, + "max_durasi_response": 22739, + "total_dibawah_sla_response": 5, + "total_diatas_sla_response": 8, + "avg_durasi_recovery": 7872.384615384615, + "min_durasi_recovery": 594, + "max_durasi_recovery": 32933, + "total_dibawah_sla_recovery": 7, + "total_diatas_sla_recovery": 6 + }, + { + "id": 8, + "nama_regional": "REGIONAL SUMKAL", + "id_uid": 131, + "nama_uid": "WILAYAH SUMATERA BARAT", + "id_up3": 13100, + "nama_up3": "UP3 PADANG", + "id_ulp": 13102, + "nama_ulp": "ULP TABING", + "fungsi_bidang": "PTL Sering Padam ", + "total": 1, + "total_selesai": 0, + "persen_selesai": 0, + "total_inproses": 1, + "persen_inproses": 100, + "avg_durasi_response": 28613, + "min_durasi_response": 28613, + "max_durasi_response": 28613, + "total_dibawah_sla_response": 0, + "total_diatas_sla_response": 1, + "avg_durasi_recovery": 37937, + "min_durasi_recovery": 37937, + "max_durasi_recovery": 37937, + "total_dibawah_sla_recovery": 0, + "total_diatas_sla_recovery": 1 + }, + { + "id": 9, + "nama_regional": "REGIONAL SUMKAL", + "id_uid": 131, + "nama_uid": "WILAYAH SUMATERA BARAT", + "id_up3": 13100, + "nama_up3": "UP3 PADANG", + "id_ulp": 13112, + "nama_ulp": "ULP KURANJI", + "fungsi_bidang": "Alat Ukur Paskabayar tidak berfungsi ", + "total": 1, + "total_selesai": 1, + "persen_selesai": 100, + "total_inproses": 0, + "persen_inproses": 0, + "avg_durasi_response": 2264, + "min_durasi_response": 2264, + "max_durasi_response": 2264, + "total_dibawah_sla_response": 0, + "total_diatas_sla_response": 1, + "avg_durasi_recovery": 3300, + "min_durasi_recovery": 3300, + "max_durasi_recovery": 3300, + "total_dibawah_sla_recovery": 1, + "total_diatas_sla_recovery": 0 + }, + ] } }) diff --git a/src/components/Pages/Keluhan/Rekap/RKeluhan_PerJenisKeluhan.vue b/src/components/Pages/Keluhan/Rekap/RKeluhan_PerJenisKeluhan.vue index 3320386..dc69a71 100755 --- a/src/components/Pages/Keluhan/Rekap/RKeluhan_PerJenisKeluhan.vue +++ b/src/components/Pages/Keluhan/Rekap/RKeluhan_PerJenisKeluhan.vue @@ -61,7 +61,7 @@ css-class="custom-table-column" cell-template="formatText" /> - + /> { } const getDetail = () => { - dataSub.value = dummyData.keluhan.rekap.rekapitulasiKeluhanPerJenisKeluhan + // dataSub.value = dummyData.keluhan.rekap.rekapitulasiKeluhanPerJenisKeluhan } const showDialogDataSelected = () => { @@ -1029,5 +1025,5 @@ onMounted(() => { if (import.meta.env.DEV) { data.value = dummyData.keluhan.rekap.rekapitulasiKeluhanPerJenisKeluhan } -}) +}) diff --git a/src/components/Pages/Keluhan/Rekap/RKeluhan_PerUnit.vue b/src/components/Pages/Keluhan/Rekap/RKeluhan_PerUnit.vue index beb75d1..f93d02f 100755 --- a/src/components/Pages/Keluhan/Rekap/RKeluhan_PerUnit.vue +++ b/src/components/Pages/Keluhan/Rekap/RKeluhan_PerUnit.vue @@ -53,14 +53,14 @@ cell-template="formatNumber" /> - + /> @@ -261,7 +261,7 @@ summary-type="sum" display-format="{0}" column="total_selesai" - css-class="text-white !text-right" + css-class="!text-right" :show-in-group-footer="true" :customize-text="(e: any) => formatNumber(parseFloat(e.value.toString()))" /> @@ -269,7 +269,7 @@ summary-type="avg" display-format="{0}" column="persen_selesai" - css-class="text-white !text-right" + css-class="!text-right" :show-in-group-footer="true" :customize-text="(e: any) => formatPercentage(parseFloat(e.value.toString()))" /> @@ -277,7 +277,7 @@ summary-type="sum" display-format="{0}" column="total_inproses" - css-class="text-white !text-right" + css-class="!text-right" :show-in-group-footer="true" :customize-text="(e: any) => formatNumber(parseFloat(e.value.toString()))" /> @@ -285,7 +285,7 @@ summary-type="avg" display-format="{0}" column="persen_inproses" - css-class="text-white !text-right" + css-class="!text-right" :show-in-group-footer="true" :customize-text="(e: any) => formatPercentage(parseFloat(e.value.toString()))" /> @@ -293,7 +293,7 @@ summary-type="sum" display-format="{0}" column="total_durasi_response" - css-class="text-white !text-right" + css-class="!text-right" :show-in-group-footer="true" :customize-text="(e: any) => formatNumber(parseFloat(e.value.toString()))" /> @@ -301,7 +301,7 @@ summary-type="avg" display-format="{0}" column="avg_durasi_response" - css-class="text-white !text-right" + css-class="!text-right" :show-in-group-footer="true" :customize-text="(e: any) => formatNumber(parseFloat(e.value.toString()))" /> @@ -309,7 +309,7 @@ summary-type="min" display-format="{0}" column="min_durasi_response" - css-class="text-white !text-right" + css-class="!text-right" :show-in-group-footer="true" :customize-text="(e: any) => (parseInt(e.value) ? formatWaktu(e.value) : '-')" /> @@ -317,7 +317,7 @@ summary-type="max" display-format="{0}" column="max_durasi_response" - css-class="text-white !text-right" + css-class="!text-right" :show-in-group-footer="true" :customize-text="(e: any) => (parseInt(e.value) ? formatWaktu(e.value) : '-')" /> @@ -325,7 +325,7 @@ summary-type="sum" display-format="{0}" column="total_diatas_sla_response" - css-class="text-white !text-right" + css-class="!text-right" :show-in-group-footer="true" :customize-text="(e: any) => formatNumber(parseFloat(e.value.toString()))" /> @@ -333,7 +333,7 @@ summary-type="sum" display-format="{0}" column="total_dibawah_sla_response" - css-class="text-white !text-right" + css-class="!text-right" :show-in-group-footer="true" :customize-text="(e: any) => formatNumber(parseFloat(e.value.toString()))" /> @@ -341,7 +341,7 @@ summary-type="sum" display-format="{0}" column="total_durasi_recovery" - css-class="text-white !text-right" + css-class="!text-right" :show-in-group-footer="true" :customize-text="(e: any) => formatNumber(parseFloat(e.value.toString()))" /> @@ -349,7 +349,7 @@ summary-type="avg" display-format="{0}" column="avg_durasi_recovery" - css-class="text-white !text-right" + css-class="!text-right" :show-in-group-footer="true" :customize-text="(e: any) => formatNumber(parseFloat(e.value.toString()))" /> @@ -357,7 +357,7 @@ summary-type="min" display-format="{0}" column="min_durasi_recovery" - css-class="text-white !text-right" + css-class="!text-right" :show-in-group-footer="true" :customize-text="(e: any) => (parseInt(e.value) ? formatWaktu(e.value) : '-')" /> @@ -365,7 +365,7 @@ summary-type="max" display-format="{0}" column="max_durasi_recovery" - css-class="text-white !text-right" + css-class="!text-right" :show-in-group-footer="true" :customize-text="(e: any) => (parseInt(e.value) ? formatWaktu(e.value) : '-')" /> @@ -373,7 +373,7 @@ summary-type="sum" display-format="{0}" column="total_diatas_sla_recovery" - css-class="text-white !text-right" + css-class="!text-right" :show-in-group-footer="true" :customize-text="(e: any) => formatNumber(parseFloat(e.value.toString()))" /> @@ -381,7 +381,7 @@ summary-type="sum" display-format="{0}" column="total_dibawah_sla_recovery" - css-class="text-white !text-right" + css-class="!text-right" :show-in-group-footer="true" :customize-text="(e: any) => formatNumber(parseFloat(e.value.toString()))" /> @@ -549,7 +549,7 @@
{ } const getDetail = () => { - dataSub.value = dummyData.keluhan.rekap.rekapitulasiKeluhanPerUnit + // dataSub.value = dummyData.keluhan.rekap.rekapitulasiKeluhanPerUnit } const showDialogDataSelected = () => { @@ -1022,7 +1019,413 @@ const filters = ref() onMounted(() => { if (import.meta.env.DEV) { - data.value = dummyData.keluhan.rekap.rekapitulasiKeluhanPerUnit + data.value = [ + { + id: 0, + nama_regional: 'REGIONAL SUMKAL', + id_uid: 120, + nama_uid: 'WILAYAH SUMATERA UTARA', + id_up3: 12100, + nama_up3: 'UP3 PEMATANG SIANTAR', + id_ulp: 12102, + nama_ulp: 'ULP LIMA PULUH', + total: 11, + total_selesai: 1, + persen_selesai: 9.090909090909092, + total_inproses: 10, + persen_inproses: 90.9090909090909, + total_durasi_response: 10193, + avg_durasi_response: 1019.3, + min_durasi_response: 379, + max_durasi_response: 1782, + total_dibawah_sla_response: 7, + total_diatas_sla_response: 3, + total_durasi_recovery: 13701, + avg_durasi_recovery: 1245.5454545454545, + min_durasi_recovery: 388, + max_durasi_recovery: 2501, + total_dibawah_sla_recovery: 11, + total_diatas_sla_recovery: 0 + }, + { + id: 1, + nama_regional: 'REGIONAL SULMAPANA', + id_uid: 41, + nama_uid: 'WILAYAH MALUKU DAN MALUKU UTARA', + id_up3: 412, + nama_up3: 'UP3 TERNATE', + id_ulp: 41230, + nama_ulp: 'ULP BACAN', + total: 6, + total_selesai: 4, + persen_selesai: 66.66666666666666, + total_inproses: 2, + persen_inproses: 33.33333333333333, + total_durasi_response: 7291, + avg_durasi_response: 1458.2, + min_durasi_response: 308, + max_durasi_response: 2736, + total_dibawah_sla_response: 2, + total_diatas_sla_response: 3, + total_durasi_recovery: 19860, + avg_durasi_recovery: 3310, + min_durasi_recovery: 2152, + max_durasi_recovery: 6176, + total_dibawah_sla_recovery: 5, + total_diatas_sla_recovery: 1 + }, + { + id: 2, + nama_regional: 'REGIONAL JMB', + id_uid: 101, + nama_uid: 'DISTRIBUSI JAWA TENGAH & DIY', + id_up3: 52150, + nama_up3: 'UP3 MAGELANG', + id_ulp: 52156, + nama_ulp: 'ULP PARAKAN', + total: 56, + total_selesai: 15, + persen_selesai: 26.785714285714285, + total_inproses: 41, + persen_inproses: 73.21428571428571, + total_durasi_response: 145058, + avg_durasi_response: 3086.340425531915, + min_durasi_response: 459, + max_durasi_response: 8933, + total_dibawah_sla_response: 11, + total_diatas_sla_response: 36, + total_durasi_recovery: 204948, + avg_durasi_recovery: 3659.785714285714, + min_durasi_recovery: 1, + max_durasi_recovery: 15497, + total_dibawah_sla_recovery: 43, + total_diatas_sla_recovery: 13 + }, + { + id: 3, + nama_regional: 'REGIONAL SULMAPANA', + id_uid: 31, + nama_uid: 'WILAYAH SULAWESI UTARA,TENGAH DAN GORONTALO', + id_up3: 31500, + nama_up3: 'UP3 TOLITOLI', + id_ulp: 31530, + nama_ulp: 'ULP BANGKIR', + total: 56, + total_selesai: 23, + persen_selesai: 41.07142857142857, + total_inproses: 33, + persen_inproses: 58.92857142857143, + total_durasi_response: 14809, + avg_durasi_response: 643.8695652173913, + min_durasi_response: 63, + max_durasi_response: 6694, + total_dibawah_sla_response: 22, + total_diatas_sla_response: 1, + total_durasi_recovery: 63412, + avg_durasi_recovery: 1132.357142857143, + min_durasi_recovery: 76, + max_durasi_recovery: 6815, + total_dibawah_sla_recovery: 52, + total_diatas_sla_recovery: 4 + }, + { + id: 4, + nama_regional: 'REGIONAL JMB', + id_uid: 103, + nama_uid: 'DISTRIBUSI JAWA TIMUR', + id_up3: 154, + nama_up3: 'UP3 SITUBONDO', + id_ulp: 51654, + nama_ulp: 'ULP WONOSARI', + total: 92, + total_selesai: 0, + persen_selesai: 0, + total_inproses: 92, + persen_inproses: 100, + total_durasi_response: 201431, + avg_durasi_response: 2426.879518072289, + min_durasi_response: 14, + max_durasi_response: 22160, + total_dibawah_sla_response: 54, + total_diatas_sla_response: 29, + total_durasi_recovery: 856596, + avg_durasi_recovery: 9310.826086956522, + min_durasi_recovery: 0, + max_durasi_recovery: 74239, + total_dibawah_sla_recovery: 49, + total_diatas_sla_recovery: 43 + }, + { + id: 5, + nama_regional: 'REGIONAL SUMKAL', + id_uid: 110, + nama_uid: 'WILAYAH ACEH', + id_up3: 116, + nama_up3: 'UP3 SIGLI', + id_ulp: 11662, + nama_ulp: 'ULP MEUREUDU', + total: 8, + total_selesai: 0, + persen_selesai: 0, + total_inproses: 8, + persen_inproses: 100, + total_durasi_response: 3766, + avg_durasi_response: 470.75, + min_durasi_response: 99, + max_durasi_response: 1322, + total_dibawah_sla_response: 8, + total_diatas_sla_response: 0, + total_durasi_recovery: 4463, + avg_durasi_recovery: 557.875, + min_durasi_recovery: 132, + max_durasi_recovery: 1390, + total_dibawah_sla_recovery: 8, + total_diatas_sla_recovery: 0 + }, + { + id: 6, + nama_regional: 'REGIONAL JMB', + id_uid: 287, + nama_uid: 'DISTRIBUSI BALI', + id_up3: 329, + nama_up3: 'UP3 BALI UTARA', + id_ulp: 55340, + nama_ulp: 'ULP GILIMANUK', + total: 47, + total_selesai: 19, + persen_selesai: 40.42553191489361, + total_inproses: 28, + persen_inproses: 59.57446808510638, + total_durasi_response: 47015, + avg_durasi_response: 1000.3191489361702, + min_durasi_response: 22, + max_durasi_response: 14684, + total_dibawah_sla_response: 42, + total_diatas_sla_response: 5, + total_durasi_recovery: 74421, + avg_durasi_recovery: 1583.4255319148936, + min_durasi_recovery: 257, + max_durasi_recovery: 14769, + total_dibawah_sla_recovery: 44, + total_diatas_sla_recovery: 3 + }, + { + id: 7, + nama_regional: null, + id_uid: 0, + nama_uid: '', + id_up3: 0, + nama_up3: '', + id_ulp: 22450, + nama_ulp: 'ULP PANGKALAN BUN', + total: 167, + total_selesai: 0, + persen_selesai: 0, + total_inproses: 167, + persen_inproses: 100, + total_durasi_response: 118469, + avg_durasi_response: 789.7933333333333, + min_durasi_response: 52, + max_durasi_response: 3752, + total_dibawah_sla_response: 135, + total_diatas_sla_response: 15, + total_durasi_recovery: 173448, + avg_durasi_recovery: 1038.6107784431138, + min_durasi_recovery: 0, + max_durasi_recovery: 3793, + total_dibawah_sla_recovery: 167, + total_diatas_sla_recovery: 0 + }, + { + id: 8, + nama_regional: 'REGIONAL SUMKAL', + id_uid: 131, + nama_uid: 'WILAYAH SUMATERA BARAT', + id_up3: 13300, + nama_up3: 'UP3 SOLOK', + id_ulp: 13334, + nama_ulp: 'ULP SILUNGKANG', + total: 1, + total_selesai: 0, + persen_selesai: 0, + total_inproses: 1, + persen_inproses: 100, + total_durasi_response: 5118, + avg_durasi_response: 5118, + min_durasi_response: 5118, + max_durasi_response: 5118, + total_dibawah_sla_response: 0, + total_diatas_sla_response: 1, + total_durasi_recovery: 5696, + avg_durasi_recovery: 5696, + min_durasi_recovery: 5696, + max_durasi_recovery: 5696, + total_dibawah_sla_recovery: 0, + total_diatas_sla_recovery: 1 + }, + { + id: 9, + nama_regional: 'REGIONAL SUMKAL', + id_uid: 221, + nama_uid: 'WILAYAH KALIMANTAN SELATAN DAN TENGAH', + id_up3: 2220, + nama_up3: 'UP3 BARABAI', + id_ulp: 22230, + nama_ulp: 'ULP AMUNTAI', + total: 48, + total_selesai: 4, + persen_selesai: 8.333333333333332, + total_inproses: 44, + persen_inproses: 91.66666666666666, + total_durasi_response: 25050, + avg_durasi_response: 532.9787234042553, + min_durasi_response: 58, + max_durasi_response: 2352, + total_dibawah_sla_response: 44, + total_diatas_sla_response: 3, + total_durasi_recovery: 49151, + avg_durasi_recovery: 1023.9791666666666, + min_durasi_recovery: 129, + max_durasi_recovery: 2853, + total_dibawah_sla_recovery: 48, + total_diatas_sla_recovery: 0 + }, + { + id: 10, + nama_regional: 'REGIONAL SULMAPANA', + id_uid: 31, + nama_uid: 'WILAYAH SULAWESI UTARA,TENGAH DAN GORONTALO', + id_up3: 31700, + nama_up3: 'UP3 KOTAMOBAGU', + id_ulp: 31730, + nama_ulp: 'ULP MODAYAG', + total: 21, + total_selesai: 11, + persen_selesai: 52.38095238095239, + total_inproses: 10, + persen_inproses: 47.61904761904761, + total_durasi_response: 11456, + avg_durasi_response: 716, + min_durasi_response: 126, + max_durasi_response: 2376, + total_dibawah_sla_response: 13, + total_diatas_sla_response: 3, + total_durasi_recovery: 30489, + avg_durasi_recovery: 1451.857142857143, + min_durasi_recovery: 0, + max_durasi_recovery: 3482, + total_dibawah_sla_recovery: 21, + total_diatas_sla_recovery: 0 + }, + { + id: 11, + nama_regional: 'REGIONAL JMB', + id_uid: 427, + nama_uid: 'DISTRIBUSI JAWA BARAT', + id_up3: 546, + nama_up3: 'UP3 TASIKMALAYA', + id_ulp: 53231, + nama_ulp: 'ULP CIAMIS', + total: 123, + total_selesai: 16, + persen_selesai: 13.008130081300814, + total_inproses: 107, + persen_inproses: 86.99186991869918, + total_durasi_response: 476405, + avg_durasi_response: 5881.543209876543, + min_durasi_response: 46, + max_durasi_response: 41257, + total_dibawah_sla_response: 21, + total_diatas_sla_response: 60, + total_durasi_recovery: 1177396, + avg_durasi_recovery: 9572.325203252032, + min_durasi_recovery: 0, + max_durasi_recovery: 45912, + total_dibawah_sla_recovery: 57, + total_diatas_sla_recovery: 66 + }, + { + id: 12, + nama_regional: 'REGIONAL JMB', + id_uid: 103, + nama_uid: 'DISTRIBUSI JAWA TIMUR', + id_up3: 157, + nama_up3: 'UP3 SURABAYA UTARA', + id_ulp: 51101, + nama_ulp: 'ULP INDRAPURA', + total: 139, + total_selesai: 131, + persen_selesai: 94.24460431654677, + total_inproses: 8, + persen_inproses: 5.755395683453238, + total_durasi_response: 491177, + avg_durasi_response: 3749.442748091603, + min_durasi_response: 18, + max_durasi_response: 20546, + total_dibawah_sla_response: 51, + total_diatas_sla_response: 80, + total_durasi_recovery: 775066, + avg_durasi_recovery: 5576.014388489209, + min_durasi_recovery: 1, + max_durasi_recovery: 49206, + total_dibawah_sla_recovery: 78, + total_diatas_sla_recovery: 61 + }, + { + id: 13, + nama_regional: 'REGIONAL SULMAPANA', + id_uid: 41, + nama_uid: 'WILAYAH MALUKU DAN MALUKU UTARA', + id_up3: 414, + nama_up3: 'UP3 MASOHI', + id_ulp: 41430, + nama_ulp: 'ULP MASOHI', + total: 19, + total_selesai: 17, + persen_selesai: 89.47368421052632, + total_inproses: 2, + persen_inproses: 10.526315789473683, + total_durasi_response: 18570, + avg_durasi_response: 1092.3529411764705, + min_durasi_response: 480, + max_durasi_response: 2337, + total_dibawah_sla_response: 13, + total_diatas_sla_response: 4, + total_durasi_recovery: 41850, + avg_durasi_recovery: 2202.6315789473683, + min_durasi_recovery: 22, + max_durasi_recovery: 4386, + total_dibawah_sla_recovery: 18, + total_diatas_sla_recovery: 1 + }, + { + id: 14, + nama_regional: 'REGIONAL SUMKAL', + id_uid: 131, + nama_uid: 'WILAYAH SUMATERA BARAT', + id_up3: 13100, + nama_up3: 'UP3 PADANG', + id_ulp: 13105, + nama_ulp: 'ULP LUBUK ALUNG', + total: 67, + total_selesai: 56, + persen_selesai: 83.5820895522388, + total_inproses: 11, + persen_inproses: 16.417910447761194, + total_durasi_response: 67996, + avg_durasi_response: 1214.2142857142858, + min_durasi_response: 45, + max_durasi_response: 17051, + total_dibawah_sla_response: 48, + total_diatas_sla_response: 8, + total_durasi_recovery: 546970, + avg_durasi_recovery: 8163.731343283582, + min_durasi_recovery: 0, + max_durasi_recovery: 221267, + total_dibawah_sla_recovery: 40, + total_diatas_sla_recovery: 27 + } + ] } }) diff --git a/src/components/Pages/Monalisa/Gangguan/Rekap/MonalisaGR_ENSGangguan.vue b/src/components/Pages/Monalisa/Gangguan/Rekap/MonalisaGR_ENSGangguan.vue index 2535804..2620853 100755 --- a/src/components/Pages/Monalisa/Gangguan/Rekap/MonalisaGR_ENSGangguan.vue +++ b/src/components/Pages/Monalisa/Gangguan/Rekap/MonalisaGR_ENSGangguan.vue @@ -1,43 +1,178 @@ @@ -243,6 +252,7 @@ import { DxColumnFixing, DxExport, DxGroupItem, + DxGrouping, DxLoadPanel, DxPaging, DxScrolling, diff --git a/src/utils/api/api.graphql.ts b/src/utils/api/api.graphql.ts index c33e30f..47fc3c6 100755 --- a/src/utils/api/api.graphql.ts +++ b/src/utils/api/api.graphql.ts @@ -181,21 +181,21 @@ export const queries = { idUid: $idUid idUp3: $idUp3 ) { - alamat_pelapor - durasi_recovery_time - durasi_response_time - idpel_nometer + no_laporan + waktu_lapor + waktu_response + waktu_recovery jumlah_lapor + durasi_response_time + durasi_recovery_time + status_akhir + idpel_nometer + nama_pelapor + alamat_pelapor + no_telp_pelapor keterangan_pelapor media - nama_pelapor nama_ulp - no_laporan - no_telp_pelapor - status_akhir - waktu_lapor - waktu_recovery - waktu_response } } `, @@ -321,6 +321,12 @@ export const queries = { idUid: $idUid idUp3: $idUp3 ) { + id + nama_regional + id_uid + nama_uid + id_up3 + nama_up3 id_ulp nama_ulp total @@ -329,12 +335,12 @@ export const queries = { total_inproses persen_inproses total_durasi_response - total_durasi_recovery avg_durasi_response min_durasi_response max_durasi_response total_dibawah_sla_response total_diatas_sla_response + total_durasi_recovery avg_durasi_recovery min_durasi_recovery max_durasi_recovery @@ -441,8 +447,6 @@ export const queries = { avg_durasi_response min_durasi_response max_durasi_response - total_durasi_response - total_durasi_recovery total_dibawah_sla_response total_diatas_sla_response avg_durasi_recovery @@ -468,10 +472,16 @@ export const queries = { idUid: $idUid idUp3: $idUp3 ) { + id + nama_regional + id_uid + nama_uid + id_up3 + nama_up3 + id_ulp + nama_ulp fungsi_bidang total - total_durasi_response - total_durasi_recovery total_selesai persen_selesai total_inproses @@ -496,6 +506,7 @@ export const queries = { $idUlp: Int! $idUid: Int! $idUp3: Int! + $media: String! ) { rekapitulasiKeluhanBerdasarkanMedia( dateFrom: $dateFrom @@ -503,9 +514,18 @@ export const queries = { idUlp: $idUlp idUid: $idUid idUp3: $idUp3 + media: $media ) { media tgl1 + tgl2 + tgl3 + tgl4 + tgl5 + tgl6 + tgl7 + tgl8 + tgl9 tgl10 tgl11 tgl12 @@ -516,7 +536,6 @@ export const queries = { tgl17 tgl18 tgl19 - tgl2 tgl20 tgl21 tgl22 @@ -527,15 +546,9 @@ export const queries = { tgl27 tgl28 tgl29 - tgl3 tgl30 tgl31 - tgl4 - tgl5 - tgl6 - tgl7 - tgl8 - tgl9 + total } } `, @@ -554,6 +567,12 @@ export const queries = { idUid: $idUid idUp3: $idUp3 ) { + id + nama_regional + id_uid + nama_uid + id_up3 + nama_up3 id_ulp nama_ulp total @@ -561,11 +580,13 @@ export const queries = { persen_selesai total_inproses persen_inproses + total_durasi_response avg_durasi_response min_durasi_response max_durasi_response total_dibawah_sla_response total_diatas_sla_response + total_durasi_recovery avg_durasi_recovery min_durasi_recovery max_durasi_recovery @@ -755,26 +776,37 @@ export const queries = { idUid: $idUid idUp3: $idUp3 ) { + id + id_uid + nama_uid + id_up3 + nama_up3 + id_ulp + nama_ulp + id_posko + nama_posko + id_regu kode_regu nama_regu - avg_durasi_recovery - avg_durasi_response - max_durasi_recovery - max_durasi_response - min_durasi_recovery - min_durasi_response - persen_inproses - persen_selesai - nama_posko total - total_durasi_recovery - total_durasi_response - total_diatas_sla_recovery - total_diatas_sla_response - total_dibawah_sla_recovery - total_dibawah_sla_response - total_inproses total_selesai + persen_selesai + total_inproses + persen_inproses + total_durasi_response + avg_durasi_response + min_durasi_response + max_durasi_response + total_dibawah_sla_response + total_diatas_sla_response + total_durasi_recovery + avg_durasi_recovery + min_durasi_recovery + max_durasi_recovery + total_dibawah_sla_recovery + total_diatas_sla_recovery + total_response + total_recovery } } `, @@ -793,25 +825,33 @@ export const queries = { idUid: $idUid idUp3: $idUp3 ) { - avg_durasi_recovery - avg_durasi_response + id + id_uid + nama_uid + id_up3 + nama_up3 + id_ulp + nama_ulp id_posko - max_durasi_recovery - max_durasi_response - min_durasi_recovery - min_durasi_response nama_posko - persen_inproses - persen_selesai total - total_durasi_recovery - total_durasi_response - total_diatas_sla_recovery - total_diatas_sla_response - total_dibawah_sla_recovery - total_dibawah_sla_response - total_inproses total_selesai + persen_selesai + total_inproses + persen_inproses + total_durasi_response + avg_durasi_response + min_durasi_response + max_durasi_response + total_dibawah_sla_response + total_diatas_sla_response + avg_durasi_recovery + min_durasi_recovery + max_durasi_recovery + total_dibawah_sla_recovery + total_diatas_sla_recovery + total_response + total_recovery } } `, @@ -830,6 +870,7 @@ export const queries = { idUid: $idUid idUp3: $idUp3 ) { + nama_regional id id_uid nama_uid @@ -867,8 +908,10 @@ export const queries = { idUid: $idUid idUp3: $idUp3 ) { - kode + id + id_fasilitas sub_kelompok + kode total total_selesai persen_selesai @@ -886,6 +929,8 @@ export const queries = { max_durasi_recovery total_dibawah_sla_recovery total_diatas_sla_recovery + total_response + total_recovery } } `, @@ -1471,6 +1516,7 @@ export const queries = { bulan: $bulan tahun: $tahun ) { + id nama_regional id_uid nama_uid diff --git a/src/utils/dummy.ts b/src/utils/dummy.ts index bae3557..3527169 100644 --- a/src/utils/dummy.ts +++ b/src/utils/dummy.ts @@ -586131,60 +586131,279 @@ export const dummyData = { } ], rekapitulasiKeluhanPerJenisKeluhan: [ - { - "tipe_keluhan": "ULP BATURAJA", - "total": 83, - "total_selesai": 83, - "persen_selesai": 100, - "total_inproses": 0, - "persen_inproses": 0, - "avg_durasi_response": 25800.21686746988, - "min_durasi_response": 64, - "max_durasi_response": 173218, - "total_dibawah_sla_response": 38, - "total_diatas_sla_response": 45, - "avg_durasi_recovery": 3379854.0361445784, - "min_durasi_recovery": 1064, - "max_durasi_recovery": 5099979, - "total_dibawah_sla_recovery": 7, - "total_diatas_sla_recovery": 76 - }, - { - "tipe_keluhan": "ULP KIJANG", - "total": 42, - "total_selesai": 42, - "persen_selesai": 100, - "total_inproses": 0, - "persen_inproses": 0, - "avg_durasi_response": 1056.1904761904761, - "min_durasi_response": 118, - "max_durasi_response": 3920, - "total_dibawah_sla_response": 42, - "total_diatas_sla_response": 0, - "avg_durasi_recovery": 226031.88095238095, - "min_durasi_recovery": 74, - "max_durasi_recovery": 4995551, - "total_dibawah_sla_recovery": 40, - "total_diatas_sla_recovery": 2 - }, - { - "tipe_keluhan": "ULP BARABAI", - "total": 40, - "total_selesai": 40, - "persen_selesai": 100, - "total_inproses": 0, - "persen_inproses": 0, - "avg_durasi_response": 858.9, - "min_durasi_response": 62, - "max_durasi_response": 2169, - "total_dibawah_sla_response": 40, - "total_diatas_sla_response": 0, - "avg_durasi_recovery": 2238019.725, - "min_durasi_recovery": 117, - "max_durasi_recovery": 5099482, - "total_dibawah_sla_recovery": 17, - "total_diatas_sla_recovery": 23 - } + { + "tipe_keluhan": "Umum", + "nama_uid": "WILAYAH NUSA TENGGARA TIMUR", + "total": 1, + "total_selesai": 0, + "persen_selesai": 0.0, + "total_inproses": 1, + "persen_inproses": 100.0, + "total_durasi_response": null, + "avg_durasi_response": null, + "min_durasi_response": null, + "max_durasi_response": null, + "total_dibawah_sla_response": 0, + "total_diatas_sla_response": 0, + "total_durasi_recovery": 1064, + "avg_durasi_recovery": 1064.0, + "min_durasi_recovery": 1064, + "max_durasi_recovery": 1064, + "total_dibawah_sla_recovery": 1, + "total_diatas_sla_recovery": 0 + }, + { + "tipe_keluhan": "Alat Pembatas tidak berfungsi ", + "nama_uid": "DISTRIBUSI JAWA TIMUR", + "total": 10, + "total_selesai": 0, + "persen_selesai": 0.0, + "total_inproses": 10, + "persen_inproses": 100.0, + "total_durasi_response": 143356, + "avg_durasi_response": 14335.6, + "min_durasi_response": 185, + "max_durasi_response": 42599, + "total_dibawah_sla_response": 2, + "total_diatas_sla_response": 8, + "total_durasi_recovery": 149627, + "avg_durasi_recovery": 14962.7, + "min_durasi_recovery": 227, + "max_durasi_recovery": 42778, + "total_dibawah_sla_recovery": 3, + "total_diatas_sla_recovery": 7 + }, + { + "tipe_keluhan": "Gagal Input Token", + "nama_uid": "DISTRIBUSI LAMPUNG", + "total": 1, + "total_selesai": 1, + "persen_selesai": 100.0, + "total_inproses": 0, + "persen_inproses": 0.0, + "total_durasi_response": 323, + "avg_durasi_response": 323.0, + "min_durasi_response": 323, + "max_durasi_response": 323, + "total_dibawah_sla_response": 1, + "total_diatas_sla_response": 0, + "total_durasi_recovery": 1319, + "avg_durasi_recovery": 1319.0, + "min_durasi_recovery": 1319, + "max_durasi_recovery": 1319, + "total_dibawah_sla_recovery": 1, + "total_diatas_sla_recovery": 0 + }, + { + "tipe_keluhan": "Alat Pembatas tidak berfungsi ", + "nama_uid": "DISTRIBUSI JAWA BARAT", + "total": 4, + "total_selesai": 0, + "persen_selesai": 0.0, + "total_inproses": 4, + "persen_inproses": 100.0, + "total_durasi_response": null, + "avg_durasi_response": null, + "min_durasi_response": null, + "max_durasi_response": null, + "total_dibawah_sla_response": 0, + "total_diatas_sla_response": 0, + "total_durasi_recovery": 114174, + "avg_durasi_recovery": 28543.5, + "min_durasi_recovery": 2506, + "max_durasi_recovery": 46094, + "total_dibawah_sla_recovery": 1, + "total_diatas_sla_recovery": 3 + }, + { + "tipe_keluhan": "Alat Pembatas tidak berfungsi ", + "nama_uid": "WILAYAH KALIMANTAN SELATAN DAN TENGAH", + "total": 2, + "total_selesai": 0, + "persen_selesai": 0.0, + "total_inproses": 2, + "persen_inproses": 100.0, + "total_durasi_response": 417, + "avg_durasi_response": 417.0, + "min_durasi_response": 417, + "max_durasi_response": 417, + "total_dibawah_sla_response": 1, + "total_diatas_sla_response": 0, + "total_durasi_recovery": 1661, + "avg_durasi_recovery": 830.5, + "min_durasi_recovery": 482, + "max_durasi_recovery": 1179, + "total_dibawah_sla_recovery": 2, + "total_diatas_sla_recovery": 0 + }, + { + "tipe_keluhan": "PD", + "nama_uid": "DISTRIBUSI JAWA TIMUR", + "total": 1, + "total_selesai": 1, + "persen_selesai": 100.0, + "total_inproses": 0, + "persen_inproses": 0.0, + "total_durasi_response": 8693, + "avg_durasi_response": 8693.0, + "min_durasi_response": 8693, + "max_durasi_response": 8693, + "total_dibawah_sla_response": 0, + "total_diatas_sla_response": 1, + "total_durasi_recovery": 9510, + "avg_durasi_recovery": 9510.0, + "min_durasi_recovery": 9510, + "max_durasi_recovery": 9510, + "total_dibawah_sla_recovery": 0, + "total_diatas_sla_recovery": 1 + }, + { + "tipe_keluhan": "Alat Pembatas tidak berfungsi ", + "nama_uid": "DISTRIBUSI JAWA TENGAH & DIY", + "total": 2, + "total_selesai": 0, + "persen_selesai": 0.0, + "total_inproses": 2, + "persen_inproses": 100.0, + "total_durasi_response": null, + "avg_durasi_response": null, + "min_durasi_response": null, + "max_durasi_response": null, + "total_dibawah_sla_response": 0, + "total_diatas_sla_response": 0, + "total_durasi_recovery": 2226, + "avg_durasi_recovery": 1113.0, + "min_durasi_recovery": 13, + "max_durasi_recovery": 2213, + "total_dibawah_sla_recovery": 2, + "total_diatas_sla_recovery": 0 + }, + { + "tipe_keluhan": "Alat Ukur Prabayar tidak berfungsi ", + "nama_uid": "DISTRIBUSI JAWA BARAT", + "total": 2, + "total_selesai": 2, + "persen_selesai": 100.0, + "total_inproses": 0, + "persen_inproses": 0.0, + "total_durasi_response": 9595, + "avg_durasi_response": 4797.5, + "min_durasi_response": 4752, + "max_durasi_response": 4843, + "total_dibawah_sla_response": 0, + "total_diatas_sla_response": 2, + "total_durasi_recovery": 9868, + "avg_durasi_recovery": 4934.0, + "min_durasi_recovery": 4892, + "max_durasi_recovery": 4976, + "total_dibawah_sla_recovery": 0, + "total_diatas_sla_recovery": 2 + }, + { + "tipe_keluhan": "Gagal Input Token", + "nama_uid": "DISTRIBUSI JAWA TIMUR", + "total": 7, + "total_selesai": 7, + "persen_selesai": 100.0, + "total_inproses": 0, + "persen_inproses": 0.0, + "total_durasi_response": 6715, + "avg_durasi_response": 959.2857142857143, + "min_durasi_response": 16, + "max_durasi_response": 5516, + "total_dibawah_sla_response": 6, + "total_diatas_sla_response": 1, + "total_durasi_recovery": 18280, + "avg_durasi_recovery": 2611.4285714285716, + "min_durasi_recovery": 451, + "max_durasi_recovery": 6701, + "total_dibawah_sla_recovery": 5, + "total_diatas_sla_recovery": 2 + }, + { + "tipe_keluhan": "Gagal Input Token", + "nama_uid": "WILAYAH SUMATERA UTARA", + "total": 1, + "total_selesai": 1, + "persen_selesai": 100.0, + "total_inproses": 0, + "persen_inproses": 0.0, + "total_durasi_response": 24723, + "avg_durasi_response": 24723.0, + "min_durasi_response": 24723, + "max_durasi_response": 24723, + "total_dibawah_sla_response": 0, + "total_diatas_sla_response": 1, + "total_durasi_recovery": 25761, + "avg_durasi_recovery": 25761.0, + "min_durasi_recovery": 25761, + "max_durasi_recovery": 25761, + "total_dibawah_sla_recovery": 0, + "total_diatas_sla_recovery": 1 + }, + { + "tipe_keluhan": "Instalasi / Wiring tidak berfungsi", + "nama_uid": "DISTRIBUSI JAWA BARAT", + "total": 1, + "total_selesai": 1, + "persen_selesai": 100.0, + "total_inproses": 0, + "persen_inproses": 0.0, + "total_durasi_response": 1925, + "avg_durasi_response": 1925.0, + "min_durasi_response": 1925, + "max_durasi_response": 1925, + "total_dibawah_sla_response": 0, + "total_diatas_sla_response": 1, + "total_durasi_recovery": 5959, + "avg_durasi_recovery": 5959.0, + "min_durasi_recovery": 5959, + "max_durasi_recovery": 5959, + "total_dibawah_sla_recovery": 0, + "total_diatas_sla_recovery": 1 + }, + { + "tipe_keluhan": "Sudah Bayar Belum Disambung", + "nama_uid": "DISTRIBUSI JAWA BARAT", + "total": 4, + "total_selesai": 3, + "persen_selesai": 75.0, + "total_inproses": 1, + "persen_inproses": 25.0, + "total_durasi_response": 6977, + "avg_durasi_response": 1744.25, + "min_durasi_response": 108, + "max_durasi_response": 5649, + "total_dibawah_sla_response": 3, + "total_diatas_sla_response": 1, + "total_durasi_recovery": 36752, + "avg_durasi_recovery": 9188.0, + "min_durasi_recovery": 1076, + "max_durasi_recovery": 16320, + "total_dibawah_sla_recovery": 1, + "total_diatas_sla_recovery": 3 + }, + { + "tipe_keluhan": "Umum", + "nama_uid": "DISTRIBUSI BALI", + "total": 2, + "total_selesai": 1, + "persen_selesai": 50.0, + "total_inproses": 1, + "persen_inproses": 50.0, + "total_durasi_response": 3497, + "avg_durasi_response": 1748.5, + "min_durasi_response": 653, + "max_durasi_response": 2844, + "total_dibawah_sla_response": 1, + "total_diatas_sla_response": 1, + "total_durasi_recovery": 3796, + "avg_durasi_recovery": 1898.0, + "min_durasi_recovery": 685, + "max_durasi_recovery": 3111, + "total_dibawah_sla_recovery": 2, + "total_diatas_sla_recovery": 0 + } ], rekapitulasiKeluhanPerKelompokKeluhan: [ {