Refactor code to update version numbers and fix bugs in Gangguan and Monalisa components
This commit is contained in:
@@ -560,19 +560,19 @@
|
||||
</DxSummary>
|
||||
|
||||
<template #formatText="{ data }">
|
||||
<p class="text-left cursor-pointer" @click="setAgreementDialog(false, 0)">
|
||||
<p class="text-left cursor-pointer" @click="setDialogStatus(false, 0)">
|
||||
{{ data.text }}
|
||||
</p>
|
||||
</template>
|
||||
|
||||
<template #formatNumbering="{ data }">
|
||||
<p class="text-right cursor-pointer" @click="setAgreementDialog(false, 0)">
|
||||
<p class="text-right cursor-pointer" @click="setDialogStatus(false, 0)">
|
||||
{{ data.rowIndex }}
|
||||
</p>
|
||||
</template>
|
||||
|
||||
<template #formatNumber="{ data }">
|
||||
<p class="text-right cursor-pointer" @click="setAgreementDialog(false, 0)">
|
||||
<p class="text-right cursor-pointer" @click="setDialogStatus(false, 0)">
|
||||
{{
|
||||
isNumber(data.text)
|
||||
? data.column.caption == '%'
|
||||
@@ -584,7 +584,7 @@
|
||||
</template>
|
||||
|
||||
<template #formatNumberLaporanTotal="{ data }">
|
||||
<p class="text-right cursor-pointer" @click="setAgreementDialog(true, 0)">
|
||||
<p class="text-right cursor-pointer" @click="setDialogStatus(true, 0)">
|
||||
{{
|
||||
isNumber(data.text)
|
||||
? data.column.caption == '%'
|
||||
@@ -596,7 +596,7 @@
|
||||
</template>
|
||||
|
||||
<template #formatNumberLaporanJmlSelesai="{ data }">
|
||||
<p class="text-right cursor-pointer" @click="setAgreementDialog(true, 1)">
|
||||
<p class="text-right cursor-pointer" @click="setDialogStatus(true, 1)">
|
||||
{{
|
||||
isNumber(data.text)
|
||||
? data.column.caption == '%'
|
||||
@@ -608,7 +608,7 @@
|
||||
</template>
|
||||
|
||||
<template #formatNumberLaporanJmlBelumSelesai="{ data }">
|
||||
<p class="text-right cursor-pointer" @click="setAgreementDialog(true, 2)">
|
||||
<p class="text-right cursor-pointer" @click="setDialogStatus(true, 2)">
|
||||
{{
|
||||
isNumber(data.text)
|
||||
? data.column.caption == '%'
|
||||
@@ -619,7 +619,7 @@
|
||||
</p>
|
||||
</template>
|
||||
|
||||
<template #formatTime="{ data }" @click="setAgreementDialog(false, 0)">
|
||||
<template #formatTime="{ data }" @click="setDialogStatus(false, 0)">
|
||||
<p class="!text-right">
|
||||
{{ parseInt(data.text) ? formatWaktu(data.text) : '-' }}
|
||||
</p>
|
||||
@@ -1014,7 +1014,7 @@ const grouping = ref<any[]>([
|
||||
caption: 'Seluruh Unit'
|
||||
}
|
||||
])
|
||||
const agreeToShowDialog = ref(false)
|
||||
const isDialogEnabled = ref(false)
|
||||
const progressSelected = ref(0)
|
||||
const isGroupBy = ref(false)
|
||||
|
||||
@@ -1135,8 +1135,8 @@ const calculateCustomSummary = (options: any) => {
|
||||
}
|
||||
}
|
||||
|
||||
const setAgreementDialog = (status: boolean, progress: number) => {
|
||||
agreeToShowDialog.value = status
|
||||
const setDialogStatus = (status: boolean, progress: number) => {
|
||||
isDialogEnabled.value = status
|
||||
progressSelected.value = progress
|
||||
}
|
||||
|
||||
@@ -1189,7 +1189,7 @@ const showDetail = () => {
|
||||
clearSelection()
|
||||
dataSub.value = []
|
||||
dataSubSelected.value = null
|
||||
if (agreeToShowDialog.value) {
|
||||
if (isDialogEnabled.value) {
|
||||
getDetail()
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user