Refactor filterData function and add resetData function

This commit is contained in:
Dede Fuji Abdul
2024-03-30 23:47:20 +07:00
parent 58bad1a561
commit 48087095a6
10 changed files with 94 additions and 12 deletions

View File

@@ -535,7 +535,13 @@ const onDataSubSelectionChanged = ({ selectedRowsData }: any) => {
const closeDialog = () => (dialogDetail.value = false)
const resetData = () => {
data.value = []
dataSub.value = []
}
const filterData = async (params: any) => {
resetData()
const { minJmlLapor, maxJmlLapor, posko, uid, up3 } = params
const dateValue = params.periode.split(' s/d ')