Refactor date formatting and add conditional dialog display
This commit is contained in:
@ -572,8 +572,10 @@ const showDetail = () => {
|
||||
clearSelection()
|
||||
dataSub.value = []
|
||||
dataSubSelected.value = null
|
||||
dialogDetail.value = true
|
||||
getDetail()
|
||||
if (date.value != '') {
|
||||
dialogDetail.value = true
|
||||
getDetail()
|
||||
}
|
||||
}
|
||||
|
||||
const closeDialog = () => {
|
||||
@ -601,10 +603,7 @@ const onExportingDetail = (e: any) => {
|
||||
const onDataSelectionChanged = ({ selectedRowsData }: any) => {
|
||||
if (selectedRowsData[0] != undefined) {
|
||||
dataSelected.value = selectedRowsData[0]
|
||||
|
||||
if (date.value != '') {
|
||||
showDetail()
|
||||
}
|
||||
showDetail()
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user