Refactor filterData function in RKeluhan_PerTanggal.vue and RKeluhan_RatingPerUnit.vue

This commit is contained in:
Dede Fuji Abdul
2024-02-29 16:25:42 +07:00
parent aa0ffb0324
commit 40c8612f20
14 changed files with 458 additions and 1803 deletions

View File

@@ -175,7 +175,7 @@ const filters = ref()
const filterData = (params: any) => {
const dateValue = params.periode.split(' s/d ')
const { idUlp, uid, up3 } = params
const { ulp, uid, up3 } = params
refetch({
dateFrom: dateValue[0]
? dateValue[0].split('-').reverse().join('-')
@@ -183,7 +183,7 @@ const filterData = (params: any) => {
dateTo: dateValue[1]
? dateValue[1].split('-').reverse().join('-')
: new Date().toISOString().slice(0, 10),
idUlp: idUlp ? idUlp.id : 0,
idUlp: ulp ? ulp.id : 0,
idUid: uid ? uid.id : 0,
idUp3: up3 ? up3.id : 0
})