Fix filter update in Keluhan and Gangguan components

This commit is contained in:
Dede Fuji Abdul
2024-03-04 16:20:04 +07:00
parent d3ae911579
commit 9cb4551bb9
59 changed files with 295 additions and 325 deletions

View File

@@ -1,6 +1,6 @@
<template>
<Filters @reset-form="data = []" @run-search="() => filterData(filters)" class="mb-4">
<Type1 @update:filters="(value) => (filters = value)" />
<Type1 @update:filters="(value) => filters = value" />
</Filters>
<div id="dataTable">
@@ -365,9 +365,7 @@ const showPane = ref(true)
const data = ref<any[]>([])
const dataDetail = ref<any>()
const showDetail = ref(false)
const closeDetail = () => {
showDetail.value = false
}
const closeDetail = () => showDetail.value = false
const onExporting = (e: any) => {
if (e.format === 'pdf') {
@@ -503,10 +501,7 @@ const { onResult, onError, loading, refetch } = useQuery(
const onSelectionChanged = ({ selectedRowsData }: any) => {
const data = selectedRowsData[0]
dataDetail.value = data
console.log(data)
}
const showData = () => {
showDetail.value = true
}
const showData = () => showDetail.value = true
const filters = ref()
</script>