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

@@ -324,7 +324,12 @@ const showDetail = () => (dialogDetail.value = true)
const closeDialog = () => (dialogDetail.value = false)
const resetData = () => {
data.value = []
}
const filterData = async (params: any) => {
resetData()
const dateValue = params.periode.split(' s/d ')
const { posko, uid, up3 } = params