Fix showDetail function in multiple components
This commit is contained in:
@@ -949,6 +949,7 @@ const getDetail = async () => {
|
|||||||
})
|
})
|
||||||
.finally(() => {
|
.finally(() => {
|
||||||
loadingSubData.value = false
|
loadingSubData.value = false
|
||||||
|
dialogDetail.value = true
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -961,7 +962,6 @@ const showDetail = () => {
|
|||||||
clearSelection()
|
clearSelection()
|
||||||
dataSub.value = []
|
dataSub.value = []
|
||||||
dataSubSelected.value = null
|
dataSubSelected.value = null
|
||||||
dialogDetail.value = true
|
|
||||||
getDetail()
|
getDetail()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -973,7 +973,7 @@ const showDetail = () => {
|
|||||||
dataSub.value = []
|
dataSub.value = []
|
||||||
dataSubSelected.value = null
|
dataSubSelected.value = null
|
||||||
if (agreeToShowDialog.value) {
|
if (agreeToShowDialog.value) {
|
||||||
// getDetail()
|
getDetail()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -1237,7 +1237,7 @@ const showDetail = () => {
|
|||||||
dataSub.value = []
|
dataSub.value = []
|
||||||
dataSubSelected.value = null
|
dataSubSelected.value = null
|
||||||
if (monthSelected.value != null) {
|
if (monthSelected.value != null) {
|
||||||
// getDetail()
|
getDetail()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -995,7 +995,7 @@ const showDetail = () => {
|
|||||||
dataSub.value = []
|
dataSub.value = []
|
||||||
dataSubSelected.value = null
|
dataSubSelected.value = null
|
||||||
if (agreeToShowDialog.value) {
|
if (agreeToShowDialog.value) {
|
||||||
// getDetail()
|
getDetail()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -1006,7 +1006,7 @@ const showDetail = () => {
|
|||||||
dataSub.value = []
|
dataSub.value = []
|
||||||
dataSubSelected.value = null
|
dataSubSelected.value = null
|
||||||
if (agreeToShowDialog.value) {
|
if (agreeToShowDialog.value) {
|
||||||
// getDetail()
|
getDetail()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -757,7 +757,7 @@ const showDetail = () => {
|
|||||||
dataSub.value = []
|
dataSub.value = []
|
||||||
dataSubSelected.value = null
|
dataSubSelected.value = null
|
||||||
if (agreeToShowDialog.value) {
|
if (agreeToShowDialog.value) {
|
||||||
// getDetail()
|
getDetail()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -758,7 +758,7 @@ const showDetail = () => {
|
|||||||
dataSub.value = []
|
dataSub.value = []
|
||||||
dataSubSelected.value = null
|
dataSubSelected.value = null
|
||||||
if (agreeToShowDialog.value) {
|
if (agreeToShowDialog.value) {
|
||||||
// getDetail()
|
getDetail()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
const closeDialog = () => {
|
const closeDialog = () => {
|
||||||
|
@@ -752,7 +752,7 @@ const showDetail = () => {
|
|||||||
dataSub.value = []
|
dataSub.value = []
|
||||||
dataSubSelected.value = null
|
dataSubSelected.value = null
|
||||||
if (agreeToShowDialog.value) {
|
if (agreeToShowDialog.value) {
|
||||||
// getDetail()
|
getDetail()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -510,6 +510,7 @@ const getDetail = async () => {
|
|||||||
})
|
})
|
||||||
.finally(() => {
|
.finally(() => {
|
||||||
loadingSubData.value = false
|
loadingSubData.value = false
|
||||||
|
dialogDetail.value = true
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -521,7 +522,6 @@ const clearSelection = () => {
|
|||||||
const showDetail = () => {
|
const showDetail = () => {
|
||||||
clearSelection()
|
clearSelection()
|
||||||
dataSubSelected.value = null
|
dataSubSelected.value = null
|
||||||
dialogDetail.value = true
|
|
||||||
if (detailType.value == 'table') {
|
if (detailType.value == 'table') {
|
||||||
getDetail()
|
getDetail()
|
||||||
}
|
}
|
||||||
|
@@ -309,6 +309,7 @@ const getDetail = async () => {
|
|||||||
})
|
})
|
||||||
.finally(() => {
|
.finally(() => {
|
||||||
loadingSubData.value = false
|
loadingSubData.value = false
|
||||||
|
dialogDetail.value = true
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -320,7 +321,6 @@ const clearSelection = () => {
|
|||||||
const showDetail = () => {
|
const showDetail = () => {
|
||||||
clearSelection()
|
clearSelection()
|
||||||
dataSubSelected.value = null
|
dataSubSelected.value = null
|
||||||
dialogDetail.value = true
|
|
||||||
getDetail()
|
getDetail()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -867,6 +867,7 @@ const getDetail = async () => {
|
|||||||
})
|
})
|
||||||
.finally(() => {
|
.finally(() => {
|
||||||
loadingSubData.value = false
|
loadingSubData.value = false
|
||||||
|
dialogDetail.value = true
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -878,7 +879,6 @@ const clearSelection = () => {
|
|||||||
const showDetail = () => {
|
const showDetail = () => {
|
||||||
clearSelection()
|
clearSelection()
|
||||||
dataSubSelected.value = null
|
dataSubSelected.value = null
|
||||||
dialogDetail.value = true
|
|
||||||
getDetail()
|
getDetail()
|
||||||
}
|
}
|
||||||
const onDataSelectionChanged = ({ selectedRowsData }: any) => {
|
const onDataSelectionChanged = ({ selectedRowsData }: any) => {
|
||||||
|
@@ -427,6 +427,7 @@ const getDetail = async () => {
|
|||||||
})
|
})
|
||||||
.finally(() => {
|
.finally(() => {
|
||||||
loadingSubData.value = false
|
loadingSubData.value = false
|
||||||
|
dialogDetail.value = true
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -438,7 +439,6 @@ const clearSelection = () => {
|
|||||||
const showDetail = () => {
|
const showDetail = () => {
|
||||||
clearSelection()
|
clearSelection()
|
||||||
dataSubSelected.value = null
|
dataSubSelected.value = null
|
||||||
dialogDetail.value = true
|
|
||||||
getDetail()
|
getDetail()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -672,6 +672,7 @@ const getDetail = async () => {
|
|||||||
})
|
})
|
||||||
.finally(() => {
|
.finally(() => {
|
||||||
loadingSubData.value = false
|
loadingSubData.value = false
|
||||||
|
dialogDetail.value = true
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -683,7 +684,6 @@ const clearSelection = () => {
|
|||||||
const showDetail = () => {
|
const showDetail = () => {
|
||||||
clearSelection()
|
clearSelection()
|
||||||
dataSubSelected.value = null
|
dataSubSelected.value = null
|
||||||
dialogDetail.value = true
|
|
||||||
getDetail()
|
getDetail()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -282,6 +282,7 @@ const getDetail = async () => {
|
|||||||
})
|
})
|
||||||
.finally(() => {
|
.finally(() => {
|
||||||
loadingSubData.value = false
|
loadingSubData.value = false
|
||||||
|
dialogDetail.value = true
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -293,7 +294,6 @@ const clearSelection = () => {
|
|||||||
const showDetail = () => {
|
const showDetail = () => {
|
||||||
clearSelection()
|
clearSelection()
|
||||||
dataSubSelected.value = null
|
dataSubSelected.value = null
|
||||||
dialogDetail.value = true
|
|
||||||
getDetail()
|
getDetail()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -511,6 +511,7 @@ const getDetail = async () => {
|
|||||||
})
|
})
|
||||||
.finally(() => {
|
.finally(() => {
|
||||||
loadingSubData.value = false
|
loadingSubData.value = false
|
||||||
|
dialogDetail.value = true
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -522,7 +523,6 @@ const clearSelection = () => {
|
|||||||
const showDetail = () => {
|
const showDetail = () => {
|
||||||
clearSelection()
|
clearSelection()
|
||||||
dataSubSelected.value = null
|
dataSubSelected.value = null
|
||||||
dialogDetail.value = true
|
|
||||||
getDetail()
|
getDetail()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -428,6 +428,7 @@ const getDetail = async () => {
|
|||||||
})
|
})
|
||||||
.finally(() => {
|
.finally(() => {
|
||||||
loadingSubData.value = false
|
loadingSubData.value = false
|
||||||
|
dialogDetail.value = true
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -439,7 +440,6 @@ const clearSelection = () => {
|
|||||||
const showDetail = () => {
|
const showDetail = () => {
|
||||||
clearSelection()
|
clearSelection()
|
||||||
dataSubSelected.value = null
|
dataSubSelected.value = null
|
||||||
dialogDetail.value = true
|
|
||||||
getDetail()
|
getDetail()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -433,6 +433,7 @@ const getDetail = async () => {
|
|||||||
})
|
})
|
||||||
.finally(() => {
|
.finally(() => {
|
||||||
loadingSubData.value = false
|
loadingSubData.value = false
|
||||||
|
dialogDetail.value = true
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -444,7 +445,6 @@ const clearSelection = () => {
|
|||||||
const showDetail = () => {
|
const showDetail = () => {
|
||||||
clearSelection()
|
clearSelection()
|
||||||
dataSubSelected.value = null
|
dataSubSelected.value = null
|
||||||
dialogDetail.value = true
|
|
||||||
getDetail()
|
getDetail()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -433,6 +433,7 @@ const getDetail = async () => {
|
|||||||
})
|
})
|
||||||
.finally(() => {
|
.finally(() => {
|
||||||
loadingSubData.value = false
|
loadingSubData.value = false
|
||||||
|
dialogDetail.value = true
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -444,7 +445,6 @@ const clearSelection = () => {
|
|||||||
const showDetail = () => {
|
const showDetail = () => {
|
||||||
clearSelection()
|
clearSelection()
|
||||||
dataSubSelected.value = null
|
dataSubSelected.value = null
|
||||||
dialogDetail.value = true
|
|
||||||
getDetail()
|
getDetail()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -433,6 +433,7 @@ const getDetail = async () => {
|
|||||||
})
|
})
|
||||||
.finally(() => {
|
.finally(() => {
|
||||||
loadingSubData.value = false
|
loadingSubData.value = false
|
||||||
|
dialogDetail.value = true
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -444,7 +445,6 @@ const clearSelection = () => {
|
|||||||
const showDetail = () => {
|
const showDetail = () => {
|
||||||
clearSelection()
|
clearSelection()
|
||||||
dataSubSelected.value = null
|
dataSubSelected.value = null
|
||||||
dialogDetail.value = true
|
|
||||||
getDetail()
|
getDetail()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -236,6 +236,7 @@ const getDetail = async () => {
|
|||||||
})
|
})
|
||||||
.finally(() => {
|
.finally(() => {
|
||||||
loadingSubData.value = false
|
loadingSubData.value = false
|
||||||
|
dialogDetail.value = true
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -247,7 +248,6 @@ const clearSelection = () => {
|
|||||||
const showDetail = () => {
|
const showDetail = () => {
|
||||||
clearSelection()
|
clearSelection()
|
||||||
dataSubSelected.value = null
|
dataSubSelected.value = null
|
||||||
dialogDetail.value = true
|
|
||||||
getDetail()
|
getDetail()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -478,6 +478,7 @@ const getDetail = async () => {
|
|||||||
})
|
})
|
||||||
.finally(() => {
|
.finally(() => {
|
||||||
loadingSubData.value = false
|
loadingSubData.value = false
|
||||||
|
dialogDetail.value = true
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -489,7 +490,6 @@ const clearSelection = () => {
|
|||||||
const showDetail = () => {
|
const showDetail = () => {
|
||||||
clearSelection()
|
clearSelection()
|
||||||
dataSubSelected.value = null
|
dataSubSelected.value = null
|
||||||
dialogDetail.value = true
|
|
||||||
getDetail()
|
getDetail()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -424,6 +424,7 @@ const getDetail = async () => {
|
|||||||
})
|
})
|
||||||
.finally(() => {
|
.finally(() => {
|
||||||
loadingSubData.value = false
|
loadingSubData.value = false
|
||||||
|
dialogDetail.value = true
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -435,7 +436,6 @@ const clearSelection = () => {
|
|||||||
const showDetail = () => {
|
const showDetail = () => {
|
||||||
clearSelection()
|
clearSelection()
|
||||||
dataSubSelected.value = null
|
dataSubSelected.value = null
|
||||||
dialogDetail.value = true
|
|
||||||
getDetail()
|
getDetail()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -311,6 +311,7 @@ const getDetail = async () => {
|
|||||||
})
|
})
|
||||||
.finally(() => {
|
.finally(() => {
|
||||||
loadingSubData.value = false
|
loadingSubData.value = false
|
||||||
|
dialogDetail.value = true
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -322,7 +323,6 @@ const clearSelection = () => {
|
|||||||
const showDetail = () => {
|
const showDetail = () => {
|
||||||
clearSelection()
|
clearSelection()
|
||||||
dataSubSelected.value = null
|
dataSubSelected.value = null
|
||||||
dialogDetail.value = true
|
|
||||||
getDetail()
|
getDetail()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -389,6 +389,7 @@ const getDetail = async () => {
|
|||||||
})
|
})
|
||||||
.finally(() => {
|
.finally(() => {
|
||||||
loadingSubData.value = false
|
loadingSubData.value = false
|
||||||
|
dialogDetail.value = true
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -400,7 +401,6 @@ const clearSelection = () => {
|
|||||||
const showDetail = () => {
|
const showDetail = () => {
|
||||||
clearSelection()
|
clearSelection()
|
||||||
dataSubSelected.value = null
|
dataSubSelected.value = null
|
||||||
dialogDetail.value = true
|
|
||||||
getDetail()
|
getDetail()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -434,6 +434,7 @@ const getDetail = async () => {
|
|||||||
})
|
})
|
||||||
.finally(() => {
|
.finally(() => {
|
||||||
loadingSubData.value = false
|
loadingSubData.value = false
|
||||||
|
dialogDetail.value = true
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -445,7 +446,6 @@ const clearSelection = () => {
|
|||||||
const showDetail = () => {
|
const showDetail = () => {
|
||||||
clearSelection()
|
clearSelection()
|
||||||
dataSubSelected.value = null
|
dataSubSelected.value = null
|
||||||
dialogDetail.value = true
|
|
||||||
getDetail()
|
getDetail()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -431,6 +431,7 @@ const getDetail = async () => {
|
|||||||
})
|
})
|
||||||
.finally(() => {
|
.finally(() => {
|
||||||
loadingSubData.value = false
|
loadingSubData.value = false
|
||||||
|
dialogDetail.value = true
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -442,7 +443,6 @@ const clearSelection = () => {
|
|||||||
const showDetail = () => {
|
const showDetail = () => {
|
||||||
clearSelection()
|
clearSelection()
|
||||||
dataSubSelected.value = null
|
dataSubSelected.value = null
|
||||||
dialogDetail.value = true
|
|
||||||
getDetail()
|
getDetail()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -757,6 +757,7 @@ const getDetail = async () => {
|
|||||||
})
|
})
|
||||||
.finally(() => {
|
.finally(() => {
|
||||||
loadingSubData.value = false
|
loadingSubData.value = false
|
||||||
|
dialogDetail.value = true
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -768,7 +769,6 @@ const clearSelection = () => {
|
|||||||
const showDetail = () => {
|
const showDetail = () => {
|
||||||
clearSelection()
|
clearSelection()
|
||||||
dataSubSelected.value = null
|
dataSubSelected.value = null
|
||||||
dialogDetail.value = true
|
|
||||||
getDetail()
|
getDetail()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -368,6 +368,7 @@ const getDetail = async () => {
|
|||||||
})
|
})
|
||||||
.finally(() => {
|
.finally(() => {
|
||||||
loadingSubData.value = false
|
loadingSubData.value = false
|
||||||
|
dialogDetail.value = true
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -379,7 +380,6 @@ const clearSelection = () => {
|
|||||||
const showDetail = () => {
|
const showDetail = () => {
|
||||||
clearSelection()
|
clearSelection()
|
||||||
dataSubSelected.value = null
|
dataSubSelected.value = null
|
||||||
dialogDetail.value = true
|
|
||||||
getDetail()
|
getDetail()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -1082,6 +1082,7 @@ const getDetail = async () => {
|
|||||||
})
|
})
|
||||||
.finally(() => {
|
.finally(() => {
|
||||||
loadingSubData.value = false
|
loadingSubData.value = false
|
||||||
|
dialogDetail.value = true
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1093,7 +1094,6 @@ const clearSelection = () => {
|
|||||||
const showDetail = () => {
|
const showDetail = () => {
|
||||||
clearSelection()
|
clearSelection()
|
||||||
dataSubSelected.value = null
|
dataSubSelected.value = null
|
||||||
dialogDetail.value = true
|
|
||||||
getDetail()
|
getDetail()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -446,6 +446,7 @@ const getDetail = async () => {
|
|||||||
})
|
})
|
||||||
.finally(() => {
|
.finally(() => {
|
||||||
loadingSubData.value = false
|
loadingSubData.value = false
|
||||||
|
dialogDetail.value = true
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -457,7 +458,6 @@ const clearSelection = () => {
|
|||||||
const showDetail = () => {
|
const showDetail = () => {
|
||||||
clearSelection()
|
clearSelection()
|
||||||
dataSubSelected.value = null
|
dataSubSelected.value = null
|
||||||
dialogDetail.value = true
|
|
||||||
getDetail()
|
getDetail()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -368,6 +368,7 @@ const getDetail = async () => {
|
|||||||
})
|
})
|
||||||
.finally(() => {
|
.finally(() => {
|
||||||
loadingSubData.value = false
|
loadingSubData.value = false
|
||||||
|
dialogDetail.value = true
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -379,7 +380,6 @@ const clearSelection = () => {
|
|||||||
const showDetail = () => {
|
const showDetail = () => {
|
||||||
clearSelection()
|
clearSelection()
|
||||||
dataSubSelected.value = null
|
dataSubSelected.value = null
|
||||||
dialogDetail.value = true
|
|
||||||
getDetail()
|
getDetail()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -380,6 +380,7 @@ const getDetail = async () => {
|
|||||||
})
|
})
|
||||||
.finally(() => {
|
.finally(() => {
|
||||||
loadingSubData.value = false
|
loadingSubData.value = false
|
||||||
|
dialogDetail.value = true
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -391,7 +392,6 @@ const clearSelection = () => {
|
|||||||
const showDetail = () => {
|
const showDetail = () => {
|
||||||
clearSelection()
|
clearSelection()
|
||||||
dataSubSelected.value = null
|
dataSubSelected.value = null
|
||||||
dialogDetail.value = true
|
|
||||||
getDetail()
|
getDetail()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -827,6 +827,7 @@ const getDetail = async () => {
|
|||||||
})
|
})
|
||||||
.finally(() => {
|
.finally(() => {
|
||||||
loadingSubData.value = false
|
loadingSubData.value = false
|
||||||
|
dialogDetail.value = true
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -838,7 +839,6 @@ const clearSelection = () => {
|
|||||||
const showDetail = () => {
|
const showDetail = () => {
|
||||||
clearSelection()
|
clearSelection()
|
||||||
dataSubSelected.value = null
|
dataSubSelected.value = null
|
||||||
dialogDetail.value = true
|
|
||||||
getDetail()
|
getDetail()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user