update
This commit is contained in:
parent
9c6ac5644f
commit
e5a65422a7
@ -345,7 +345,7 @@
|
|||||||
</p>
|
</p>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<DxSummary>
|
<DxSummary :calculate-custom-summary="calculateCustomSummary">
|
||||||
<DxGroupItem
|
<DxGroupItem
|
||||||
:show-in-group-footer="false"
|
:show-in-group-footer="false"
|
||||||
:align-by-column="true"
|
:align-by-column="true"
|
||||||
@ -362,13 +362,21 @@
|
|||||||
css-class="!text-right"
|
css-class="!text-right"
|
||||||
:customize-text="(e: any) => formatNumber(e.value)"
|
:customize-text="(e: any) => formatNumber(e.value)"
|
||||||
/>
|
/>
|
||||||
<DxGroupItem
|
<!-- <DxGroupItem
|
||||||
:show-in-group-footer="false"
|
:show-in-group-footer="false"
|
||||||
:align-by-column="true"
|
:align-by-column="true"
|
||||||
column="persen_selesai"
|
column="persen_selesai"
|
||||||
summary-type="avg"
|
summary-type="avg"
|
||||||
css-class="!text-right"
|
css-class="!text-right"
|
||||||
:customize-text="(e: any) => formatPercentage(e.value)"
|
:customize-text="(e: any) => formatPercentage(e.value)"
|
||||||
|
/> -->
|
||||||
|
<DxGroupItem
|
||||||
|
:show-in-group-footer="false"
|
||||||
|
:align-by-column="true"
|
||||||
|
column="persen_selesai"
|
||||||
|
name="persenSelesai"
|
||||||
|
summary-type="custom"
|
||||||
|
css-class="!text-right"
|
||||||
/>
|
/>
|
||||||
<DxGroupItem
|
<DxGroupItem
|
||||||
:show-in-group-footer="false"
|
:show-in-group-footer="false"
|
||||||
@ -1045,6 +1053,25 @@ const closedialogDetail = () => (dialogDetail.value = false)
|
|||||||
const loadingData = ref(false)
|
const loadingData = ref(false)
|
||||||
const loadingSubData = ref(false)
|
const loadingSubData = ref(false)
|
||||||
|
|
||||||
|
const calculateCustomSummary = (options: any) => {
|
||||||
|
if (options.name == 'persenSelesai') {
|
||||||
|
console.log(options.component.persen_selesai)
|
||||||
|
|
||||||
|
switch (options.summaryProcess) {
|
||||||
|
case 'start':
|
||||||
|
// Initializing "totalValue" here
|
||||||
|
options.totalValue = 1
|
||||||
|
break
|
||||||
|
case 'calculate':
|
||||||
|
// Modifying "totalValue" here
|
||||||
|
break
|
||||||
|
case 'finalize':
|
||||||
|
// Assigning the final value to "totalValue" here
|
||||||
|
break
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
const resetData = () => {
|
const resetData = () => {
|
||||||
data.value = []
|
data.value = []
|
||||||
dataSub.value = []
|
dataSub.value = []
|
||||||
|
Loading…
x
Reference in New Issue
Block a user