Fix media filter bug in RKeluhan_BerdasarMedia.vue and remove unused code in api.graphql.ts

This commit is contained in:
Dede Fuji Abdul 2024-03-15 19:37:05 +07:00
parent 045375c968
commit 5e8fb7f749
2 changed files with 27 additions and 24 deletions

View File

@ -510,7 +510,8 @@ const { onResult, onError, loading, refetch } = useQuery(
dateTo: new Date('2023-10-01').toISOString().slice(0, 10),
idUlp: 0,
idUid: 0,
idUp3: 0
idUp3: 0,
media: ''
}
)
@ -527,7 +528,8 @@ const filterData = (params: any) => {
: new Date().toISOString().slice(0, 10),
idUlp: ulp ? ulp.id : 0,
idUid: uid ? uid.id : 0,
idUp3: up3 ? up3.id : 0
idUp3: up3 ? up3.id : 0,
media: ''
})
onResult((queryResult) => {
@ -548,9 +550,7 @@ const filterData = (params: any) => {
})
}
const getDetail = () => {
dataSub.value = dummyData.keluhan.rekap.rekapitulasiKeluhanBerdasarkanMedia
}
const getDetail = () => {}
const showDialogDataSelected = () => {
dialogDataSelected.value = true

View File

@ -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
}
}
`,
@ -492,6 +492,7 @@ export const queries = {
$idUlp: Int!
$idUid: Int!
$idUp3: Int!
$media: String!
) {
rekapitulasiKeluhanBerdasarkanMedia(
dateFrom: $dateFrom
@ -499,9 +500,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
@ -512,7 +522,6 @@ export const queries = {
tgl17
tgl18
tgl19
tgl2
tgl20
tgl21
tgl22
@ -523,15 +532,9 @@ export const queries = {
tgl27
tgl28
tgl29
tgl3
tgl30
tgl31
tgl4
tgl5
tgl6
tgl7
tgl8
tgl9
total
}
}
`,