Add margin-bottom class and cell template for data-waktu
This commit is contained in:
@@ -102,6 +102,7 @@
|
||||
data-field="durasi_response_time"
|
||||
caption="Durasi Response Time"
|
||||
css-class="custom-table-column"
|
||||
cell-template="data-waktu"
|
||||
/>
|
||||
<DxColumn
|
||||
:width="170"
|
||||
@@ -109,6 +110,7 @@
|
||||
data-field="durasi_recovery_time"
|
||||
caption="Durasi Recovery Time"
|
||||
css-class="custom-table-column"
|
||||
cell-template="data-waktu"
|
||||
/>
|
||||
<DxColumn
|
||||
:width="170"
|
||||
@@ -159,6 +161,12 @@
|
||||
caption="Keterangan Pelapor"
|
||||
css-class="custom-table-column"
|
||||
/>
|
||||
|
||||
<template #data-waktu="{ data }">
|
||||
<p>
|
||||
{{ parseInt(data.text) ? formatWaktu(data.text) : '-' }}
|
||||
</p>
|
||||
</template>
|
||||
</DxDataGrid>
|
||||
</div>
|
||||
</template>
|
||||
@@ -166,6 +174,7 @@
|
||||
<script setup lang="ts">
|
||||
import Filters from '@/components/Form/Filters.vue'
|
||||
import Type3 from '@/components/Form/FiltersType/Type3.vue'
|
||||
import { formatWaktu } from '@/components/Form/FiltersType/reference'
|
||||
import { ref } from 'vue'
|
||||
import { DxDataGrid } from 'devextreme-vue'
|
||||
import {
|
||||
|
Reference in New Issue
Block a user