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

View File

@ -181,21 +181,21 @@ export const queries = {
idUid: $idUid idUid: $idUid
idUp3: $idUp3 idUp3: $idUp3
) { ) {
alamat_pelapor no_laporan
durasi_recovery_time waktu_lapor
durasi_response_time waktu_response
idpel_nometer waktu_recovery
jumlah_lapor jumlah_lapor
durasi_response_time
durasi_recovery_time
status_akhir
idpel_nometer
nama_pelapor
alamat_pelapor
no_telp_pelapor
keterangan_pelapor keterangan_pelapor
media media
nama_pelapor
nama_ulp nama_ulp
no_laporan
no_telp_pelapor
status_akhir
waktu_lapor
waktu_recovery
waktu_response
} }
} }
`, `,
@ -492,6 +492,7 @@ export const queries = {
$idUlp: Int! $idUlp: Int!
$idUid: Int! $idUid: Int!
$idUp3: Int! $idUp3: Int!
$media: String!
) { ) {
rekapitulasiKeluhanBerdasarkanMedia( rekapitulasiKeluhanBerdasarkanMedia(
dateFrom: $dateFrom dateFrom: $dateFrom
@ -499,9 +500,18 @@ export const queries = {
idUlp: $idUlp idUlp: $idUlp
idUid: $idUid idUid: $idUid
idUp3: $idUp3 idUp3: $idUp3
media: $media
) { ) {
media media
tgl1 tgl1
tgl2
tgl3
tgl4
tgl5
tgl6
tgl7
tgl8
tgl9
tgl10 tgl10
tgl11 tgl11
tgl12 tgl12
@ -512,7 +522,6 @@ export const queries = {
tgl17 tgl17
tgl18 tgl18
tgl19 tgl19
tgl2
tgl20 tgl20
tgl21 tgl21
tgl22 tgl22
@ -523,15 +532,9 @@ export const queries = {
tgl27 tgl27
tgl28 tgl28
tgl29 tgl29
tgl3
tgl30 tgl30
tgl31 tgl31
tgl4 total
tgl5
tgl6
tgl7
tgl8
tgl9
} }
} }
`, `,