change file name and directory network.ts n graphql
This commit is contained in:
@ -70,13 +70,14 @@
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import Filters from '@/components/Form/Filters.vue'
|
||||
import Type1 from '@/components/Form/FiltersType/Type1.vue'
|
||||
import { formatWaktu } from '@/components/Form/FiltersType/reference'
|
||||
import { onMounted, ref } from 'vue'
|
||||
import { DxDataGrid } from 'devextreme-vue'
|
||||
import {
|
||||
DxColumn,
|
||||
import Filters from '@/components/Form/Filters.vue';
|
||||
import { useQuery } from '@vue/apollo-composable';
|
||||
import { queries } from '@/utils/api/api.graphql';
|
||||
import { dummyData } from '@/utils/dummy';
|
||||
i t from '@ nents/Form/FiltersType/Type1.vue'
|
||||
m / F rs eferenc ort { onMounted, ref } from 'vue rt { DxDataG from 'devextreme - vue'
|
||||
impo
|
||||
xColumn,
|
||||
DxExport,
|
||||
DxLoadPanel,
|
||||
DxPager,
|
||||
@ -84,9 +85,6 @@ import {
|
||||
DxSearchPanel,
|
||||
DxSelection
|
||||
} from 'devextreme-vue/data-grid'
|
||||
import { useQuery } from '@vue/apollo-composable'
|
||||
import { queries } from '@/utils/graphql'
|
||||
import { dummyData } from '@/utils/dummy'
|
||||
|
||||
const position = { of: '#data' }
|
||||
const showIndicator = ref(true)
|
||||
@ -102,7 +100,7 @@ const { onResult, onError, loading, refetch } = useQuery(queries.gangguan.daftar
|
||||
idUp3: 0
|
||||
})
|
||||
|
||||
const filterData = (params: any) => {
|
||||
c onst filterData = (params: any) => {
|
||||
const { posko, uid, up3 } = params
|
||||
const dateValue = params.periode.split(' s/d ')
|
||||
refetch({
|
||||
@ -116,14 +114,14 @@ const filterData = (params: any) => {
|
||||
idUid: uid ? uid.id : 0,
|
||||
idUp3: up3 ? up3.id : 0
|
||||
})
|
||||
onResult((queryResult) => {
|
||||
onResult((queryRe) => {
|
||||
if (queryResult.data != undefined) {
|
||||
data.value = queryResult.data.daftarGangguanSelesaiTanpaIdPelanggan
|
||||
}
|
||||
console.log(queryResult.data)
|
||||
console.log(queryResult.loading)
|
||||
console.log(queryResult.networkStatus)
|
||||
})
|
||||
data.value = quer ult.data.daftarGangguanSelesaiTanpaIdPelanggan
|
||||
|
||||
c le.log(queryResult.data)
|
||||
console.log(queryResult.loading)
|
||||
console.log(queryResult.networkStatus)
|
||||
})
|
||||
onError((error) => {
|
||||
console.log(error)
|
||||
})
|
||||
@ -134,3 +132,4 @@ onMounted(() => {
|
||||
data.value = dummyData.gangguan.daftar.daftarGangguanSelesaiTanpaIdPelanggan
|
||||
})
|
||||
</script>
|
||||
@/utils/api/graphql
|
Reference in New Issue
Block a user