diff --git a/src/components/DatePicker.vue b/src/components/DatePicker.vue
index 6057725..68f4fd5 100755
--- a/src/components/DatePicker.vue
+++ b/src/components/DatePicker.vue
@@ -79,7 +79,6 @@ watch(dateValue, (newValue) => {
onMounted(() => {
emit('update:dateValue', dateValue.value)
- console.log('current date', dateValue.value)
})
diff --git a/src/components/Form/FiltersType/Type11.vue b/src/components/Form/FiltersType/Type11.vue
index 69bd94d..1fc8135 100755
--- a/src/components/Form/FiltersType/Type11.vue
+++ b/src/components/Form/FiltersType/Type11.vue
@@ -171,17 +171,17 @@ onMounted(() => {
-
+
s/d
diff --git a/src/components/Pages/Gangguan/Rekap/RGangguan_ALL.vue b/src/components/Pages/Gangguan/Rekap/RGangguan_ALL.vue
index fb1c429..57294fe 100755
--- a/src/components/Pages/Gangguan/Rekap/RGangguan_ALL.vue
+++ b/src/components/Pages/Gangguan/Rekap/RGangguan_ALL.vue
@@ -1318,7 +1318,11 @@ const calculateCustomSummary = (options: any) => {
total = 0
total_selesai = 0
} else if (options.summaryProcess === 'finalize') {
- options.totalValue = (total_selesai / total) * 100
+ options.totalValue = isFinite(total_selesai / total)
+ ? 0
+ : total_selesai == 0
+ ? 0
+ : (total_selesai / total) * 100
}
}
@@ -1327,16 +1331,11 @@ const calculateCustomSummary = (options: any) => {
total = 0
total_inproses = 0
} else if (options.summaryProcess === 'finalize') {
- options.totalValue = (total_inproses / total) * 100
- }
- }
-
- if (options.name === 'persen_selesai') {
- if (options.summaryProcess === 'start') {
- total = 0
- total_selesai = 0
- } else if (options.summaryProcess === 'finalize') {
- options.totalValue = (total_selesai / total) * 100
+ options.totalValue = isFinite(total_inproses / total)
+ ? 0
+ : total_inproses == 0
+ ? 0
+ : (total_inproses / total) * 100
}
}
@@ -1386,7 +1385,11 @@ const calculateCustomSummary = (options: any) => {
count_durasi_response = 0
total_durasi_response = 0
} else if (options.summaryProcess === 'finalize') {
- options.totalValue = total_durasi_response / count_durasi_response
+ options.totalValue = isFinite(total_durasi_response / count_durasi_response)
+ ? 0
+ : total_durasi_response == 0
+ ? 0
+ : total_durasi_response / count_durasi_response
}
}
@@ -1411,7 +1414,11 @@ const calculateCustomSummary = (options: any) => {
count_durasi_recovery = 0
total_durasi_recovery = 0
} else if (options.summaryProcess === 'finalize') {
- options.totalValue = total_durasi_recovery / count_durasi_recovery
+ options.totalValue = isFinite(total_durasi_recovery / count_durasi_recovery)
+ ? 0
+ : total_durasi_recovery == 0
+ ? 0
+ : total_durasi_recovery / count_durasi_recovery
}
}
}
@@ -1449,7 +1456,13 @@ const filterData = async (params: any) => {
if (uid?.id != 0) {
groupList.forEach((item, index) => {
- if (item.caption == 'Semua Unit' || item.caption == 'Regional') {
+ if (item.caption == 'Semua Unit') {
+ groupList.splice(index, 1)
+ }
+ })
+
+ groupList.forEach((item, index) => {
+ if (item.caption == 'Regional') {
groupList.splice(index, 1)
}
})
diff --git a/src/components/Pages/Gangguan/Rekap/RGangguan_BerdasarMedia.vue b/src/components/Pages/Gangguan/Rekap/RGangguan_BerdasarMedia.vue
index 5ea3b74..8b4be0f 100755
--- a/src/components/Pages/Gangguan/Rekap/RGangguan_BerdasarMedia.vue
+++ b/src/components/Pages/Gangguan/Rekap/RGangguan_BerdasarMedia.vue
@@ -108,7 +108,7 @@
{
if (uid?.id != 0) {
groupList.forEach((item, index) => {
- if (item.caption == 'Semua Unit' || item.caption == 'Regional') {
+ if (item.caption == 'Semua Unit') {
+ groupList.splice(index, 1)
+ }
+ })
+
+ groupList.forEach((item, index) => {
+ if (item.caption == 'Regional') {
groupList.splice(index, 1)
}
})
diff --git a/src/components/Pages/Gangguan/Rekap/RGangguan_JenisGangguan.vue b/src/components/Pages/Gangguan/Rekap/RGangguan_JenisGangguan.vue
index 51a5bb3..be13415 100755
--- a/src/components/Pages/Gangguan/Rekap/RGangguan_JenisGangguan.vue
+++ b/src/components/Pages/Gangguan/Rekap/RGangguan_JenisGangguan.vue
@@ -784,7 +784,11 @@ const calculateCustomSummary = (options: any) => {
total = 0
total_selesai = 0
} else if (options.summaryProcess === 'finalize') {
- options.totalValue = (total_selesai / total) * 100
+ options.totalValue = isFinite(total_selesai / total)
+ ? 0
+ : total_selesai == 0
+ ? 0
+ : (total_selesai / total) * 100
}
}
@@ -793,16 +797,11 @@ const calculateCustomSummary = (options: any) => {
total = 0
total_inproses = 0
} else if (options.summaryProcess === 'finalize') {
- options.totalValue = (total_inproses / total) * 100
- }
- }
-
- if (options.name === 'persen_selesai') {
- if (options.summaryProcess === 'start') {
- total = 0
- total_selesai = 0
- } else if (options.summaryProcess === 'finalize') {
- options.totalValue = (total_selesai / total) * 100
+ options.totalValue = isFinite(total_inproses / total)
+ ? 0
+ : total_inproses == 0
+ ? 0
+ : (total_inproses / total) * 100
}
}
@@ -827,7 +826,11 @@ const calculateCustomSummary = (options: any) => {
total_durasi_response = 0
count_durasi_response = 0
} else if (options.summaryProcess === 'finalize') {
- options.totalValue = count_durasi_response / total_durasi_response
+ options.totalValue = isFinite(count_durasi_response / total_durasi_response)
+ ? 0
+ : count_durasi_response == 0
+ ? 0
+ : count_durasi_response / total_durasi_response
}
}
@@ -852,7 +855,11 @@ const calculateCustomSummary = (options: any) => {
count_durasi_recovery = 0
total_durasi_recovery = 0
} else if (options.summaryProcess === 'finalize') {
- options.totalValue = count_durasi_recovery / total_durasi_recovery
+ options.totalValue = isFinite(count_durasi_recovery / total_durasi_recovery)
+ ? 0
+ : count_durasi_recovery == 0
+ ? 0
+ : count_durasi_recovery / total_durasi_recovery
}
}
}
diff --git a/src/components/Pages/Gangguan/Rekap/RGangguan_JenisGangguanSE.vue b/src/components/Pages/Gangguan/Rekap/RGangguan_JenisGangguanSE.vue
index 1d52384..baaac00 100755
--- a/src/components/Pages/Gangguan/Rekap/RGangguan_JenisGangguanSE.vue
+++ b/src/components/Pages/Gangguan/Rekap/RGangguan_JenisGangguanSE.vue
@@ -1050,7 +1050,11 @@ const calculateCustomSummary = (options: any) => {
total = 0
total_selesai = 0
} else if (options.summaryProcess === 'finalize') {
- options.totalValue = (total_selesai / total) * 100
+ options.totalValue = isFinite(total_selesai / total)
+ ? 0
+ : total_selesai == 0
+ ? 0
+ : (total_selesai / total) * 100
}
}
@@ -1059,16 +1063,11 @@ const calculateCustomSummary = (options: any) => {
total = 0
total_inproses = 0
} else if (options.summaryProcess === 'finalize') {
- options.totalValue = (total_inproses / total) * 100
- }
- }
-
- if (options.name === 'persen_selesai') {
- if (options.summaryProcess === 'start') {
- total = 0
- total_selesai = 0
- } else if (options.summaryProcess === 'finalize') {
- options.totalValue = (total_selesai / total) * 100
+ options.totalValue = isFinite(total_inproses / total)
+ ? 0
+ : total_inproses == 0
+ ? 0
+ : (total_inproses / total) * 100
}
}
@@ -1093,7 +1092,11 @@ const calculateCustomSummary = (options: any) => {
total_durasi_response = 0
count_durasi_response = 0
} else if (options.summaryProcess === 'finalize') {
- options.totalValue = count_durasi_response / total_durasi_response
+ options.totalValue = isFinite(count_durasi_response / total_durasi_response)
+ ? 0
+ : count_durasi_response == 0
+ ? 0
+ : count_durasi_response / total_durasi_response
}
}
@@ -1118,7 +1121,11 @@ const calculateCustomSummary = (options: any) => {
count_durasi_recovery = 0
total_durasi_recovery = 0
} else if (options.summaryProcess === 'finalize') {
- options.totalValue = count_durasi_recovery / total_durasi_recovery
+ options.totalValue = isFinite(count_durasi_recovery / total_durasi_recovery)
+ ? 0
+ : count_durasi_recovery == 0
+ ? 0
+ : count_durasi_recovery / total_durasi_recovery
}
}
}
diff --git a/src/components/Pages/Gangguan/Rekap/RGangguan_KTI.vue b/src/components/Pages/Gangguan/Rekap/RGangguan_KTI.vue
index c89413f..6d7487c 100755
--- a/src/components/Pages/Gangguan/Rekap/RGangguan_KTI.vue
+++ b/src/components/Pages/Gangguan/Rekap/RGangguan_KTI.vue
@@ -1320,7 +1320,13 @@ const filterData = async (params: any) => {
if (uid?.id != 0) {
groupList.forEach((item, index) => {
- if (item.caption == 'Semua Unit' || item.caption == 'Regional') {
+ if (item.caption == 'Semua Unit') {
+ groupList.splice(index, 1)
+ }
+ })
+
+ groupList.forEach((item, index) => {
+ if (item.caption == 'Regional') {
groupList.splice(index, 1)
}
})
diff --git a/src/components/Pages/Gangguan/Rekap/RGangguan_PerPosko.vue b/src/components/Pages/Gangguan/Rekap/RGangguan_PerPosko.vue
index 13febde..ac6419a 100755
--- a/src/components/Pages/Gangguan/Rekap/RGangguan_PerPosko.vue
+++ b/src/components/Pages/Gangguan/Rekap/RGangguan_PerPosko.vue
@@ -1038,7 +1038,11 @@ const calculateCustomSummary = (options: any) => {
total = 0
total_selesai = 0
} else if (options.summaryProcess === 'finalize') {
- options.totalValue = (total_selesai / total) * 100
+ options.totalValue = isFinite(total_selesai / total)
+ ? 0
+ : total_selesai == 0
+ ? 0
+ : (total_selesai / total) * 100
}
}
@@ -1047,16 +1051,11 @@ const calculateCustomSummary = (options: any) => {
total = 0
total_inproses = 0
} else if (options.summaryProcess === 'finalize') {
- options.totalValue = (total_inproses / total) * 100
- }
- }
-
- if (options.name === 'persen_selesai') {
- if (options.summaryProcess === 'start') {
- total = 0
- total_selesai = 0
- } else if (options.summaryProcess === 'finalize') {
- options.totalValue = (total_selesai / total) * 100
+ options.totalValue = isFinite(total_inproses / total)
+ ? 0
+ : total_inproses == 0
+ ? 0
+ : (total_inproses / total) * 100
}
}
@@ -1081,7 +1080,11 @@ const calculateCustomSummary = (options: any) => {
total_durasi_response = 0
count_durasi_response = 0
} else if (options.summaryProcess === 'finalize') {
- options.totalValue = count_durasi_response / total_durasi_response
+ options.totalValue = isFinite(count_durasi_response / total_durasi_response)
+ ? 0
+ : count_durasi_response == 0
+ ? 0
+ : count_durasi_response / total_durasi_response
}
}
@@ -1106,7 +1109,11 @@ const calculateCustomSummary = (options: any) => {
count_durasi_recovery = 0
total_durasi_recovery = 0
} else if (options.summaryProcess === 'finalize') {
- options.totalValue = count_durasi_recovery / total_durasi_recovery
+ options.totalValue = isFinite(count_durasi_recovery / total_durasi_recovery)
+ ? 0
+ : count_durasi_recovery == 0
+ ? 0
+ : count_durasi_recovery / total_durasi_recovery
}
}
}
diff --git a/src/components/Pages/Gangguan/Rekap/RGangguan_PerRegu.vue b/src/components/Pages/Gangguan/Rekap/RGangguan_PerRegu.vue
index e2af38e..413d116 100755
--- a/src/components/Pages/Gangguan/Rekap/RGangguan_PerRegu.vue
+++ b/src/components/Pages/Gangguan/Rekap/RGangguan_PerRegu.vue
@@ -1054,7 +1054,11 @@ const calculateCustomSummary = (options: any) => {
total = 0
total_selesai = 0
} else if (options.summaryProcess === 'finalize') {
- options.totalValue = (total_selesai / total) * 100
+ options.totalValue = isFinite(total_selesai / total)
+ ? 0
+ : total_selesai == 0
+ ? 0
+ : (total_selesai / total) * 100
}
}
@@ -1063,16 +1067,11 @@ const calculateCustomSummary = (options: any) => {
total = 0
total_inproses = 0
} else if (options.summaryProcess === 'finalize') {
- options.totalValue = (total_inproses / total) * 100
- }
- }
-
- if (options.name === 'persen_selesai') {
- if (options.summaryProcess === 'start') {
- total = 0
- total_selesai = 0
- } else if (options.summaryProcess === 'finalize') {
- options.totalValue = (total_selesai / total) * 100
+ options.totalValue = isFinite(total_inproses / total)
+ ? 0
+ : total_inproses == 0
+ ? 0
+ : (total_inproses / total) * 100
}
}
@@ -1097,7 +1096,11 @@ const calculateCustomSummary = (options: any) => {
total_durasi_response = 0
count_durasi_response = 0
} else if (options.summaryProcess === 'finalize') {
- options.totalValue = count_durasi_response / total_durasi_response
+ options.totalValue = isFinite(count_durasi_response / total_durasi_response)
+ ? 0
+ : count_durasi_response == 0
+ ? 0
+ : count_durasi_response / total_durasi_response
}
}
@@ -1122,7 +1125,11 @@ const calculateCustomSummary = (options: any) => {
count_durasi_recovery = 0
total_durasi_recovery = 0
} else if (options.summaryProcess === 'finalize') {
- options.totalValue = count_durasi_recovery / total_durasi_recovery
+ options.totalValue = isFinite(count_durasi_recovery / total_durasi_recovery)
+ ? 0
+ : count_durasi_recovery == 0
+ ? 0
+ : count_durasi_recovery / total_durasi_recovery
}
}
}
diff --git a/src/components/Pages/Gangguan/Rekap/RGangguan_PerTanggal.vue b/src/components/Pages/Gangguan/Rekap/RGangguan_PerTanggal.vue
index f51c9af..e20ada8 100755
--- a/src/components/Pages/Gangguan/Rekap/RGangguan_PerTanggal.vue
+++ b/src/components/Pages/Gangguan/Rekap/RGangguan_PerTanggal.vue
@@ -829,6 +829,7 @@ import {
exportDetailToDOCX
} from '@/report/Gangguan/Rekap/RGangguan_PerTanggal'
import BufferDialog from '@/components/Dialogs/BufferDialog.vue'
+import { reformatDate } from '@/utils/texts'
const client = apolloClient()
provideApolloClient(client)
@@ -871,12 +872,8 @@ const getDetail = async () => {
const ref = dataSelected.value
const query = {
- dateFrom: dateValue[0]
- ? dateValue[0].split('-').reverse().join('-')
- : new Date().toISOString().slice(0, 10),
- dateTo: dateValue[1]
- ? dateValue[1].split('-').reverse().join('-')
- : new Date().toISOString().slice(0, 10),
+ dateFrom: ref?.tanggal ? reformatDate(ref?.tanggal, 'yyyy/MM/dd', 'yyyy-MM-dd') : '',
+ dateTo: ref?.tanggal ? reformatDate(ref?.tanggal, 'yyyy/MM/dd', 'yyyy-MM-dd') : '',
posko: ref?.id_posko ? ref?.id_posko : 0,
idUid: ref?.id_uid ? ref?.id_uid : 0,
idUp3: ref?.id_up3 ? ref?.id_up3 : 0,
@@ -885,7 +882,7 @@ const getDetail = async () => {
namaRegional: ref?.nama_regional ? ref?.nama_regional : '',
media: ref?.media ? ref?.media : '',
isSelesai: progressSelected.value,
- tanggal: ''
+ tanggal: ref?.tanggal ? reformatDate(ref?.tanggal, 'yyyy/MM/dd', 'yyyy-MM-dd') : ''
}
loadingSubData.value = true
@@ -1041,15 +1038,36 @@ const filterData = async (params: any) => {
}
loadingData.value = true
- await requestGraphQl(queries.gangguan.rekap.gangguanPerTanggal, query)
+ await requestGraphQl(
+ isGroupBy.value
+ ? grouping.value[0].data == 'nama_uid'
+ ? queries.gangguan.rekap.gangguanPerTanggalUID
+ : grouping.value[0].data == 'nama_up3'
+ ? queries.gangguan.rekap.gangguanPerTanggalUP3
+ : queries.gangguan.rekap.gangguanPerTanggalPosko
+ : queries.gangguan.rekap.gangguanPerTanggal,
+ query
+ )
.then((result) => {
if (result.data.data != undefined) {
if (grouping.value.length > 0 && grouping.value[0].data != '') {
- data.value = [...result.data.data.rekapitulasiGangguanPerTanggal].sort((a, b) =>
- a[grouping.value[0].data].localeCompare(b[grouping.value[0].data])
- )
+ data.value = [
+ ...(isGroupBy.value
+ ? grouping.value[0].data == 'nama_uid'
+ ? result.data.data.rekapitulasiGangguanPerTanggalUid
+ : grouping.value[0].data == 'nama_up3'
+ ? result.data.data.rekapitulasiGangguanPerTanggalUp3
+ : result.data.data.rekapitulasiGangguanPerTanggalPosko
+ : result.data.data.rekapitulasiGangguanPerTanggal)
+ ].sort((a, b) => a[grouping.value[0].data].localeCompare(b[grouping.value[0].data]))
} else {
- data.value = result.data.data.rekapitulasiGangguanPerTanggal
+ data.value = isGroupBy.value
+ ? grouping.value[0].data == 'nama_uid'
+ ? result.data.data.rekapitulasiGangguanPerTanggalUid
+ : grouping.value[0].data == 'nama_up3'
+ ? result.data.data.rekapitulasiGangguanPerTanggalUp3
+ : result.data.data.rekapitulasiGangguanPerTanggalPosko
+ : result.data.data.rekapitulasiGangguanPerTanggal
}
} else {
data.value = []
@@ -1110,7 +1128,11 @@ const calculateCustomSummary = (options: any) => {
total = 0
total_selesai = 0
} else if (options.summaryProcess === 'finalize') {
- options.totalValue = (total_selesai / total) * 100
+ options.totalValue = isFinite(total_selesai / total)
+ ? 0
+ : total_selesai == 0
+ ? 0
+ : (total_selesai / total) * 100
}
}
@@ -1119,16 +1141,11 @@ const calculateCustomSummary = (options: any) => {
total = 0
total_inproses = 0
} else if (options.summaryProcess === 'finalize') {
- options.totalValue = (total_inproses / total) * 100
- }
- }
-
- if (options.name === 'persen_selesai') {
- if (options.summaryProcess === 'start') {
- total = 0
- total_selesai = 0
- } else if (options.summaryProcess === 'finalize') {
- options.totalValue = (total_selesai / total) * 100
+ options.totalValue = isFinite(total_inproses / total)
+ ? 0
+ : total_inproses == 0
+ ? 0
+ : (total_inproses / total) * 100
}
}
@@ -1153,7 +1170,11 @@ const calculateCustomSummary = (options: any) => {
total_durasi_response = 0
count_durasi_response = 0
} else if (options.summaryProcess === 'finalize') {
- options.totalValue = count_durasi_response / total_durasi_response
+ options.totalValue = isFinite(count_durasi_response / total_durasi_response)
+ ? 0
+ : count_durasi_response == 0
+ ? 0
+ : count_durasi_response / total_durasi_response
}
}
@@ -1178,7 +1199,11 @@ const calculateCustomSummary = (options: any) => {
count_durasi_recovery = 0
total_durasi_recovery = 0
} else if (options.summaryProcess === 'finalize') {
- options.totalValue = count_durasi_recovery / total_durasi_recovery
+ options.totalValue = isFinite(count_durasi_recovery / total_durasi_recovery)
+ ? 0
+ : count_durasi_recovery == 0
+ ? 0
+ : count_durasi_recovery / total_durasi_recovery
}
}
}
diff --git a/src/components/Pages/Keluhan/Rekap/RKeluhan_ALL.vue b/src/components/Pages/Keluhan/Rekap/RKeluhan_ALL.vue
index 6f4fb52..fc96cd1 100755
--- a/src/components/Pages/Keluhan/Rekap/RKeluhan_ALL.vue
+++ b/src/components/Pages/Keluhan/Rekap/RKeluhan_ALL.vue
@@ -43,6 +43,7 @@
data-field="nama_ulp"
caption="Nama Unit"
css-class="custom-table-column"
+ cell-template="formatText"
/>
{
total = 0
total_selesai = 0
} else if (options.summaryProcess === 'finalize') {
- options.totalValue = (total_selesai / total) * 100
+ options.totalValue = isFinite(total_selesai / total)
+ ? 0
+ : total_selesai == 0
+ ? 0
+ : (total_selesai / total) * 100
}
}
@@ -894,16 +899,11 @@ const calculateCustomSummary = (options: any) => {
total = 0
total_inproses = 0
} else if (options.summaryProcess === 'finalize') {
- options.totalValue = (total_inproses / total) * 100
- }
- }
-
- if (options.name === 'persen_selesai') {
- if (options.summaryProcess === 'start') {
- total = 0
- total_selesai = 0
- } else if (options.summaryProcess === 'finalize') {
- options.totalValue = (total_selesai / total) * 100
+ options.totalValue = isFinite(total_inproses / total)
+ ? 0
+ : total_inproses == 0
+ ? 0
+ : (total_inproses / total) * 100
}
}
@@ -928,7 +928,11 @@ const calculateCustomSummary = (options: any) => {
total_durasi_response = 0
count_durasi_response = 0
} else if (options.summaryProcess === 'finalize') {
- options.totalValue = count_durasi_response / total_durasi_response
+ options.totalValue = isFinite(count_durasi_response / total_durasi_response)
+ ? 0
+ : count_durasi_response == 0
+ ? 0
+ : count_durasi_response / total_durasi_response
}
}
@@ -953,7 +957,11 @@ const calculateCustomSummary = (options: any) => {
count_durasi_recovery = 0
total_durasi_recovery = 0
} else if (options.summaryProcess === 'finalize') {
- options.totalValue = count_durasi_recovery / total_durasi_recovery
+ options.totalValue = isFinite(count_durasi_recovery / total_durasi_recovery)
+ ? 0
+ : count_durasi_recovery == 0
+ ? 0
+ : count_durasi_recovery / total_durasi_recovery
}
}
}
@@ -1047,7 +1055,13 @@ const filterData = async (params: any) => {
if (uid?.id != 0) {
groupList.forEach((item, index) => {
- if (item.caption == 'Semua Unit' || item.caption == 'Regional') {
+ if (item.caption == 'Semua Unit') {
+ groupList.splice(index, 1)
+ }
+ })
+
+ groupList.forEach((item, index) => {
+ if (item.caption == 'Regional') {
groupList.splice(index, 1)
}
})
diff --git a/src/components/Pages/Keluhan/Rekap/RKeluhan_BerdasarMedia.vue b/src/components/Pages/Keluhan/Rekap/RKeluhan_BerdasarMedia.vue
index 01adb45..86f3c0a 100755
--- a/src/components/Pages/Keluhan/Rekap/RKeluhan_BerdasarMedia.vue
+++ b/src/components/Pages/Keluhan/Rekap/RKeluhan_BerdasarMedia.vue
@@ -72,9 +72,8 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
{
total = 0
total_selesai = 0
} else if (options.summaryProcess === 'finalize') {
- options.totalValue = (total_selesai / total) * 100
+ options.totalValue = isFinite(total_selesai / total)
+ ? 0
+ : total_selesai == 0
+ ? 0
+ : (total_selesai / total) * 100
}
}
@@ -920,16 +1110,11 @@ const calculateCustomSummary = (options: any) => {
total = 0
total_inproses = 0
} else if (options.summaryProcess === 'finalize') {
- options.totalValue = (total_inproses / total) * 100
- }
- }
-
- if (options.name === 'persen_selesai') {
- if (options.summaryProcess === 'start') {
- total = 0
- total_selesai = 0
- } else if (options.summaryProcess === 'finalize') {
- options.totalValue = (total_selesai / total) * 100
+ options.totalValue = isFinite(total_inproses / total)
+ ? 0
+ : total_inproses == 0
+ ? 0
+ : (total_inproses / total) * 100
}
}
@@ -954,7 +1139,11 @@ const calculateCustomSummary = (options: any) => {
total_durasi_response = 0
count_durasi_response = 0
} else if (options.summaryProcess === 'finalize') {
- options.totalValue = count_durasi_response / total_durasi_response
+ options.totalValue = isFinite(count_durasi_response / total_durasi_response)
+ ? 0
+ : count_durasi_response == 0
+ ? 0
+ : count_durasi_response / total_durasi_response
}
}
@@ -979,7 +1168,11 @@ const calculateCustomSummary = (options: any) => {
count_durasi_recovery = 0
total_durasi_recovery = 0
} else if (options.summaryProcess === 'finalize') {
- options.totalValue = count_durasi_recovery / total_durasi_recovery
+ options.totalValue = isFinite(count_durasi_recovery / total_durasi_recovery)
+ ? 0
+ : count_durasi_recovery == 0
+ ? 0
+ : count_durasi_recovery / total_durasi_recovery
}
}
}
@@ -1073,27 +1266,48 @@ const filterData = async (params: any) => {
}
loadingData.value = true
- await requestGraphQl(queries.keluhan.rekap.keluhanPenyelesaianPerFungsiBIidang, query)
+ await requestGraphQl(
+ isGroupBy.value
+ ? grouping.value[0].data == 'nama_uid'
+ ? queries.keluhan.rekap.keluhanPenyelesaianPerFungsiBidangUID
+ : grouping.value[0].data == 'nama_up3'
+ ? queries.keluhan.rekap.keluhanPenyelesaianPerFungsiBidangUP3
+ : queries.keluhan.rekap.keluhanPenyelesaianPerFungsiBidangULP
+ : queries.keluhan.rekap.keluhanPenyelesaianPerFungsiBIidang,
+ query
+ )
.then((result) => {
if (result.data.data != undefined) {
if (grouping.value.length > 0 && grouping.value[0].data != '') {
- data.value = [...result.data.data.rekapitulasiKeluhanPenyelesaianPerFungsiBidang].sort(
- (a, b) => a[grouping.value[0].data].localeCompare(b[grouping.value[0].data])
- )
+ data.value = [
+ ...(isGroupBy.value
+ ? grouping.value[0].data == 'nama_uid'
+ ? result.data.data.rekapitulasiKeluhanPenyelesaianPerFungsiBidangUid
+ : grouping.value[0].data == 'nama_up3'
+ ? result.data.data.rekapitulasiKeluhanPenyelesaianPerFungsiBidangUp3
+ : result.data.data.rekapitulasiKeluhanPenyelesaianPerFungsiBidangUlp
+ : result.data.data.rekapitulasiKeluhanPenyelesaianPerFungsiBidang)
+ ].sort((a, b) => a[grouping.value[0].data].localeCompare(b[grouping.value[0].data]))
} else {
- data.value = result.data.data.rekapitulasiKeluhanPenyelesaianPerFungsiBidang
- }
-
- reportMeta.value = {
- uid: uid ? uid : { id: 0, name: 'Semua Unit Induk Distribusi/Wilayah' },
- up3: up3 ? up3 : { id: 0, name: 'Semua Unit Pelaksanaan Pelayanan Pelanggan' },
- ulp: ulp ? ulp : { id: 0, name: 'Semua Unit Layanan Pelanggan' },
- periode: params.periode,
- groupBy: params.groupBy
+ data.value = isGroupBy.value
+ ? grouping.value[0].data == 'nama_uid'
+ ? result.data.data.rekapitulasiKeluhanPenyelesaianPerFungsiBidangUid
+ : grouping.value[0].data == 'nama_up3'
+ ? result.data.data.rekapitulasiKeluhanPenyelesaianPerFungsiBidangUp3
+ : result.data.data.rekapitulasiKeluhanPenyelesaianPerFungsiBidangUlp
+ : result.data.data.rekapitulasiKeluhanPenyelesaianPerFungsiBidang
}
} else {
data.value = []
}
+
+ reportMeta.value = {
+ uid: uid ? uid : { id: 0, name: 'Semua Unit Induk Distribusi/Wilayah' },
+ up3: up3 ? up3 : { id: 0, name: 'Semua Unit Pelaksanaan Pelayanan Pelanggan' },
+ ulp: ulp ? ulp : { id: 0, name: 'Semua Unit Layanan Pelanggan' },
+ periode: params.periode,
+ groupBy: params.groupBy
+ }
})
.catch((err) => {
console.error(err)
diff --git a/src/components/Pages/Keluhan/Rekap/RKeluhan_PerJenisKeluhan.vue b/src/components/Pages/Keluhan/Rekap/RKeluhan_PerJenisKeluhan.vue
index d9055c2..8eff55f 100755
--- a/src/components/Pages/Keluhan/Rekap/RKeluhan_PerJenisKeluhan.vue
+++ b/src/components/Pages/Keluhan/Rekap/RKeluhan_PerJenisKeluhan.vue
@@ -1063,7 +1063,11 @@ const calculateCustomSummary = (options: any) => {
total = 0
total_selesai = 0
} else if (options.summaryProcess === 'finalize') {
- options.totalValue = (total_selesai / total) * 100
+ options.totalValue = isFinite(total_selesai / total)
+ ? 0
+ : total_selesai == 0
+ ? 0
+ : (total_selesai / total) * 100
}
}
@@ -1072,16 +1076,11 @@ const calculateCustomSummary = (options: any) => {
total = 0
total_inproses = 0
} else if (options.summaryProcess === 'finalize') {
- options.totalValue = (total_inproses / total) * 100
- }
- }
-
- if (options.name === 'persen_selesai') {
- if (options.summaryProcess === 'start') {
- total = 0
- total_selesai = 0
- } else if (options.summaryProcess === 'finalize') {
- options.totalValue = (total_selesai / total) * 100
+ options.totalValue = isFinite(total_inproses / total)
+ ? 0
+ : total_inproses == 0
+ ? 0
+ : (total_inproses / total) * 100
}
}
@@ -1106,7 +1105,11 @@ const calculateCustomSummary = (options: any) => {
total_durasi_response = 0
count_durasi_response = 0
} else if (options.summaryProcess === 'finalize') {
- options.totalValue = count_durasi_response / total_durasi_response
+ options.totalValue = isFinite(count_durasi_response / total_durasi_response)
+ ? 0
+ : count_durasi_response == 0
+ ? 0
+ : count_durasi_response / total_durasi_response
}
}
@@ -1131,7 +1134,11 @@ const calculateCustomSummary = (options: any) => {
count_durasi_recovery = 0
total_durasi_recovery = 0
} else if (options.summaryProcess === 'finalize') {
- options.totalValue = count_durasi_recovery / total_durasi_recovery
+ options.totalValue = isFinite(count_durasi_recovery / total_durasi_recovery)
+ ? 0
+ : count_durasi_recovery == 0
+ ? 0
+ : count_durasi_recovery / total_durasi_recovery
}
}
}
diff --git a/src/components/Pages/Keluhan/Rekap/RKeluhan_PerKelompokKeluhan.vue b/src/components/Pages/Keluhan/Rekap/RKeluhan_PerKelompokKeluhan.vue
index e7327f2..55dc0a6 100755
--- a/src/components/Pages/Keluhan/Rekap/RKeluhan_PerKelompokKeluhan.vue
+++ b/src/components/Pages/Keluhan/Rekap/RKeluhan_PerKelompokKeluhan.vue
@@ -907,7 +907,11 @@ const calculateCustomSummary = (options: any) => {
total = 0
total_selesai = 0
} else if (options.summaryProcess === 'finalize') {
- options.totalValue = (total_selesai / total) * 100
+ options.totalValue = isFinite(total_selesai / total)
+ ? 0
+ : total_selesai == 0
+ ? 0
+ : (total_selesai / total) * 100
}
}
@@ -916,16 +920,11 @@ const calculateCustomSummary = (options: any) => {
total = 0
total_inproses = 0
} else if (options.summaryProcess === 'finalize') {
- options.totalValue = (total_inproses / total) * 100
- }
- }
-
- if (options.name === 'persen_selesai') {
- if (options.summaryProcess === 'start') {
- total = 0
- total_selesai = 0
- } else if (options.summaryProcess === 'finalize') {
- options.totalValue = (total_selesai / total) * 100
+ options.totalValue = isFinite(total_inproses / total)
+ ? 0
+ : total_inproses == 0
+ ? 0
+ : (total_inproses / total) * 100
}
}
@@ -950,7 +949,11 @@ const calculateCustomSummary = (options: any) => {
total_durasi_response = 0
count_durasi_response = 0
} else if (options.summaryProcess === 'finalize') {
- options.totalValue = count_durasi_response / total_durasi_response
+ options.totalValue = isFinite(count_durasi_response / total_durasi_response)
+ ? 0
+ : count_durasi_response == 0
+ ? 0
+ : count_durasi_response / total_durasi_response
}
}
@@ -975,7 +978,11 @@ const calculateCustomSummary = (options: any) => {
count_durasi_recovery = 0
total_durasi_recovery = 0
} else if (options.summaryProcess === 'finalize') {
- options.totalValue = count_durasi_recovery / total_durasi_recovery
+ options.totalValue = isFinite(count_durasi_recovery / total_durasi_recovery)
+ ? 0
+ : count_durasi_recovery == 0
+ ? 0
+ : count_durasi_recovery / total_durasi_recovery
}
}
}
@@ -1070,23 +1077,35 @@ const filterData = async (params: any) => {
loadingData.value = true
await requestGraphQl(
- params.groupBy
- ? queries.keluhan.rekap.keluhanPerKelompokKeluhanUID
+ isGroupBy.value
+ ? grouping.value[0].data == 'nama_uid'
+ ? queries.keluhan.rekap.keluhanPerKelompokKeluhanUID
+ : grouping.value[0].data == 'nama_up3'
+ ? queries.keluhan.rekap.keluhanPerKelompokKeluhanUP3
+ : queries.keluhan.rekap.keluhanPerKelompokKeluhanULP
: queries.keluhan.rekap.keluhanPerKelompokKeluhan,
query
)
.then((result) => {
if (result.data.data != undefined) {
- const ref = isGroupBy.value
- ? [...result.data.data.rekapitulasiKeluhanPerKelompokKeluhanUid]
- : [...result.data.data.rekapitulasiKeluhanPerKelompokKeluhan]
-
if (grouping.value.length > 0 && grouping.value[0].data != '') {
- data.value = ref.sort((a, b) =>
- a[grouping.value[0].data].localeCompare(b[grouping.value[0].data])
- )
+ data.value = [
+ ...(isGroupBy.value
+ ? grouping.value[0].data == 'nama_uid'
+ ? result.data.data.rekapitulasiKeluhanPerKelompokKeluhanUid
+ : grouping.value[0].data == 'nama_up3'
+ ? result.data.data.rekapitulasiKeluhanPerKelompokKeluhanUp3
+ : result.data.data.rekapitulasiKeluhanPerKelompokKeluhanUlp
+ : result.data.data.rekapitulasiKeluhanPerKelompokKeluhan)
+ ].sort((a, b) => a[grouping.value[0].data].localeCompare(b[grouping.value[0].data]))
} else {
- data.value = ref
+ data.value = isGroupBy.value
+ ? grouping.value[0].data == 'nama_uid'
+ ? result.data.data.rekapitulasiKeluhanPerKelompokKeluhanUid
+ : grouping.value[0].data == 'nama_up3'
+ ? result.data.data.rekapitulasiKeluhanPerKelompokKeluhanUp3
+ : result.data.data.rekapitulasiKeluhanPerKelompokKeluhanUlp
+ : result.data.data.rekapitulasiKeluhanPerKelompokKeluhan
}
} else {
data.value = []
diff --git a/src/components/Pages/Keluhan/Rekap/RKeluhan_PerTanggal.vue b/src/components/Pages/Keluhan/Rekap/RKeluhan_PerTanggal.vue
index f21d5c5..5d27d7d 100755
--- a/src/components/Pages/Keluhan/Rekap/RKeluhan_PerTanggal.vue
+++ b/src/components/Pages/Keluhan/Rekap/RKeluhan_PerTanggal.vue
@@ -912,7 +912,11 @@ const calculateCustomSummary = (options: any) => {
total = 0
total_selesai = 0
} else if (options.summaryProcess === 'finalize') {
- options.totalValue = (total_selesai / total) * 100
+ options.totalValue = isFinite(total_selesai / total)
+ ? 0
+ : total_selesai == 0
+ ? 0
+ : (total_selesai / total) * 100
}
}
@@ -921,16 +925,11 @@ const calculateCustomSummary = (options: any) => {
total = 0
total_inproses = 0
} else if (options.summaryProcess === 'finalize') {
- options.totalValue = (total_inproses / total) * 100
- }
- }
-
- if (options.name === 'persen_selesai') {
- if (options.summaryProcess === 'start') {
- total = 0
- total_selesai = 0
- } else if (options.summaryProcess === 'finalize') {
- options.totalValue = (total_selesai / total) * 100
+ options.totalValue = isFinite(total_inproses / total)
+ ? 0
+ : total_inproses == 0
+ ? 0
+ : (total_inproses / total) * 100
}
}
@@ -955,7 +954,11 @@ const calculateCustomSummary = (options: any) => {
total_durasi_response = 0
count_durasi_response = 0
} else if (options.summaryProcess === 'finalize') {
- options.totalValue = count_durasi_response / total_durasi_response
+ options.totalValue = isFinite(count_durasi_response / total_durasi_response)
+ ? 0
+ : count_durasi_response == 0
+ ? 0
+ : count_durasi_response / total_durasi_response
}
}
@@ -980,7 +983,11 @@ const calculateCustomSummary = (options: any) => {
count_durasi_recovery = 0
total_durasi_recovery = 0
} else if (options.summaryProcess === 'finalize') {
- options.totalValue = count_durasi_recovery / total_durasi_recovery
+ options.totalValue = isFinite(count_durasi_recovery / total_durasi_recovery)
+ ? 0
+ : count_durasi_recovery == 0
+ ? 0
+ : count_durasi_recovery / total_durasi_recovery
}
}
}
@@ -1074,17 +1081,36 @@ const filterData = async (params: any) => {
}
loadingData.value = true
- await requestGraphQl(queries.keluhan.rekap.keluhanPerTanggal, query)
+ await requestGraphQl(
+ isGroupBy.value
+ ? grouping.value[0].data == 'nama_uid'
+ ? queries.keluhan.rekap.keluhanPerTanggalUID
+ : grouping.value[0].data == 'nama_up3'
+ ? queries.keluhan.rekap.keluhanPerTanggalUP3
+ : queries.keluhan.rekap.keluhanPerTanggalULP
+ : queries.keluhan.rekap.keluhanPerTanggal,
+ query
+ )
.then((result) => {
if (result.data.data != undefined) {
if (grouping.value.length > 0 && grouping.value[0].data != '') {
- console.log([...result.data.data.rekapitulasiKeluhanPerTanggal])
-
- data.value = [...result.data.data.rekapitulasiKeluhanPerTanggal].sort((a, b) =>
- a[grouping.value[0].data].localeCompare(b[grouping.value[0].data])
- )
+ data.value = [
+ ...(isGroupBy.value
+ ? grouping.value[0].data == 'nama_uid'
+ ? result.data.data.rekapitulasiKeluhanPerTanggalUid
+ : grouping.value[0].data == 'nama_up3'
+ ? result.data.data.rekapitulasiKeluhanPerTanggalUp3
+ : result.data.data.rekapitulasiKeluhanPerTanggalUlp
+ : result.data.data.rekapitulasiKeluhanPerTanggal)
+ ].sort((a, b) => a[grouping.value[0].data].localeCompare(b[grouping.value[0].data]))
} else {
- data.value = result.data.data.rekapitulasiKeluhanPerTanggal
+ data.value = isGroupBy.value
+ ? grouping.value[0].data == 'nama_uid'
+ ? result.data.data.rekapitulasiKeluhanPerTanggalUid
+ : grouping.value[0].data == 'nama_up3'
+ ? result.data.data.rekapitulasiKeluhanPerTanggalUp3
+ : result.data.data.rekapitulasiKeluhanPerTanggalUlp
+ : result.data.data.rekapitulasiKeluhanPerTanggal
}
} else {
data.value = []
diff --git a/src/components/Pages/Keluhan/Rekap/RKeluhan_PerUnit.vue b/src/components/Pages/Keluhan/Rekap/RKeluhan_PerUnit.vue
index d0ab45f..7215afd 100755
--- a/src/components/Pages/Keluhan/Rekap/RKeluhan_PerUnit.vue
+++ b/src/components/Pages/Keluhan/Rekap/RKeluhan_PerUnit.vue
@@ -1055,7 +1055,11 @@ const calculateCustomSummary = (options: any) => {
total = 0
total_selesai = 0
} else if (options.summaryProcess === 'finalize') {
- options.totalValue = (total_selesai / total) * 100
+ options.totalValue = isFinite(total_selesai / total)
+ ? 0
+ : total_selesai == 0
+ ? 0
+ : (total_selesai / total) * 100
}
}
@@ -1064,16 +1068,11 @@ const calculateCustomSummary = (options: any) => {
total = 0
total_inproses = 0
} else if (options.summaryProcess === 'finalize') {
- options.totalValue = (total_inproses / total) * 100
- }
- }
-
- if (options.name === 'persen_selesai') {
- if (options.summaryProcess === 'start') {
- total = 0
- total_selesai = 0
- } else if (options.summaryProcess === 'finalize') {
- options.totalValue = (total_selesai / total) * 100
+ options.totalValue = isFinite(total_inproses / total)
+ ? 0
+ : total_inproses == 0
+ ? 0
+ : (total_inproses / total) * 100
}
}
@@ -1098,7 +1097,11 @@ const calculateCustomSummary = (options: any) => {
total_durasi_response = 0
count_durasi_response = 0
} else if (options.summaryProcess === 'finalize') {
- options.totalValue = count_durasi_response / total_durasi_response
+ options.totalValue = isFinite(count_durasi_response / total_durasi_response)
+ ? 0
+ : count_durasi_response == 0
+ ? 0
+ : count_durasi_response / total_durasi_response
}
}
@@ -1123,7 +1126,11 @@ const calculateCustomSummary = (options: any) => {
count_durasi_recovery = 0
total_durasi_recovery = 0
} else if (options.summaryProcess === 'finalize') {
- options.totalValue = count_durasi_recovery / total_durasi_recovery
+ options.totalValue = isFinite(count_durasi_recovery / total_durasi_recovery)
+ ? 0
+ : count_durasi_recovery == 0
+ ? 0
+ : count_durasi_recovery / total_durasi_recovery
}
}
}
diff --git a/src/utils/api/api.graphql.ts b/src/utils/api/api.graphql.ts
index c0fa4e8..d05fb92 100755
--- a/src/utils/api/api.graphql.ts
+++ b/src/utils/api/api.graphql.ts
@@ -394,6 +394,133 @@ export const queries = {
}
}
`,
+ keluhanPerTanggalULP: gql`
+ query rekapitulasiKeluhanPerTanggalUlp(
+ $dateFrom: Date!
+ $dateTo: Date!
+ $idUlp: Int!
+ $idUid: Int!
+ $idUp3: Int!
+ ) {
+ rekapitulasiKeluhanPerTanggalUlp(
+ dateFrom: $dateFrom
+ dateTo: $dateTo
+ idUlp: $idUlp
+ idUid: $idUid
+ idUp3: $idUp3
+ ) {
+ nama_regional
+ id_uid
+ nama_uid
+ id_up3
+ nama_up3
+ id_ulp
+ nama_ulp
+ tanggal_lapor
+ total
+ 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
+ }
+ }
+ `,
+ keluhanPerTanggalUP3: gql`
+ query rekapitulasiKeluhanPerTanggalUp3(
+ $dateFrom: Date!
+ $dateTo: Date!
+ $idUlp: Int!
+ $idUid: Int!
+ $idUp3: Int!
+ ) {
+ rekapitulasiKeluhanPerTanggalUp3(
+ dateFrom: $dateFrom
+ dateTo: $dateTo
+ idUlp: $idUlp
+ idUid: $idUid
+ idUp3: $idUp3
+ ) {
+ id_uid
+ nama_uid
+ id_up3
+ nama_up3
+ id_ulp
+ nama_ulp
+ tanggal_lapor
+ total
+ 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
+ }
+ }
+ `,
+ keluhanPerTanggalUID: gql`
+ query rekapitulasiKeluhanPerTanggalUid(
+ $dateFrom: Date!
+ $dateTo: Date!
+ $idUlp: Int!
+ $idUid: Int!
+ $idUp3: Int!
+ ) {
+ rekapitulasiKeluhanPerTanggalUid(
+ dateFrom: $dateFrom
+ dateTo: $dateTo
+ idUlp: $idUlp
+ idUid: $idUid
+ idUp3: $idUp3
+ ) {
+ id_uid
+ nama_uid
+ id_up3
+ nama_up3
+ id_ulp
+ nama_ulp
+ tanggal_lapor
+ total
+ 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
+ }
+ }
+ `,
keluhanPerTanggal: gql`
query rekapitulasiKeluhanPerTanggal(
$dateFrom: Date!
@@ -436,6 +563,94 @@ export const queries = {
}
}
`,
+ keluhanPerKelompokKeluhanULP: gql`
+ query rekapitulasiKeluhanPerKelompokKeluhanUlp(
+ $dateFrom: Date!
+ $dateTo: Date!
+ $idUlp: Int!
+ $idUid: Int!
+ $idUp3: Int!
+ ) {
+ rekapitulasiKeluhanPerKelompokKeluhanUlp(
+ dateFrom: $dateFrom
+ dateTo: $dateTo
+ idUlp: $idUlp
+ idUid: $idUid
+ idUp3: $idUp3
+ ) {
+ id
+ nama_regional
+ id_uid
+ nama_uid
+ id_up3
+ nama_up3
+ id_ulp
+ nama_ulp
+ kelompok
+ total
+ 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
+ }
+ }
+ `,
+ keluhanPerKelompokKeluhanUP3: gql`
+ query rekapitulasiKeluhanPerKelompokKeluhanUp3(
+ $dateFrom: Date!
+ $dateTo: Date!
+ $idUlp: Int!
+ $idUid: Int!
+ $idUp3: Int!
+ ) {
+ rekapitulasiKeluhanPerKelompokKeluhanUp3(
+ dateFrom: $dateFrom
+ dateTo: $dateTo
+ idUlp: $idUlp
+ idUid: $idUid
+ idUp3: $idUp3
+ ) {
+ id
+ nama_regional
+ id_uid
+ nama_uid
+ id_up3
+ nama_up3
+ id_ulp
+ nama_ulp
+ kelompok
+ total
+ 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
+ }
+ }
+ `,
keluhanPerKelompokKeluhanUID: gql`
query rekapitulasiKeluhanPerKelompokKeluhanUid(
$dateFrom: Date!
@@ -559,6 +774,117 @@ export const queries = {
}
}
`,
+ keluhanPenyelesaianPerFungsiBidangULP: gql`
+ query rekapitulasiKeluhanPenyelesaianPerFungsiBidangUlp(
+ $dateFrom: Date!
+ $dateTo: Date!
+ $idUlp: Int!
+ $idUid: Int!
+ $idUp3: Int!
+ ) {
+ rekapitulasiKeluhanPenyelesaianPerFungsiBidangUlp(
+ dateFrom: $dateFrom
+ dateTo: $dateTo
+ idUlp: $idUlp
+ idUid: $idUid
+ idUp3: $idUp3
+ ) {
+ nama_uid
+ nama_up3
+ nama_ulp
+ fungsi_bidang
+ total
+ total_selesai
+ persen_selesai
+ total_inproses
+ persen_inproses
+ 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
+ }
+ }
+ `,
+ keluhanPenyelesaianPerFungsiBidangUP3: gql`
+ query rekapitulasiKeluhanPenyelesaianPerFungsiBidangUp3(
+ $dateFrom: Date!
+ $dateTo: Date!
+ $idUlp: Int!
+ $idUid: Int!
+ $idUp3: Int!
+ ) {
+ rekapitulasiKeluhanPenyelesaianPerFungsiBidangUp3(
+ dateFrom: $dateFrom
+ dateTo: $dateTo
+ idUlp: $idUlp
+ idUid: $idUid
+ idUp3: $idUp3
+ ) {
+ nama_uid
+ nama_up3
+ nama_ulp
+ fungsi_bidang
+ total
+ total_selesai
+ persen_selesai
+ total_inproses
+ persen_inproses
+ 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
+ }
+ }
+ `,
+ keluhanPenyelesaianPerFungsiBidangUID: gql`
+ query rekapitulasiKeluhanPenyelesaianPerFungsiBidangUid(
+ $dateFrom: Date!
+ $dateTo: Date!
+ $idUlp: Int!
+ $idUid: Int!
+ $idUp3: Int!
+ ) {
+ rekapitulasiKeluhanPenyelesaianPerFungsiBidangUid(
+ dateFrom: $dateFrom
+ dateTo: $dateTo
+ idUlp: $idUlp
+ idUid: $idUid
+ idUp3: $idUp3
+ ) {
+ nama_uid
+ nama_up3
+ nama_ulp
+ fungsi_bidang
+ total
+ total_selesai
+ persen_selesai
+ total_inproses
+ persen_inproses
+ 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
+ }
+ }
+ `,
keluhanPenyelesaianPerFungsiBIidang: gql`
query rekapitulasiKeluhanPenyelesaianPerFungsiBidang(
$dateFrom: Date!
@@ -1017,6 +1343,134 @@ export const queries = {
}
}
`,
+ gangguanPerTanggalPosko: gql`
+ query rekapitulasiGangguanPerTanggalPosko(
+ $dateFrom: Date!
+ $dateTo: Date!
+ $posko: Int!
+ $idUid: Int!
+ $idUp3: Int!
+ ) {
+ rekapitulasiGangguanPerTanggalPosko(
+ dateFrom: $dateFrom
+ dateTo: $dateTo
+ posko: $posko
+ idUid: $idUid
+ idUp3: $idUp3
+ ) {
+ id_uid
+ nama_uid
+ id_up3
+ nama_up3
+ id_ulp
+ nama_ulp
+ id_posko
+ nama_posko
+ tanggal
+ total
+ 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
+ }
+ }
+ `,
+ gangguanPerTanggalUP3: gql`
+ query rekapitulasiGangguanPerTanggalUp3(
+ $dateFrom: Date!
+ $dateTo: Date!
+ $posko: Int!
+ $idUid: Int!
+ $idUp3: Int!
+ ) {
+ rekapitulasiGangguanPerTanggalUp3(
+ dateFrom: $dateFrom
+ dateTo: $dateTo
+ posko: $posko
+ idUid: $idUid
+ idUp3: $idUp3
+ ) {
+ id_uid
+ nama_uid
+ id_up3
+ nama_up3
+ tanggal
+ total
+ 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
+ }
+ }
+ `,
+ gangguanPerTanggalUID: gql`
+ query rekapitulasiGangguanPerTanggalUid(
+ $dateFrom: Date!
+ $dateTo: Date!
+ $posko: Int!
+ $idUid: Int!
+ $idUp3: Int!
+ ) {
+ rekapitulasiGangguanPerTanggalUid(
+ dateFrom: $dateFrom
+ dateTo: $dateTo
+ posko: $posko
+ idUid: $idUid
+ idUp3: $idUp3
+ ) {
+ id_uid
+ nama_uid
+ tanggal
+ total
+ 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
+ }
+ }
+ `,
gangguanPerTanggal: gql`
query rekapitulasiGangguanPerTanggal(
$dateFrom: Date!