Update code: fixed bugs and added new features

This commit is contained in:
probdg
2024-02-03 16:32:05 +07:00
parent ecc64c7b61
commit 2b40b2016b
14 changed files with 275 additions and 33 deletions

View File

@ -153,7 +153,7 @@ onMounted(() => {
console.log(error)
})
filters.setConfig({
type: 'type-1',
type: 'type-18',
reportButton: true
})
})

View File

@ -183,8 +183,6 @@ const position = { of: '#data' };
const showIndicator = ref(true);
const shading = ref(true);
const showPane = ref(true);
const data = ref<any[]>([])
const dataDetail = ref<any>({})
const showDetail = ref(false)
@ -230,8 +228,8 @@ query gangguan ($minJmlLapor: Int!, $maxJmlLapor: Int!, $dateFrom: Date!, $dateT
}
}`;
const { onResult, onError, loading, refetch } = useQuery(GET_GANGGUAN_MELAPOR_LEBIHDARI_SATU_KALI, {
minJmlLapor: 0,
maxJmlLapor: 0,
minJmlLapor: 1,
maxJmlLapor: 1,
dateFrom: new Date().toISOString().slice(0, 10),
dateTo: new Date().toISOString().slice(0, 10),
posko: "",