Refactor code to update version numbers and fix bugs in Gangguan and Monalisa components

This commit is contained in:
Dede Fuji Abdul
2024-04-19 19:34:54 +07:00
parent 3a891bf159
commit ee034bacf9
28 changed files with 570 additions and 205 deletions

View File

@@ -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()
}
}