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

@ -234,7 +234,13 @@ const onExporting = (e: any) => {
}
}
const resetData = () => {
data.value = []
dataSub.value = []
}
const filterData = async (params: any) => {
resetData()
const { posko, uid, up3, ulp } = params
const dateValue = params.periode.split(' s/d ')