Refactor code to update version numbers and fix bugs in Gangguan and Monalisa components
This commit is contained in:
@ -519,7 +519,7 @@ const dataSelected = ref<any>(null)
|
||||
const dataSubSelected = ref<any>(null)
|
||||
const dialogDetail = ref(false)
|
||||
const loadingSubData = ref(false)
|
||||
const agreeToShowDialog = ref(false)
|
||||
const isDialogEnabled = ref(false)
|
||||
const reportMeta = ref<any>(computed(() => props.filters))
|
||||
const parameterRequest = ref<any>({
|
||||
media: null,
|
||||
@ -535,9 +535,9 @@ const setParameterRequest = (data: any) => {
|
||||
|
||||
if (parameter.media != null && parameter.marking != null) {
|
||||
emit('update:marking', parameter.marking)
|
||||
agreeToShowDialog.value = true
|
||||
isDialogEnabled.value = true
|
||||
} else {
|
||||
agreeToShowDialog.value = false
|
||||
isDialogEnabled.value = false
|
||||
}
|
||||
}
|
||||
|
||||
@ -545,6 +545,9 @@ const onCellClicked = (e: any) => {
|
||||
if (e.rowType == 'group') {
|
||||
groupDialog.value = true
|
||||
groupIndex.value = e.row.groupIndex
|
||||
console.log(e.data)
|
||||
console.log('columnIndex', e)
|
||||
console.log('columnValue', e.data.aggregates[e.column.columnIndex])
|
||||
|
||||
if (e.column.dataField == 'anomali_pln_mobile_marking') {
|
||||
setParameterRequest({ media: 'PLN Mobile', marking: 1 })
|
||||
@ -839,7 +842,7 @@ const showDetail = () => {
|
||||
clearSelection()
|
||||
dataSub.value = []
|
||||
dataSubSelected.value = null
|
||||
if (agreeToShowDialog.value) {
|
||||
if (isDialogEnabled.value) {
|
||||
getDetail()
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user