Update GraphQL queries in Kumulatif Laporan components
This commit is contained in:
@@ -64,6 +64,7 @@ import { saveAs } from 'file-saver'
|
||||
import { Workbook } from 'exceljs'
|
||||
import { useQuery } from '@vue/apollo-composable'
|
||||
import gql from 'graphql-tag'
|
||||
import { queries } from '@/utils/graphql'
|
||||
const position = { of: '#data' }
|
||||
const showIndicator = ref(true)
|
||||
const shading = ref(true)
|
||||
@@ -105,40 +106,9 @@ const onSelectionChanged = ({ selectedRowsData }: any) => {
|
||||
const data = selectedRowsData[0]
|
||||
console.log(data)
|
||||
}
|
||||
const energyNotSalesKumulatif = gql`
|
||||
query DaftarEnergyNotSalesKumulatif(
|
||||
#$regional: String
|
||||
$idUlp: Int
|
||||
$idUid: Int
|
||||
$idUp3: Int
|
||||
$bulan: Int
|
||||
$tahun: Int
|
||||
) {
|
||||
energyNotSalesKumulatif(
|
||||
#regional: $regional
|
||||
idUlp: $idUlp
|
||||
idUid: $idUid
|
||||
idUp3: $idUp3
|
||||
bulan: $bulan
|
||||
tahun: $tahun
|
||||
) {
|
||||
nama_regional
|
||||
id_uid
|
||||
nama_uid
|
||||
id_up3
|
||||
nama_up3
|
||||
id_ulp
|
||||
nama_ulp
|
||||
terencana
|
||||
tidak_terencana
|
||||
bencana_alam
|
||||
total
|
||||
kpi_ens
|
||||
}
|
||||
}
|
||||
`
|
||||
|
||||
const { onResult, onError, loading, refetch } = useQuery(
|
||||
energyNotSalesKumulatif,
|
||||
queries.monalisa.laporan.kumulatif.energyNotSalesKumulatif,
|
||||
{
|
||||
regional: '',
|
||||
idUlp: 0,
|
||||
|
Reference in New Issue
Block a user