fix: avg field color in rekapitulasi gangguan all
This commit is contained in:
parent
a1ee4e7f9a
commit
9089bf3100
@ -173,7 +173,7 @@
|
|||||||
caption="Rata-Rata"
|
caption="Rata-Rata"
|
||||||
:allow-resizing="false"
|
:allow-resizing="false"
|
||||||
css-class="custom-table-column"
|
css-class="custom-table-column"
|
||||||
cell-template="formatNumber"
|
cell-template="formatDPT"
|
||||||
/>
|
/>
|
||||||
<DxColumn
|
<DxColumn
|
||||||
:width="150"
|
:width="150"
|
||||||
@ -225,7 +225,7 @@
|
|||||||
caption="Rata-Rata"
|
caption="Rata-Rata"
|
||||||
:allow-resizing="false"
|
:allow-resizing="false"
|
||||||
css-class="custom-table-column"
|
css-class="custom-table-column"
|
||||||
cell-template="formatNumber"
|
cell-template="formatRPT"
|
||||||
/>
|
/>
|
||||||
<DxColumn
|
<DxColumn
|
||||||
:width="150"
|
:width="150"
|
||||||
@ -277,7 +277,7 @@
|
|||||||
caption="Rata-Rata"
|
caption="Rata-Rata"
|
||||||
:allow-resizing="false"
|
:allow-resizing="false"
|
||||||
css-class="custom-table-column"
|
css-class="custom-table-column"
|
||||||
cell-template="formatNumber"
|
cell-template="formatRCT"
|
||||||
/>
|
/>
|
||||||
<DxColumn
|
<DxColumn
|
||||||
:width="150"
|
:width="150"
|
||||||
@ -321,30 +321,6 @@
|
|||||||
/>
|
/>
|
||||||
</DxColumn>
|
</DxColumn>
|
||||||
|
|
||||||
<template #formatText="{ data }">
|
|
||||||
<p class="text-left cursor-pointer">
|
|
||||||
{{ data.text }}
|
|
||||||
</p>
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<template #formatNumber="{ data }">
|
|
||||||
<p class="text-right cursor-pointer">
|
|
||||||
{{
|
|
||||||
isNumber(data.text)
|
|
||||||
? data.column.caption == '%'
|
|
||||||
? formatPercentage(data.text)
|
|
||||||
: formatNumber(data.text)
|
|
||||||
: data.text
|
|
||||||
}}
|
|
||||||
</p>
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<template #formatTime="{ data }">
|
|
||||||
<p>
|
|
||||||
{{ parseInt(data.text) ? formatWaktu(data.text) : '-' }}
|
|
||||||
</p>
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<DxSummary :calculate-custom-summary="calculateCustomSummary">
|
<DxSummary :calculate-custom-summary="calculateCustomSummary">
|
||||||
<DxGroupItem
|
<DxGroupItem
|
||||||
:show-in-group-footer="false"
|
:show-in-group-footer="false"
|
||||||
@ -516,6 +492,75 @@
|
|||||||
:customize-text="(e: any) => formatNumber(e.value)"
|
:customize-text="(e: any) => formatNumber(e.value)"
|
||||||
/>
|
/>
|
||||||
</DxSummary>
|
</DxSummary>
|
||||||
|
|
||||||
|
<template #formatText="{ data }">
|
||||||
|
<p class="text-left cursor-pointer">
|
||||||
|
{{ data.text }}
|
||||||
|
</p>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<template #formatNumber="{ data }">
|
||||||
|
<p class="text-right cursor-pointer">
|
||||||
|
{{
|
||||||
|
isNumber(data.text)
|
||||||
|
? data.column.caption == '%'
|
||||||
|
? formatPercentage(data.text)
|
||||||
|
: formatNumber(data.text)
|
||||||
|
: data.text
|
||||||
|
}}
|
||||||
|
</p>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<template #formatTime="{ data }">
|
||||||
|
<p class="cursor-pointer">
|
||||||
|
{{ parseInt(data.text) ? formatWaktu(data.text) : '-' }}
|
||||||
|
</p>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<template #formatDPT="{ data }">
|
||||||
|
<p
|
||||||
|
class="text-right cursor-pointer"
|
||||||
|
:class="[data.text < 5 ? 'text-green-500' : 'text-red-500']"
|
||||||
|
>
|
||||||
|
{{
|
||||||
|
isNumber(data.text)
|
||||||
|
? data.column.caption == '%'
|
||||||
|
? formatPercentage(data.text)
|
||||||
|
: formatNumber(data.text)
|
||||||
|
: data.text
|
||||||
|
}}
|
||||||
|
</p>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<template #formatRPT="{ data }">
|
||||||
|
<p
|
||||||
|
class="text-right cursor-pointer"
|
||||||
|
:class="[data.text < 45 ? 'text-green-500' : 'text-red-500']"
|
||||||
|
>
|
||||||
|
{{
|
||||||
|
isNumber(data.text)
|
||||||
|
? data.column.caption == '%'
|
||||||
|
? formatPercentage(data.text)
|
||||||
|
: formatNumber(data.text)
|
||||||
|
: data.text
|
||||||
|
}}
|
||||||
|
</p>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<template #formatRCT="{ data }">
|
||||||
|
<p
|
||||||
|
class="text-right cursor-pointer"
|
||||||
|
:class="[data.text < 180 ? 'text-green-500' : 'text-red-500']"
|
||||||
|
>
|
||||||
|
{{
|
||||||
|
isNumber(data.text)
|
||||||
|
? data.column.caption == '%'
|
||||||
|
? formatPercentage(data.text)
|
||||||
|
: formatNumber(data.text)
|
||||||
|
: data.text
|
||||||
|
}}
|
||||||
|
</p>
|
||||||
|
</template>
|
||||||
</DxDataGrid>
|
</DxDataGrid>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -572,7 +617,7 @@
|
|||||||
css-class="custom-table-column"
|
css-class="custom-table-column"
|
||||||
:width="50"
|
:width="50"
|
||||||
alignment="center"
|
alignment="center"
|
||||||
:calculateCellValue="(item: any) => dataSub.findIndex((i) => i == item) + 1"
|
:calculateCellValue="(item: any) => dataSub.findIndex((i: any) => i == item) + 1"
|
||||||
data-type="number"
|
data-type="number"
|
||||||
caption="No"
|
caption="No"
|
||||||
cell-template="formatNumber"
|
cell-template="formatNumber"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user