Update GraphQL queries in Monalisa Gangguan Rekap components
This commit is contained in:
@@ -100,6 +100,7 @@ import { Workbook } from 'exceljs'
|
||||
import { useQuery } from '@vue/apollo-composable'
|
||||
import gql from 'graphql-tag'
|
||||
import { getMonthName } from '@/utils/texts'
|
||||
import { queries } from '@/utils/graphql'
|
||||
|
||||
const currentYear = ref(new Date().getFullYear())
|
||||
const currentMonth = ref(new Date().getMonth())
|
||||
@@ -110,45 +111,7 @@ const showPane = ref(true)
|
||||
const data = ref<any[]>([])
|
||||
const dataDetail = ref<any>()
|
||||
const showDetail = ref(false)
|
||||
const monalisaJumlahDurasiRptRctGangguan = gql`
|
||||
query DaftarmonalisaJumlahDurasiRptRctGangguan(
|
||||
#$regional: String
|
||||
$idUlp: Int
|
||||
$idUid: Int
|
||||
$idUp3: Int
|
||||
$bulan: Int
|
||||
$tahun: Int
|
||||
) {
|
||||
monalisaJumlahDurasiRptRctGangguan(
|
||||
#regional: $regional
|
||||
idUlp: $idUlp
|
||||
idUid: $idUid
|
||||
idUp3: $idUp3
|
||||
bulan: $bulan
|
||||
tahun: $tahun
|
||||
) {
|
||||
id_uid
|
||||
nama_uid
|
||||
id_up3
|
||||
nama_up3
|
||||
id_ulp
|
||||
nama_ulp
|
||||
total_durasi_response_time_bulan_ini
|
||||
count_durasi_response_time_bulan_ini
|
||||
avg_durasi_response_time_bulan_ini
|
||||
total_durasi_recovery_time_bulan_ini
|
||||
count_durasi_recovery_time_bulan_ini
|
||||
avg_durasi_recovery_time_bulan_ini
|
||||
total_durasi_response_time_tahun_ini
|
||||
count_durasi_response_time_tahun_ini
|
||||
avg_durasi_response_time_tahun_ini
|
||||
total_durasi_recovery_time_tahun_ini
|
||||
count_durasi_recovery_time_tahun_ini
|
||||
avg_durasi_recovery_time_tahun_ini
|
||||
}
|
||||
}
|
||||
`
|
||||
const { onResult, onError, loading, refetch } = useQuery(monalisaJumlahDurasiRptRctGangguan, {
|
||||
const { onResult, onError, loading, refetch } = useQuery(queries.monalisa.gangguan.rekap.jumlahDurasiRptRctGangguan, {
|
||||
bulan: 10,
|
||||
tahun: 2023,
|
||||
// regional: '',
|
||||
|
Reference in New Issue
Block a user