diff --git a/src/components/Form/FiltersType/Type1.vue b/src/components/Form/FiltersType/Type1.vue
index 9438058..6c8def1 100755
--- a/src/components/Form/FiltersType/Type1.vue
+++ b/src/components/Form/FiltersType/Type1.vue
@@ -12,9 +12,9 @@ import {
} from './reference'
import { onMounted, ref, watch } from 'vue'
const uidPlaceholder = 'Semua Unit Induk Distribusi/Wilayah'
-const up3laceholder = 'Semua Unit Pelaksanaan Pelayanan Pelanggan'
+const up3placeholder = 'Semua Unit Pelaksanaan Pelayanan Pelanggan'
const poskoPlaceholder = 'Semua Posko'
-const up3 = ref({ id: 0, name: up3laceholder })
+const up3 = ref({ id: 0, name: up3placeholder })
const uid = ref({ id: 0, name: uidPlaceholder })
const posko = ref({ id: 0, name: poskoPlaceholder })
const emit = defineEmits(['update:filters'])
@@ -32,7 +32,7 @@ watch(data.value, (value) => {
const setUid = (value: any) => {
uid.value = value
selectedUid(value)
- up3.value = { id: 0, name: up3laceholder }
+ up3.value = { id: 0, name: up3placeholder }
data.value.uid = value
}
@@ -65,7 +65,7 @@ onMounted(() => {
-
+
diff --git a/src/components/Form/FiltersType/Type11.vue b/src/components/Form/FiltersType/Type11.vue
index 24144c8..3ae83d4 100755
--- a/src/components/Form/FiltersType/Type11.vue
+++ b/src/components/Form/FiltersType/Type11.vue
@@ -1,6 +1,8 @@
@@ -63,9 +68,9 @@ onMounted(() => {
- {
- data.periode = value
- }
+ {
+ data.periode = value
+ }
" />
diff --git a/src/components/Form/FiltersType/Type7.vue b/src/components/Form/FiltersType/Type7.vue
index 51d2ae9..afb7573 100755
--- a/src/components/Form/FiltersType/Type7.vue
+++ b/src/components/Form/FiltersType/Type7.vue
@@ -65,18 +65,18 @@ const setMax = (value: any) => {
const triggerInput = ref(false)
const changeDuration = (value: any) => {
if (value.id === 0) {
- setMin("1 Menit")
- setMax("5 Menit")
+ setMin("1")
+ setMax("5")
console.log('Durasi Menit')
triggerInput.value = false
} else if (value.id === 1) {
- setMin("1 Menit")
- setMax("45 Menit")
+ setMin("1")
+ setMax("45")
console.log('Dibawah / Sesuai SLA (<= 45 menit)')
triggerInput.value = true
} else {
- setMin("45 Menit")
- setMax(99999 * 60 * 24+ ' Menit')
+ setMin("45")
+ setMax(99999 * 60 * 24)
triggerInput.value = true
console.log('Melebihi SLA (> 45 menit)')
}
diff --git a/src/components/Form/FiltersType/reference.ts b/src/components/Form/FiltersType/reference.ts
index b73e00f..dbf6727 100755
--- a/src/components/Form/FiltersType/reference.ts
+++ b/src/components/Form/FiltersType/reference.ts
@@ -2,7 +2,7 @@ import { usePostsStore } from '@/stores/posts'
import { useRegionStore } from '@/stores/region'
import { useUlpStore } from '@/stores/ulp'
import { useUp3Store } from '@/stores/up3'
-import { getUid, getUp3, getPosko, getUlp, getRegional } from '@/utils/network'
+import { getUid, getUp3, getPosko, getUlp, getRegional, getUidRegional } from '@/utils/network'
import { ref } from 'vue'
interface Item {
id: any
@@ -28,12 +28,12 @@ const years = ref
- ([])
for (let i = 0; i < 5; i++) {
years.value.push({ id: year - i, name: year - i })
}
-const itemsUid = ref
- ([])
-const itemsUp3 = ref
- ([])
-const itemsPosko = ref
- ([])
-const itemsUlp = ref
- ([])
-const itemsRegional = ref
- ([])
-const itemsMedia = ref
- ([])
+let itemsUid = ref
- ([])
+let itemsUp3 = ref
- ([])
+let itemsPosko = ref
- ([])
+let itemsUlp = ref
- ([])
+let itemsRegional = ref
- ([])
+let itemsMedia = ref
- ([])
// Fetch data from the API using Axios
const fetchMedia = () => {
itemsMedia.value = [
@@ -52,6 +52,23 @@ const fetchMedia = () => {
{ id: 'Call PLN 123', name: 'Call PLN 123' }
]
}
+const fetchUidByRegional = async (regional: number) => {
+ if (regional == 0) {
+ itemsUid.value = [];
+ } else {
+ try {
+ const res = await getUidRegional(regional)
+ itemsUid.value = res.data.map((item: any) => (
+ {
+ id: item.id,
+ name: item.nama.toUpperCase(),
+ }
+ ));
+ } catch (error) {
+ console.error('Error fetching data:', error);
+ }
+ }
+}
// Fetch data from the API using Axios
const fetchUid = async () => {
try {
@@ -68,36 +85,51 @@ const fetchUid = async () => {
}
const fetchDataUp3 = async (uid: number) => {
- try {
- const res = await getUp3(uid)
- itemsUp3.value = res.data.map((item: any) => ({
- id: item.id,
- name: item.nama
- }))
- } catch (error) {
- console.error('Error fetching data:', error)
+ if (uid == 0) {
+ itemsUp3.value = [];
+ itemsUlp.value = [];
+ itemsPosko.value = [];
+ } else {
+ try {
+ const res = await getUp3(uid);
+ itemsUp3.value = res.data.map((item: any) => ({
+ id: item.id,
+ name: item.nama
+ }))
+ } catch (error) {
+ console.error('Error fetching data:', error)
+ }
}
}
const fetchDataUlp = async (up3: number) => {
- try {
- const res = await getUlp(up3)
- itemsUlp.value = res.data.map((item: any) => ({
- id: item.id,
- name: item.nama
- }))
- } catch (error) {
- console.error('Error fetching data:', error)
+
+ if (up3 == 0) {
+ itemsUlp.value = []
+ } else {
+ try {
+ const res = await getUlp(up3)
+ itemsUlp.value = res.data.map((item: any) => ({
+ id: item.id,
+ name: item.name
+ }))
+ } catch (error) {
+ console.error('Error fetching data:', error)
+ }
}
}
const fetchDataPosko = async (up3: number) => {
- try {
- const res = await getPosko(up3)
- itemsPosko.value = res.data.map((item: any) => ({
- id: item.id,
- name: item.nama
- }))
- } catch (error) {
- console.error('Error fetching data:', error)
+ if (up3 == 0) {
+ itemsPosko.value = []
+ } else {
+ try {
+ const res = await getPosko(up3)
+ itemsPosko.value = res.data.map((item: any) => ({
+ id: item.id,
+ name: item.nama
+ }))
+ } catch (error) {
+ console.error('Error fetching data:', error)
+ }
}
}
const fetchRegional = async () => {
@@ -136,15 +168,16 @@ const selectedUlp = (value: any) => {
}
export {
+
selectedUid,
selectedUp3Posko,
selectedUp3Ulp,
selectedPosko,
selectedUlp,
fetchRegional,
+ fetchUidByRegional,
fetchUid,
fetchMedia,
- fetchStatus,
itemsUid,
itemsUp3,
itemsPosko,
diff --git a/src/components/Pages/Gangguan/Table_1.vue b/src/components/Pages/Gangguan/Table_1.vue
index 991fc26..3783e22 100755
--- a/src/components/Pages/Gangguan/Table_1.vue
+++ b/src/components/Pages/Gangguan/Table_1.vue
@@ -1,9 +1,7 @@
{
- console.log(filters)
filterData(filters)
- }
- " class="mb-4">
+ }" class="mb-4">
{
filters = value
}
@@ -278,6 +276,8 @@ const onExporting = (e: any) => {
// jsPDFDocument: doc,
// component: e.component,
// }).then(() => {
+ // doc.save(`Daftar Gangguan Dialihkan Ke Posko Lain.pdf`)
+
// })
} else {
const workbook = new Workbook()
@@ -355,7 +355,7 @@ const { onResult, onError, loading, refetch } = useQuery(
{
dateFrom: new Date().toISOString().slice(0, 10),
dateTo: new Date().toISOString().slice(0, 10),
- posko: '',
+ posko: 0,
idUid: 0,
idUp3: 0
}
diff --git a/src/components/Pages/Gangguan/Table_14.vue b/src/components/Pages/Gangguan/Table_14.vue
index d8aa38b..91ee2d4 100755
--- a/src/components/Pages/Gangguan/Table_14.vue
+++ b/src/components/Pages/Gangguan/Table_14.vue
@@ -28,6 +28,8 @@
+
@@ -109,6 +111,7 @@ const GET_REKAPITULASI_BERDASARKAN_MEDIA = gql`
idUp3: $idUp3
) {
media
+ total
tgl1
tgl10
tgl11
diff --git a/src/components/Pages/Keluhan/Table_23.vue b/src/components/Pages/Keluhan/Table_23.vue
index ba05c15..48c9d22 100755
--- a/src/components/Pages/Keluhan/Table_23.vue
+++ b/src/components/Pages/Keluhan/Table_23.vue
@@ -24,12 +24,9 @@
:calculateCellValue="(item: any) => data.findIndex((i) => i == item) + 1" data-type="number" caption="No" />
-
+
-
-
@@ -138,20 +135,20 @@ const GET_DATA = gql`
idUid: $idUid
idUp3: $idUp3
) {
- alamat_pelapor
- durasi_recovery_time
- durasi_response_time
- id_keluhan
- idpel_nometer
- keterangan_pelapor
- media
- nama_pelapor
- no_laporan
- no_telp_pelapor
- idUlp
- status_akhir
- waktu_recovery
- waktu_response
+ alamat_pelapor
+ durasi_recovery_time
+ durasi_response_time
+ idpel_nometer
+ keterangan_pelapor
+ media
+ nama_pelapor
+ nama_unit
+ no_laporan
+ no_telp_pelapor
+ status_akhir
+ waktu_lapor
+ waktu_recovery
+ waktu_response
}
}
`
@@ -160,21 +157,19 @@ const { onResult, onError, loading, refetch } = useQuery(GET_DATA, {
dateTo: new Date('2023-10-01').toISOString().slice(0, 10),
minDurasiResponseTime: 0,
maxDurasiResponseTime: 0,
- idUlp: '',
+ idUlp: 0,
idUid: 0,
idUp3: 0
})
const filterData = (params: any) => {
const dateValue = params.periode.split(' s/d ')
- const { idUlp, uid, up3 } = params
- const minDurasiResponseTime = params.minDurasiResponseTime ? params.minDurasiResponseTime : 0
- const maxDurasiResponseTime = params.maxDurasiResponseTime ? params.maxDurasiResponseTime : 0
+ const { ulp, uid, up3,maxTime,minTime } = params
refetch({
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),
- minDurasiResponseTime: minDurasiResponseTime,
- maxDurasiResponseTime: maxDurasiResponseTime,
- idUlp: idUlp ? idUlp.id : "",
+ minDurasiResponseTime: minTime,
+ maxDurasiResponseTime:maxTime,
+ idUlp: ulp ? ulp.id :0,
idUid: uid ? uid.id :0,
idUp3: up3? up3.id:0})
diff --git a/src/components/Pages/Keluhan/Table_24.vue b/src/components/Pages/Keluhan/Table_24.vue
index 678798d..bcec550 100755
--- a/src/components/Pages/Keluhan/Table_24.vue
+++ b/src/components/Pages/Keluhan/Table_24.vue
@@ -12,10 +12,10 @@
:allow-column-resizing="true" column-resizing-mode="widget" :word-wrap-enabled="true">
-
-
+
+
@@ -24,18 +24,13 @@
:calculateCellValue="(item: any) => data.findIndex((i) => i == item) + 1" data-type="number" caption="No" />
-
+
-
-
-
@@ -140,20 +135,20 @@ const GET_DATA = gql`
idUid: $idUid
idUp3: $idUp3
) {
- alamat_pelapor
- durasi_recovery_time
- durasi_response_time
- id_keluhan
- idpel_nometer
- keterangan_pelapor
- media
- nama_pelapor
- no_laporan
- no_telp_pelapor
- idUlp
- status_akhir
- waktu_recovery
- waktu_response
+ alamat_pelapor
+durasi_recovery_time
+durasi_response_time
+idpel_nometer
+keterangan_pelapor
+media
+nama_pelapor
+nama_unit
+no_laporan
+no_telp_pelapor
+status_akhir
+waktu_lapor
+waktu_recovery
+waktu_response
}
}
`
@@ -163,28 +158,27 @@ const { onResult, onError, loading, refetch } = useQuery(GET_DATA, {
dateTo: new Date('2023-10-01').toISOString().slice(0, 10),
minDurasiRecoveryTime: 0,
maxDurasiRecoveryTime: 0,
- idUlp: '',
+ idUlp: 0,
idUid: 0,
idUp3: 0
})
const filterData = (params: any) => {
const dateValue = params.periode.split(' s/d ')
- const { idUlp, uid, up3 } = params
- const minDurasiRecoveryTime = params.minDurasiRecoveryTime ? params.minDurasiRecoveryTime : 0
- const maxDurasiRecoveryTime = params.maxDurasiRecoveryTime ? params.maxDurasiRecoveryTime : 0
+ const { ulp, uid, up3,minTime,maxTime } = params
refetch({
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),
- minDurasiRecoveryTime: minDurasiRecoveryTime,
- maxDurasiRecoveryTime: maxDurasiRecoveryTime,
- idUlp: idUlp ? idUlp.id : "",
- idUid: uid ? uid.id :0,
- idUp3: up3? up3.id:0})
+ minDurasiRecoveryTime: minTime,
+ maxDurasiRecoveryTime: maxTime,
+ idUlp: ulp ? ulp.id : 0,
+ idUid: uid ? uid.id : 0,
+ idUp3: up3 ? up3.id : 0
+ })
onResult((queryResult) => {
if (queryResult.data != undefined) {
data.value = queryResult.data.daftarKeluhanRecoveryTime
-
+
}
console.log(queryResult.data)
console.log(queryResult.loading)
@@ -193,7 +187,7 @@ const filterData = (params: any) => {
onError((error) => {
console.log(error)
})
-
+
}
const filters = ref();
diff --git a/src/components/Pages/Keluhan/Table_25.vue b/src/components/Pages/Keluhan/Table_25.vue
index 7a3a3e6..23ab09d 100755
--- a/src/components/Pages/Keluhan/Table_25.vue
+++ b/src/components/Pages/Keluhan/Table_25.vue
@@ -159,7 +159,7 @@ const GET_DATA = gql`
const { onResult, onError,loading,refetch } = useQuery(GET_DATA, {
dateFrom: new Date('2023-10-01').toISOString().slice(0, 10),
dateTo: new Date('2023-10-01').toISOString().slice(0, 10),
- idUlp: '',
+ idUlp: 0,
idUid: 0,
idUp3: 0
})
@@ -170,7 +170,7 @@ const filterData = (params: any) => {
refetch({
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),
- idUlp: idUlp ? idUlp.id : "",
+ idUlp: idUlp ? idUlp.id : 0,
idUid: uid ? uid.id :0,
idUp3: up3? up3.id:0})
diff --git a/src/components/Pages/Keluhan/Table_26.vue b/src/components/Pages/Keluhan/Table_26.vue
index 94dae7c..f6d2589 100755
--- a/src/components/Pages/Keluhan/Table_26.vue
+++ b/src/components/Pages/Keluhan/Table_26.vue
@@ -6,16 +6,16 @@
" />
-
-
-
+
+
@@ -157,25 +157,26 @@ const GET_DATA = gql`
const { onResult, onError, loading, refetch } = useQuery(GET_DATA, {
dateFrom: new Date('2023-10-01').toISOString().slice(0, 10),
dateTo: new Date('2023-10-01').toISOString().slice(0, 10),
- idUlp: '',
+ idUlp: 0,
idUid: 0,
idUp3: 0
})
const filterData = (params: any) => {
const dateValue = params.periode.split(' s/d ')
- const { idUlp, uid, up3 } = params
+ const { idUlp, uid, up3 } = params
refetch({
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),
- idUlp: idUlp ? idUlp.id : "",
- idUid: uid ? uid.id :0,
- idUp3: up3? up3.id:0})
+ idUlp: idUlp ? idUlp.id : 0,
+ idUid: uid ? uid.id : 0,
+ idUp3: up3 ? up3.id : 0
+ })
onResult((queryResult) => {
if (queryResult.data != undefined) {
data.value = queryResult.data.daftarKeluhanBerdasarkanMedia
-
+
}
console.log(queryResult.data)
console.log(queryResult.loading)
diff --git a/src/components/Pages/Keluhan/Table_27.vue b/src/components/Pages/Keluhan/Table_27.vue
index d7109e6..42b7342 100755
--- a/src/components/Pages/Keluhan/Table_27.vue
+++ b/src/components/Pages/Keluhan/Table_27.vue
@@ -154,7 +154,7 @@ const GET_DATA = gql`
const { onResult, onError, loading, refetch } = useQuery(GET_DATA, {
dateFrom: new Date('2023-10-01').toISOString().slice(0, 10),
dateTo: new Date('2023-10-01').toISOString().slice(0, 10),
- idUlp: '',
+ idUlp: 0,
idUid: 0,
idUp3: 0,
media: 'Twitter'
@@ -168,7 +168,7 @@ const filterData = (params: any) => {
refetch({
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),
- idUlp: idUlp ? idUlp.id : "",
+ idUlp: idUlp ? idUlp.id : 0,
idUid: uid ? uid.id : 0,
idUp3: up3 ? up3.id : 0,
media: media
diff --git a/src/components/Pages/Keluhan/Table_28.vue b/src/components/Pages/Keluhan/Table_28.vue
index 364367f..0932408 100755
--- a/src/components/Pages/Keluhan/Table_28.vue
+++ b/src/components/Pages/Keluhan/Table_28.vue
@@ -167,7 +167,7 @@ query rekapitulasiKeluhanAll
const { onResult, onError,loading,refetch } = useQuery(GET_DATA, {
dateFrom: new Date('2023-10-01').toISOString().slice(0, 10),
dateTo: new Date('2023-10-01').toISOString().slice(0, 10),
- idUlp: '',
+ idUlp: 0,
idUid: 0,
idUp3: 0
})
@@ -179,7 +179,7 @@ const filterData = (params: any) => {
refetch({
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),
- idUlp: idUlp ? idUlp.id : "",
+ idUlp: idUlp ? idUlp.id : 0,
idUid: uid ? uid.id :0,
idUp3: up3? up3.id:0})
diff --git a/src/components/Pages/Keluhan/Table_29.vue b/src/components/Pages/Keluhan/Table_29.vue
index b284b46..a8fe7d0 100755
--- a/src/components/Pages/Keluhan/Table_29.vue
+++ b/src/components/Pages/Keluhan/Table_29.vue
@@ -182,7 +182,7 @@ const GET_DATA = gql`
const { onResult, onError, loading, refetch } = useQuery(GET_DATA, {
dateFrom: new Date('2023-10-01').toISOString().slice(0, 10),
dateTo: new Date('2023-10-01').toISOString().slice(0, 10),
- idUlp: '',
+ idUlp: 0,
idUid: 0,
idUp3: 0
})
@@ -194,7 +194,7 @@ const filterData = (params: any) => {
refetch({
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),
- idUlp: idUlp ? idUlp.id : "",
+ idUlp: idUlp ? idUlp.id : 0,
idUid: uid ? uid.id :0,
idUp3: up3? up3.id:0})
diff --git a/src/components/Pages/Keluhan/Table_30.vue b/src/components/Pages/Keluhan/Table_30.vue
index 1c6f626..d4a94c1 100755
--- a/src/components/Pages/Keluhan/Table_30.vue
+++ b/src/components/Pages/Keluhan/Table_30.vue
@@ -188,7 +188,7 @@ const filterData = (params: any) => {
refetch({
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),
- idUlp: idUlp ? idUlp.id : "",
+ idUlp: idUlp ? idUlp.id : 0,
idUid: uid ? uid.id :0,
idUp3: up3? up3.id:0})
diff --git a/src/components/Pages/Keluhan/Table_31.vue b/src/components/Pages/Keluhan/Table_31.vue
index 3da43a6..7a230b4 100755
--- a/src/components/Pages/Keluhan/Table_31.vue
+++ b/src/components/Pages/Keluhan/Table_31.vue
@@ -188,7 +188,7 @@ const filterData = (params: any) => {
refetch({
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),
- idUlp: idUlp ? idUlp.id : "",
+ idUlp: idUlp ? idUlp.id : 0,
idUid: uid ? uid.id :0,
idUp3: up3? up3.id:0})
diff --git a/src/components/Pages/Keluhan/Table_32.vue b/src/components/Pages/Keluhan/Table_32.vue
index 9820702..e17c568 100755
--- a/src/components/Pages/Keluhan/Table_32.vue
+++ b/src/components/Pages/Keluhan/Table_32.vue
@@ -197,7 +197,7 @@ const filterData = (params: any) => {
refetch({
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),
- idUlp: idUlp ? idUlp.id : "",
+ idUlp: idUlp ? idUlp.id : 0,
idUid: uid ? uid.id : 0,
idUp3: up3 ? up3.id : 0
})
diff --git a/src/components/Pages/Keluhan/Table_33.vue b/src/components/Pages/Keluhan/Table_33.vue
index 91c35bc..a602e4d 100755
--- a/src/components/Pages/Keluhan/Table_33.vue
+++ b/src/components/Pages/Keluhan/Table_33.vue
@@ -184,7 +184,7 @@ const GET_DATA = gql`
const { onResult, onError, loading, refetch } = useQuery(GET_DATA, {
dateFrom: new Date('2023-10-01').toISOString().slice(0, 10),
dateTo: new Date('2023-10-01').toISOString().slice(0, 10),
- idUlp: '',
+ idUlp: 0,
idUid: 0,
idUp3: 0
})
@@ -196,7 +196,7 @@ const filterData = (params: any) => {
refetch({
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),
- idUlp: idUlp ? idUlp.id : "",
+ idUlp: idUlp ? idUlp.id : 0,
idUid: uid ? uid.id : 0,
idUp3: up3 ? up3.id : 0
})
diff --git a/src/components/Pages/Keluhan/Table_34.vue b/src/components/Pages/Keluhan/Table_34.vue
index 666be59..4c011bc 100755
--- a/src/components/Pages/Keluhan/Table_34.vue
+++ b/src/components/Pages/Keluhan/Table_34.vue
@@ -145,7 +145,7 @@ const GET_DATA = gql`
const { onResult, onError, loading, refetch } = useQuery(GET_DATA, {
dateFrom: new Date('2023-10-01').toISOString().slice(0, 10),
dateTo: new Date('2023-10-01').toISOString().slice(0, 10),
- idUlp: '',
+ idUlp: 0,
idUid: 0,
idUp3: 0
})
@@ -157,7 +157,7 @@ const filterData = (params: any) => {
refetch({
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),
- idUlp: idUlp ? idUlp.id : "",
+ idUlp: idUlp ? idUlp.id : 0,
idUid: uid ? uid.id : 0,
idUp3: up3 ? up3.id : 0
})
diff --git a/src/components/Pages/Keluhan/Table_35.vue b/src/components/Pages/Keluhan/Table_35.vue
index 82c7654..af8584f 100755
--- a/src/components/Pages/Keluhan/Table_35.vue
+++ b/src/components/Pages/Keluhan/Table_35.vue
@@ -177,7 +177,7 @@ const filterData = (params: any) => {
refetch({
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),
- idUlp: idUlp ? idUlp.id : "",
+ idUlp: idUlp ? idUlp.id : 0,
idUid: uid ? uid.id : 0,
idUp3: up3 ? up3.id : 0
})
diff --git a/src/components/Select.vue b/src/components/Select.vue
index 5092440..57b341b 100755
--- a/src/components/Select.vue
+++ b/src/components/Select.vue
@@ -29,6 +29,8 @@ const selected = ref(data.value[0].id)
watch(
() => props.selected,
(value: any) => {
+ console.log('value', value)
+ console.log('aaaaaaaaaaaaaaaa')
selected.value = value.id
}
)