Fix loading issue and reset dataSub value in showDialogDataSelected() function

This commit is contained in:
Dede Fuji Abdul 2024-03-14 14:04:42 +07:00
parent 4c14ef3907
commit d67cd7a9a9

View File

@ -1067,12 +1067,9 @@ const filterData = (params: any) => {
}
const getDetail = () => {
loadingSubData.value = true
const dateValue = filters.value.periode.split(' s/d ')
const ref = dataSelected.value
console.table(ref)
console.log(ref.id_posko)
console.log(ref.id_uid)
console.log(ref.id_up3)
const query = {
dateFrom: dateValue[0]
@ -1103,7 +1100,6 @@ const getDetail = () => {
console.log(error)
})
loadingSubData.value = loading.value
watch(loading, (value) => {
loadingSubData.value = value
})
@ -1111,6 +1107,7 @@ const getDetail = () => {
const showDialogDataSelected = () => {
if (dataSelected.value != null) {
dataSub.value = []
dialogDataSelected.value = true
getDetail()
}