Refactor code to update version numbers and fix bugs in Gangguan and Monalisa components
This commit is contained in:
@@ -736,7 +736,7 @@ const loadingSubData = ref(false)
|
||||
const groupIndex = ref(0)
|
||||
const groupData = ref<any>(null)
|
||||
const groupDialog = ref(false)
|
||||
const agreeToShowDialog = ref(false)
|
||||
const isDialogEnabled = ref(false)
|
||||
const reportMeta = ref({
|
||||
regional: { id: 0, name: 'Semua Regional' },
|
||||
uid: { id: 0, name: 'Semua Unit Induk Distribusi/Wilayah' },
|
||||
@@ -805,9 +805,9 @@ const setParameterRequest = (data: any) => {
|
||||
parameterRequest.value = data
|
||||
const parameter = parameterRequest.value
|
||||
if (parameter.type != null) {
|
||||
agreeToShowDialog.value = true
|
||||
isDialogEnabled.value = true
|
||||
} else {
|
||||
agreeToShowDialog.value = false
|
||||
isDialogEnabled.value = false
|
||||
}
|
||||
}
|
||||
|
||||
@@ -908,7 +908,7 @@ const clearSelection = () => {
|
||||
const showDetail = () => {
|
||||
clearSelection()
|
||||
dataSubSelected.value = null
|
||||
if (agreeToShowDialog.value) {
|
||||
if (isDialogEnabled.value) {
|
||||
getDetail()
|
||||
}
|
||||
}
|
||||
|
@@ -1194,7 +1194,7 @@ const dialogDetail = ref(false)
|
||||
const closedialogDetail = () => (dialogDetail.value = false)
|
||||
const loadingData = ref(false)
|
||||
const loadingSubData = ref(false)
|
||||
const agreeToShowDialog = ref(false)
|
||||
const isDialogEnabled = ref(false)
|
||||
const groupIndex = ref(0)
|
||||
const groupDialog = ref(false)
|
||||
const groupData = ref<any>(null)
|
||||
@@ -1277,9 +1277,9 @@ const setParameterRequest = (data: any) => {
|
||||
parameterRequest.value = data
|
||||
const parameter = parameterRequest.value
|
||||
if (parameter.type != null) {
|
||||
agreeToShowDialog.value = true
|
||||
isDialogEnabled.value = true
|
||||
} else {
|
||||
agreeToShowDialog.value = false
|
||||
isDialogEnabled.value = false
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1380,7 +1380,7 @@ const clearSelection = () => {
|
||||
const showDetail = () => {
|
||||
clearSelection()
|
||||
dataSubSelected.value = null
|
||||
if (agreeToShowDialog.value) {
|
||||
if (isDialogEnabled.value) {
|
||||
getDetail()
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user