Update CSS and DialogPanel in DetailDialog.vue
This commit is contained in:
parent
b66bc38b1c
commit
aff2b2ae52
@ -5684,6 +5684,10 @@ body {
|
|||||||
max-width: 20rem;
|
max-width: 20rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.sm\:max-w-full {
|
||||||
|
max-width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
.sm\:flex-1 {
|
.sm\:flex-1 {
|
||||||
flex: 1 1 0%;
|
flex: 1 1 0%;
|
||||||
}
|
}
|
||||||
|
@ -42,7 +42,7 @@ const handleOnClose = () => {
|
|||||||
leave-from="opacity-100 translate-y-0 sm:scale-100"
|
leave-from="opacity-100 translate-y-0 sm:scale-100"
|
||||||
leave-to="opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95">
|
leave-to="opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95">
|
||||||
<DialogPanel
|
<DialogPanel
|
||||||
:class="[fullWidth ? 'sm:max-w-[90%]' : 'sm:max-w-lg', 'relative overflow-hidden text-left transition-all transform bg-gray-50 rounded-2xl sm:my-8 sm:w-full']">
|
:class="[fullWidth ? 'sm:max-w-full' : 'sm:max-w-lg sm:my-8', 'relative overflow-hidden text-left transition-all transform bg-gray-50 rounded-2xl sm:w-full']">
|
||||||
<!-- Body Section -->
|
<!-- Body Section -->
|
||||||
<div class="px-4 py-4 bg-gray-50">
|
<div class="px-4 py-4 bg-gray-50">
|
||||||
<div class="items-start">
|
<div class="items-start">
|
||||||
|
@ -6,8 +6,8 @@
|
|||||||
<div id="data">
|
<div id="data">
|
||||||
<DxDataGrid class="max-h-[calc(100vh-140px)] mb-10" :data-source="data" :show-column-lines="true"
|
<DxDataGrid class="max-h-[calc(100vh-140px)] mb-10" :data-source="data" :show-column-lines="true"
|
||||||
:show-row-lines="false" :show-borders="true" :row-alternation-enabled="true" :hover-state-enabled="true"
|
:show-row-lines="false" :show-borders="true" :row-alternation-enabled="true" :hover-state-enabled="true"
|
||||||
@selection-changed="onSelectionChanged" :column-width="100" @exporting="onExporting" :allow-column-resizing="true"
|
@selection-changed="onDataSelectionChanged" :column-width="100" @exporting="onExporting"
|
||||||
column-resizing-mode="widget" :word-wrap-enabled="true">
|
:allow-column-resizing="true" column-resizing-mode="widget" :word-wrap-enabled="false">
|
||||||
<DxSelection mode="single" />
|
<DxSelection mode="single" />
|
||||||
<DxPaging :enabled="false" />
|
<DxPaging :enabled="false" />
|
||||||
<DxScrolling column-rendering-mode="virtual" mode="virtual" />
|
<DxScrolling column-rendering-mode="virtual" mode="virtual" />
|
||||||
@ -18,33 +18,374 @@
|
|||||||
<DxColumnFixing :enabled="true" />
|
<DxColumnFixing :enabled="true" />
|
||||||
|
|
||||||
<DxColumn :width="200" alignment="center" data-field="user_regu" caption="User Regu"
|
<DxColumn :width="200" alignment="center" data-field="user_regu" caption="User Regu"
|
||||||
css-class="custom-table-column" />
|
css-class="custom-table-column" cell-template="cellLeft" />
|
||||||
<DxColumn :width="200" alignment="center" data-field="personil_yantek" caption="Personil Yantek"
|
<DxColumn :width="200" alignment="center" data-field="personil_yantek" caption="Personil Yantek"
|
||||||
css-class="custom-table-column" />
|
css-class="custom-table-column" cell-template="cellLeft" />
|
||||||
<DxColumn :width="200" alignment="center" data-field="jumlah_wo_gangguan_individual" data-type="number"
|
<DxColumn :width="200" alignment="center" data-field="jumlah_wo_gangguan_individual" data-type="number"
|
||||||
caption="Jumlah WO Gangguan Individual" css-class="custom-table-column" />
|
caption="Jumlah WO Gangguan Individual" css-class="custom-table-column" cell-template="cellRight" />
|
||||||
<DxColumn :width="200" alignment="center" data-field="avg_durasi_wo_gangguan_individual" data-type="number"
|
<DxColumn :width="200" alignment="center" data-field="avg_durasi_wo_gangguan_individual" data-type="number"
|
||||||
caption="Rata-rata Durasi WO Gangguan" css-class="custom-table-column" />
|
caption="Rata-rata Durasi WO Gangguan" css-class="custom-table-column" cell-template="cellRight" />
|
||||||
<DxColumn :width="200" alignment="center" data-field="avg_rpt_wo_gangguan_individual" data-type="number"
|
<DxColumn :width="200" alignment="center" data-field="avg_rpt_wo_gangguan_individual" data-type="number"
|
||||||
caption="Rata-rata RPT WO Gangguan" css-class="custom-table-column" />
|
caption="Rata-rata RPT WO Gangguan" css-class="custom-table-column" cell-template="cellRight" />
|
||||||
<DxColumn :width="200" alignment="center" data-field="avg_rct_wo_gangguan_individual" data-type="number"
|
<DxColumn :width="200" alignment="center" data-field="avg_rct_wo_gangguan_individual" data-type="number"
|
||||||
caption="Rata-rata RCT WO Gangguan" css-class="custom-table-column" />
|
caption="Rata-rata RCT WO Gangguan" css-class="custom-table-column" cell-template="cellRight" />
|
||||||
<DxColumn :width="200" alignment="center" data-field="jumlah_wo_penugasan_khusus" data-type="number"
|
<DxColumn :width="200" alignment="center" data-field="jumlah_wo_penugasan_khusus" data-type="number"
|
||||||
caption="Jumlah Wo Penugasan Khusus" css-class="custom-table-column" />
|
caption="Jumlah Wo Penugasan Khusus" css-class="custom-table-column" cell-template="cellRight" />
|
||||||
<DxColumn :width="200" alignment="center" data-field="avg_durasi_wo_gangguan_individual" data-type="number"
|
<DxColumn :width="200" alignment="center" data-field="avg_wo_penugasan_khusus" data-type="number"
|
||||||
caption="Rata-rata Durasi WO Penugasan" css-class="custom-table-column" />
|
caption="Rata-rata Durasi WO Penugasan" css-class="custom-table-column" cell-template="cellRight" />
|
||||||
|
|
||||||
|
<template #cellLeft="{ data }">
|
||||||
|
<p class="text-left cursor-pointer" @click="showDialogDataSelected()">
|
||||||
|
{{ data.text }}
|
||||||
|
</p>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<template #cellRight="{ data }">
|
||||||
|
<p class="text-right cursor-pointer" @click="showDialogDataSelected()">
|
||||||
|
{{ isNumber(data.text) ? data.column.caption == '%' ? formatPercentage(data.text) :
|
||||||
|
formatNumber(data.text) :
|
||||||
|
data.text }}
|
||||||
|
</p>
|
||||||
|
</template>
|
||||||
</DxDataGrid>
|
</DxDataGrid>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<DetailDialog :open="dialogDataSelected" title="Daftar Detail Jumlah WO Gangguan Individu"
|
||||||
|
@on-close="closeDialogDataSelected" :full-width="true">
|
||||||
|
|
||||||
|
<div class="w-full mb-4 lg:w-[70%] lg:float-left">
|
||||||
|
<div class="p-4 bg-white rounded-xl lg:mr-4">
|
||||||
|
<DxDataGrid class="max-h-[calc(100vh-140px)]" :data-source="dataSub" :show-column-lines="true"
|
||||||
|
:show-row-lines="false" :show-borders="true" :row-alternation-enabled="true" :hover-state-enabled="true"
|
||||||
|
@selection-changed="onDataSubSelectionChanged" :column-width="100" @exporting="onExporting"
|
||||||
|
:allow-column-resizing="true" column-resizing-mode="widget">
|
||||||
|
<DxSelection mode="single" />
|
||||||
|
<DxPaging :page-size="5" :enabled="true" />
|
||||||
|
<DxPager :visible="true" :allowed-page-sizes="[5, 10, 20]" display-mode="full" :show-page-size-selector="true"
|
||||||
|
:show-info="true" :show-navigation-buttons="true" />
|
||||||
|
<DxLoadPanel :position="position" :show-indicator="showIndicator" :show-pane="showPane" :shading="shading"
|
||||||
|
v-if="loading" v-model:visible="loading" :enabled="true" />
|
||||||
|
<DxSearchPanel :visible="true" :highlight-case-sensitive="true" />
|
||||||
|
<DxExport :enabled="true" :formats="['pdf', 'xlsx', 'document']" :allow-export-selected-data="false" />
|
||||||
|
|
||||||
|
<DxColumn css-class="custom-table-column" :width="50" alignment="center"
|
||||||
|
:calculateCellValue="(item: any) => dataSub.findIndex((i) => i == item) + 1" data-type="number" caption="No"
|
||||||
|
cell-template="cellLeft" />
|
||||||
|
<DxColumn :width="150" alignment="center" data-field="" caption="UID/UIW" css-class="custom-table-column"
|
||||||
|
cell-template="cellLeft" />
|
||||||
|
<DxColumn :width="150" alignment="center" data-field="" caption="UP3" css-class="custom-table-column"
|
||||||
|
cell-template="cellLeft" />
|
||||||
|
<DxColumn :width="150" alignment="center" data-field="" caption="Posko" css-class="custom-table-column"
|
||||||
|
cell-template="cellLeft" />
|
||||||
|
<DxColumn :width="150" alignment="center" data-field="" caption="Sumber Lapor" css-class="custom-table-column"
|
||||||
|
cell-template="cellLeft" />
|
||||||
|
<DxColumn :width="150" alignment="center" data-field="" caption="Created By" css-class="custom-table-column"
|
||||||
|
cell-template="cellLeft" />
|
||||||
|
<DxColumn :width="150" alignment="center" data-field="" caption="Dispatch By" css-class="custom-table-column"
|
||||||
|
cell-template="cellLeft" />
|
||||||
|
<DxColumn :width="150" alignment="center" data-field="" caption="Dispatch Time"
|
||||||
|
css-class="custom-table-column" cell-template="cellLeft" />
|
||||||
|
<DxColumn :width="150" alignment="center" data-field="" caption="User Regu" css-class="custom-table-column"
|
||||||
|
cell-template="cellLeft" />
|
||||||
|
<DxColumn :width="150" alignment="center" data-field="" caption="Nama Regu" css-class="custom-table-column"
|
||||||
|
cell-template="cellLeft" />
|
||||||
|
<DxColumn :width="150" alignment="center" data-field="" caption="Nama Petugas" css-class="custom-table-column"
|
||||||
|
cell-template="cellLeft" />
|
||||||
|
<DxColumn :width="150" alignment="center" data-field="" caption="Shif" css-class="custom-table-column"
|
||||||
|
cell-template="cellLeft" />
|
||||||
|
<DxColumn :width="150" alignment="center" data-field="" caption="Check In Petugas"
|
||||||
|
css-class="custom-table-column" cell-template="cellLeft" />
|
||||||
|
<DxColumn :width="150" alignment="center" data-field="" caption="No Laporan" css-class="custom-table-column"
|
||||||
|
cell-template="cellLeft" />
|
||||||
|
<DxColumn :width="150" alignment="center" data-field="" caption="Tgl Lapor" css-class="custom-table-column"
|
||||||
|
cell-template="cellLeft" />
|
||||||
|
<DxColumn :width="150" alignment="center" data-field="" caption="Tgl Penugasan Baru"
|
||||||
|
css-class="custom-table-column" cell-template="cellLeft" />
|
||||||
|
<DxColumn :width="150" alignment="center" data-field="" caption="Tgl Dalam Perjalanan"
|
||||||
|
css-class="custom-table-column" cell-template="cellLeft" />
|
||||||
|
<DxColumn :width="150" alignment="center" data-field="" caption="Tgl Pengerjaan"
|
||||||
|
css-class="custom-table-column" cell-template="cellLeft" />
|
||||||
|
<DxColumn :width="150" alignment="center" data-field="" caption="Tgl Nyala Sementara"
|
||||||
|
css-class="custom-table-column" cell-template="cellLeft" />
|
||||||
|
<DxColumn :width="150" alignment="center" data-field="" caption="Tgl Nyala" css-class="custom-table-column"
|
||||||
|
cell-template="cellLeft" />
|
||||||
|
<DxColumn :width="150" alignment="center" data-field="" caption="Tgl Selesai" css-class="custom-table-column"
|
||||||
|
cell-template="cellLeft" />
|
||||||
|
<DxColumn :width="150" alignment="center" data-field="" caption="Durasi Perjalanan"
|
||||||
|
css-class="custom-table-column" cell-template="cellLeft" />
|
||||||
|
<DxColumn :width="150" alignment="center" data-field="" caption="Durasi WO" css-class="custom-table-column"
|
||||||
|
cell-template="cellLeft" />
|
||||||
|
<DxColumn :width="150" alignment="center" data-field="" caption="Check Out Petugas"
|
||||||
|
css-class="custom-table-column" cell-template="cellLeft" />
|
||||||
|
<DxColumn :width="150" alignment="center" data-field="" caption="RPT" css-class="custom-table-column"
|
||||||
|
cell-template="cellLeft" />
|
||||||
|
<DxColumn :width="150" alignment="center" data-field="" caption="RCT" css-class="custom-table-column"
|
||||||
|
cell-template="cellLeft" />
|
||||||
|
<DxColumn :width="150" alignment="center" data-field="" caption="Rating" css-class="custom-table-column"
|
||||||
|
cell-template="cellLeft" />
|
||||||
|
<DxColumn :width="150" alignment="center" data-field="" caption="Jml Pelanggan Padam"
|
||||||
|
css-class="custom-table-column" cell-template="cellLeft" />
|
||||||
|
<DxColumn :width="150" alignment="center" data-field="" caption="Fasilitas" css-class="custom-table-column"
|
||||||
|
cell-template="cellLeft" />
|
||||||
|
<DxColumn :width="150" alignment="center" data-field="" caption="Sub Fasilitas"
|
||||||
|
css-class="custom-table-column" cell-template="cellLeft" />
|
||||||
|
<DxColumn :width="150" alignment="center" data-field="" caption="Peralatan" css-class="custom-table-column"
|
||||||
|
cell-template="cellLeft" />
|
||||||
|
<DxColumn :width="150" alignment="center" data-field="" caption="Dampak Kerusakan"
|
||||||
|
css-class="custom-table-column" cell-template="cellLeft" />
|
||||||
|
<DxColumn :width="150" alignment="center" data-field="" caption="Penyebab" css-class="custom-table-column"
|
||||||
|
cell-template="cellLeft" />
|
||||||
|
<DxColumn :width="150" alignment="center" data-field="" caption="Kelompok Penyebab"
|
||||||
|
css-class="custom-table-column" cell-template="cellLeft" />
|
||||||
|
<DxColumn :width="150" alignment="center" data-field="" caption="Cuaca" css-class="custom-table-column"
|
||||||
|
cell-template="cellLeft" />
|
||||||
|
<DxColumn :width="150" alignment="center" data-field="" caption="Keterangan Pelapor"
|
||||||
|
css-class="custom-table-column" cell-template="cellLeft" />
|
||||||
|
<DxColumn :width="150" alignment="center" data-field="" caption="Keterangan" css-class="custom-table-column"
|
||||||
|
cell-template="cellLeft" />
|
||||||
|
<DxColumn :width="150" alignment="center" data-field="" caption="Penyebab Padam"
|
||||||
|
css-class="custom-table-column" cell-template="cellLeft" />
|
||||||
|
<DxColumn :width="150" alignment="center" data-field="" caption="Tindakan" css-class="custom-table-column"
|
||||||
|
cell-template="cellLeft" />
|
||||||
|
<DxColumn :width="150" alignment="center" data-field="" caption="APKT Status" css-class="custom-table-column"
|
||||||
|
cell-template="cellLeft" />
|
||||||
|
<DxColumn :width="150" alignment="center" data-field="" caption="Referensi Marking"
|
||||||
|
css-class="custom-table-column" cell-template="cellLeft" />
|
||||||
|
<DxColumn :width="150" alignment="center" data-field="" caption="BLTH" css-class="custom-table-column"
|
||||||
|
cell-template="cellLeft" />
|
||||||
|
|
||||||
|
<template #cellLeft="{ data }">
|
||||||
|
<p class="text-left cursor-pointer">
|
||||||
|
{{ data.text }}
|
||||||
|
</p>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<template #data-waktu="{ data }">
|
||||||
|
<p>
|
||||||
|
{{ parseInt(data.text) ? formatWaktu(data.text) : '-' }}
|
||||||
|
</p>
|
||||||
|
</template>
|
||||||
|
</DxDataGrid>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<div class="w-full mb-4 lg:w-[30%] lg:float-right">
|
||||||
|
<div class="p-4 space-y-2 bg-white rounded-xl">
|
||||||
|
<div class="flex flex-row items-center justify-between w-full">
|
||||||
|
<h3 class="text-sm font-medium w-[135px] text-gray-800">UID/UIW:</h3>
|
||||||
|
<InputText :readonly="true" :value="dataSubSelected" class-name="flex-1" />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="flex flex-row items-center justify-between w-full">
|
||||||
|
<h3 class="text-sm font-medium w-[135px] text-gray-800">UP3:</h3>
|
||||||
|
<InputText :readonly="true" :value="dataSubSelected" class-name="flex-1" />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="flex flex-row items-center justify-between w-full">
|
||||||
|
<h3 class="text-sm font-medium w-[135px] text-gray-800">Posko:</h3>
|
||||||
|
<InputText :readonly="true" :value="dataSubSelected" class-name="flex-1" />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="flex flex-row items-center justify-between w-full">
|
||||||
|
<h3 class="text-sm font-medium w-[135px] text-gray-800">Sumber Lapor:</h3>
|
||||||
|
<InputText :readonly="true" :value="dataSubSelected" class-name="flex-1" />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="flex flex-row items-center justify-between w-full">
|
||||||
|
<h3 class="text-sm font-medium w-[135px] text-gray-800">Created By:</h3>
|
||||||
|
<InputText :readonly="true" :value="dataSubSelected" class-name="flex-1" />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="flex flex-row items-center justify-between w-full">
|
||||||
|
<h3 class="text-sm font-medium w-[135px] text-gray-800">Dispatch By:</h3>
|
||||||
|
<InputText :readonly="true" :value="dataSubSelected" class-name="flex-1" />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="flex flex-row items-center justify-between w-full">
|
||||||
|
<h3 class="text-sm font-medium w-[135px] text-gray-800">Dispatch Time:</h3>
|
||||||
|
<InputText :readonly="true" :value="dataSubSelected" class-name="flex-1" />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="flex flex-row items-center justify-between w-full">
|
||||||
|
<h3 class="text-sm font-medium w-[135px] text-gray-800">User Regu:</h3>
|
||||||
|
<InputText :readonly="true" :value="dataSubSelected" class-name="flex-1" />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="flex flex-row items-center justify-between w-full">
|
||||||
|
<h3 class="text-sm font-medium w-[135px] text-gray-800">Nama Regu:</h3>
|
||||||
|
<InputText :readonly="true" :value="dataSubSelected" class-name="flex-1" />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="flex flex-row items-center justify-between w-full">
|
||||||
|
<h3 class="text-sm font-medium w-[135px] text-gray-800">Nama Petugas:</h3>
|
||||||
|
<InputText :readonly="true" :value="dataSubSelected" class-name="flex-1" />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="flex flex-row items-center justify-between w-full">
|
||||||
|
<h3 class="text-sm font-medium w-[135px] text-gray-800">Shif:</h3>
|
||||||
|
<InputText :readonly="true" :value="dataSubSelected" class-name="flex-1" />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="flex flex-row items-center justify-between w-full">
|
||||||
|
<h3 class="text-sm font-medium w-[135px] text-gray-800">Check In Petugas:</h3>
|
||||||
|
<InputText :readonly="true" :value="dataSubSelected" class-name="flex-1" />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="flex flex-row items-center justify-between w-full">
|
||||||
|
<h3 class="text-sm font-medium w-[135px] text-gray-800">No Laporan:</h3>
|
||||||
|
<InputText :readonly="true" :value="dataSubSelected" class-name="flex-1" />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="flex flex-row items-center justify-between w-full">
|
||||||
|
<h3 class="text-sm font-medium w-[135px] text-gray-800">Tgl Lapor:</h3>
|
||||||
|
<InputText :readonly="true" :value="dataSubSelected" class-name="flex-1" />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="flex flex-row items-center justify-between w-full">
|
||||||
|
<h3 class="text-sm font-medium w-[135px] text-gray-800">Tgl Penugasan Regu:</h3>
|
||||||
|
<InputText :readonly="true" :value="dataSubSelected" class-name="flex-1" />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="flex flex-row items-center justify-between w-full">
|
||||||
|
<h3 class="text-sm font-medium w-[135px] text-gray-800">Tgl Dalam Perjalanan:</h3>
|
||||||
|
<InputText :readonly="true" :value="dataSubSelected" class-name="flex-1" />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="flex flex-row items-center justify-between w-full">
|
||||||
|
<h3 class="text-sm font-medium w-[135px] text-gray-800">Tgl Pengerjaan:</h3>
|
||||||
|
<InputText :readonly="true" :value="dataSubSelected" class-name="flex-1" />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="flex flex-row items-center justify-between w-full">
|
||||||
|
<h3 class="text-sm font-medium w-[135px] text-gray-800">Tgl Nyala:</h3>
|
||||||
|
<InputText :readonly="true" :value="dataSubSelected" class-name="flex-1" />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="flex flex-row items-center justify-between w-full">
|
||||||
|
<h3 class="text-sm font-medium w-[135px] text-gray-800">Tgl Selesai:</h3>
|
||||||
|
<InputText :readonly="true" :value="dataSubSelected" class-name="flex-1" />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="flex flex-row items-center justify-between w-full">
|
||||||
|
<h3 class="text-sm font-medium w-[135px] text-gray-800">Durasi Perjalanan:</h3>
|
||||||
|
<InputText :readonly="true" :value="dataSubSelected" class-name="flex-1" />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="flex flex-row items-center justify-between w-full">
|
||||||
|
<h3 class="text-sm font-medium w-[135px] text-gray-800">Durasi WO:</h3>
|
||||||
|
<InputText :readonly="true" :value="dataSubSelected" class-name="flex-1" />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="flex flex-row items-center justify-between w-full">
|
||||||
|
<h3 class="text-sm font-medium w-[135px] text-gray-800">Check Out Petugas:</h3>
|
||||||
|
<InputText :readonly="true" :value="dataSubSelected" class-name="flex-1" />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="flex flex-row items-center justify-between w-full">
|
||||||
|
<h3 class="text-sm font-medium w-[135px] text-gray-800">RPT</h3>
|
||||||
|
<InputText :readonly="true" :value="dataSubSelected" class-name="flex-1" />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="flex flex-row items-center justify-between w-full">
|
||||||
|
<h3 class="text-sm font-medium w-[135px] text-gray-800">RCT</h3>
|
||||||
|
<InputText :readonly="true" :value="dataSubSelected" class-name="flex-1" />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="flex flex-row items-center justify-between w-full">
|
||||||
|
<h3 class="text-sm font-medium w-[135px] text-gray-800">Rating</h3>
|
||||||
|
<InputText :readonly="true" :value="dataSubSelected" class-name="flex-1" />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="flex flex-row items-center justify-between w-full">
|
||||||
|
<h3 class="text-sm font-medium w-[135px] text-gray-800">Jml Pelanggan Padam:</h3>
|
||||||
|
<InputText :readonly="true" :value="dataSubSelected" class-name="flex-1" />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="flex flex-row items-center justify-between w-full">
|
||||||
|
<h3 class="text-sm font-medium w-[135px] text-gray-800">Fasilitas:</h3>
|
||||||
|
<InputText :readonly="true" :value="dataSubSelected" class-name="flex-1" />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="flex flex-row items-center justify-between w-full">
|
||||||
|
<h3 class="text-sm font-medium w-[135px] text-gray-800">Sub Fasilitas:</h3>
|
||||||
|
<InputText :readonly="true" :value="dataSubSelected" class-name="flex-1" />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="flex flex-row items-center justify-between w-full">
|
||||||
|
<h3 class="text-sm font-medium w-[135px] text-gray-800">Peralatan:</h3>
|
||||||
|
<InputText :readonly="true" :value="dataSubSelected" class-name="flex-1" />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="flex flex-row items-center justify-between w-full">
|
||||||
|
<h3 class="text-sm font-medium w-[135px] text-gray-800">Dampak Kerusakan:</h3>
|
||||||
|
<InputText :readonly="true" :value="dataSubSelected" class-name="flex-1" />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="flex flex-row items-center justify-between w-full">
|
||||||
|
<h3 class="text-sm font-medium w-[135px] text-gray-800">Penyebab:</h3>
|
||||||
|
<InputText :readonly="true" :value="dataSubSelected" class-name="flex-1" />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="flex flex-row items-center justify-between w-full">
|
||||||
|
<h3 class="text-sm font-medium w-[135px] text-gray-800">Kelompok Penyebab:</h3>
|
||||||
|
<InputText :readonly="true" :value="dataSubSelected" class-name="flex-1" />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="flex flex-row items-center justify-between w-full">
|
||||||
|
<h3 class="text-sm font-medium w-[135px] text-gray-800">Cuaca:</h3>
|
||||||
|
<InputText :readonly="true" :value="dataSubSelected" class-name="flex-1" />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="flex flex-row items-center justify-between w-full">
|
||||||
|
<h3 class="text-sm font-medium w-[135px] text-gray-800">Keterangan Pelapor:</h3>
|
||||||
|
<InputText :readonly="true" :value="dataSubSelected" class-name="flex-1" />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="flex flex-row items-center justify-between w-full">
|
||||||
|
<h3 class="text-sm font-medium w-[135px] text-gray-800">Keterangan:</h3>
|
||||||
|
<InputText :readonly="true" :value="dataSubSelected" class-name="flex-1" />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="flex flex-row items-center justify-between w-full">
|
||||||
|
<h3 class="text-sm font-medium w-[135px] text-gray-800">Penyebab Padam:</h3>
|
||||||
|
<InputText :readonly="true" :value="dataSubSelected" class-name="flex-1" />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="flex flex-row items-center justify-between w-full">
|
||||||
|
<h3 class="text-sm font-medium w-[135px] text-gray-800">Tindakan:</h3>
|
||||||
|
<InputText :readonly="true" :value="dataSubSelected" class-name="flex-1" />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="flex flex-row items-center justify-between w-full">
|
||||||
|
<h3 class="text-sm font-medium w-[135px] text-gray-800">PKT Status:</h3>
|
||||||
|
<InputText :readonly="true" :value="dataSubSelected" class-name="flex-1" />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="flex flex-row items-center justify-between w-full">
|
||||||
|
<h3 class="text-sm font-medium w-[135px] text-gray-800">Referensi Marking</h3>
|
||||||
|
<InputText :readonly="true" :value="dataSubSelected" class-name="flex-1" />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="flex flex-row items-center justify-between w-full">
|
||||||
|
<h3 class="text-sm font-medium w-[135px] text-gray-800">BLTH</h3>
|
||||||
|
<InputText :readonly="true" :value="dataSubSelected" class-name="flex-1" />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</DetailDialog>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { ref } from 'vue'
|
import { onMounted, ref } from 'vue'
|
||||||
import { DxDataGrid } from 'devextreme-vue'
|
import { DxDataGrid } from 'devextreme-vue'
|
||||||
import {
|
import {
|
||||||
DxColumn,
|
DxColumn,
|
||||||
DxColumnFixing,
|
DxColumnFixing,
|
||||||
DxExport,
|
DxExport,
|
||||||
DxLoadPanel,
|
DxLoadPanel,
|
||||||
|
DxPager,
|
||||||
DxPaging,
|
DxPaging,
|
||||||
DxScrolling,
|
DxScrolling,
|
||||||
DxSearchPanel,
|
DxSearchPanel,
|
||||||
@ -59,16 +400,22 @@ import Filters from '@/components/Form/Filters.vue'
|
|||||||
import { Type1 } from '@/components/Form/FiltersType'
|
import { Type1 } from '@/components/Form/FiltersType'
|
||||||
import { useQuery } from '@vue/apollo-composable'
|
import { useQuery } from '@vue/apollo-composable'
|
||||||
import { queries } from '@/utils/api/api.graphql'
|
import { queries } from '@/utils/api/api.graphql'
|
||||||
|
import { formatNumber, formatPercentage, isNumber } from '@/utils/numbers'
|
||||||
|
import DetailDialog from '@/components/Dialogs/DetailDialog.vue'
|
||||||
|
import InputText from '@/components/InputText.vue'
|
||||||
|
import { formatWaktu } from '@/components/Form/FiltersType/reference'
|
||||||
const position = { of: '#data' }
|
const position = { of: '#data' }
|
||||||
const showIndicator = ref(true)
|
const showIndicator = ref(true)
|
||||||
const shading = ref(true)
|
const shading = ref(true)
|
||||||
const showPane = ref(true)
|
const showPane = ref(true)
|
||||||
const dataDetail = ref<any>()
|
const dataSelected = ref<any>()
|
||||||
|
const dataSubSelected = ref<any>()
|
||||||
const data = ref<any[]>([])
|
const data = ref<any[]>([])
|
||||||
const showDetail = ref(false)
|
const dataSub = ref<any[]>([])
|
||||||
const showData = () => {
|
const dialogDataSelected = ref(false)
|
||||||
showDetail.value = true
|
const closeDialogDataSelected = () => dialogDataSelected.value = false
|
||||||
}
|
const showDialogDataSelected = () => dialogDataSelected.value = true
|
||||||
|
|
||||||
const onExporting = (e: any) => {
|
const onExporting = (e: any) => {
|
||||||
if (e.format === 'pdf') {
|
if (e.format === 'pdf') {
|
||||||
const doc = new jsPDF()
|
const doc = new jsPDF()
|
||||||
@ -97,9 +444,16 @@ const onExporting = (e: any) => {
|
|||||||
e.cancel = true
|
e.cancel = true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
const onSelectionChanged = ({ selectedRowsData }: any) => {
|
|
||||||
|
const onDataSelectionChanged = ({ selectedRowsData }: any) => {
|
||||||
const data = selectedRowsData[0]
|
const data = selectedRowsData[0]
|
||||||
dataDetail.value = data
|
dataSelected.value = data
|
||||||
|
console.log(data)
|
||||||
|
}
|
||||||
|
|
||||||
|
const onDataSubSelectionChanged = ({ selectedRowsData }: any) => {
|
||||||
|
const data = selectedRowsData[0]
|
||||||
|
dataSubSelected.value = data
|
||||||
console.log(data)
|
console.log(data)
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -138,4 +492,19 @@ const { onResult, onError, loading, refetch } = useQuery(queries.cico.laporanChe
|
|||||||
})
|
})
|
||||||
|
|
||||||
const filters = ref()
|
const filters = ref()
|
||||||
|
|
||||||
|
onMounted(() => {
|
||||||
|
data.value = [
|
||||||
|
{
|
||||||
|
"user_regu": "11110.REGU1",
|
||||||
|
"personil_yantek": "11110_FAUZI",
|
||||||
|
"jumlah_wo_gangguan_individual": 54,
|
||||||
|
"avg_durasi_wo_gangguan_individual": 70.67,
|
||||||
|
"avg_rpt_wo_gangguan_individual": 40.69,
|
||||||
|
"avg_rct_wo_gangguan_individual": 71.61,
|
||||||
|
"jumlah_wo_penugasan_khusus": 31,
|
||||||
|
"avg_wo_penugasan_khusus": 63.79
|
||||||
|
}
|
||||||
|
]
|
||||||
|
})
|
||||||
</script>
|
</script>
|
Loading…
x
Reference in New Issue
Block a user