Merge branch 'dev-defuj' of https://github.com/defuj/eis into dev-eko
This commit is contained in:
@@ -2252,6 +2252,10 @@ body {
|
|||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.overflow-y-hidden {
|
||||||
|
overflow-y: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
.overflow-y-scroll {
|
.overflow-y-scroll {
|
||||||
overflow-y: scroll;
|
overflow-y: scroll;
|
||||||
}
|
}
|
||||||
|
|||||||
28
src/components/Dialogs/BufferDialog.vue
Normal file
28
src/components/Dialogs/BufferDialog.vue
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
<template>
|
||||||
|
<div
|
||||||
|
style="background-color: rgba(0, 0, 0, 0.5)"
|
||||||
|
class="text-white flex justify-center items-center absolute z-50 w-full top-0 left-0 bottom-0 right-0"
|
||||||
|
>
|
||||||
|
<svg
|
||||||
|
class="animate-spin h-10 w-10 text-white"
|
||||||
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
|
fill="none"
|
||||||
|
viewBox="0 0 24 24"
|
||||||
|
>
|
||||||
|
<circle
|
||||||
|
class="opacity-25"
|
||||||
|
cx="12"
|
||||||
|
cy="12"
|
||||||
|
r="10"
|
||||||
|
stroke="currentColor"
|
||||||
|
stroke-width="4"
|
||||||
|
></circle>
|
||||||
|
<path
|
||||||
|
class="opacity-75"
|
||||||
|
fill="currentColor"
|
||||||
|
d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"
|
||||||
|
></path>
|
||||||
|
</svg>
|
||||||
|
<span class="ml-3 font-bold text-xl">Loading...</span>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
@@ -10,8 +10,14 @@
|
|||||||
/>
|
/>
|
||||||
</Filters>
|
</Filters>
|
||||||
|
|
||||||
<Anomali_LAPPGP_LPT :data="data" :loading="loadingData" />
|
<Anomali_LAPPGP_LPT
|
||||||
<Anomali_LAPPGP_LPP :data="data" />
|
:data="data"
|
||||||
|
:loading="loadingData"
|
||||||
|
:filters="filters"
|
||||||
|
@update:data-sub="dataSub = $event"
|
||||||
|
@update:loading-sub-data="loadingSubData = $event"
|
||||||
|
/>
|
||||||
|
<Anomali_LAPPGP_LPP :data="dataSub" />
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
@@ -28,10 +34,7 @@ const client = apolloClient()
|
|||||||
provideApolloClient(client)
|
provideApolloClient(client)
|
||||||
const data = ref<any[]>([])
|
const data = ref<any[]>([])
|
||||||
const dataSub = ref<any[]>([])
|
const dataSub = ref<any[]>([])
|
||||||
const dataSelected = ref<any>()
|
|
||||||
const dataSubSelected = ref<any>()
|
|
||||||
const dialogDetail = ref(false)
|
const dialogDetail = ref(false)
|
||||||
const closedialogDetail = () => (dialogDetail.value = false)
|
|
||||||
const loadingData = ref(false)
|
const loadingData = ref(false)
|
||||||
const loadingSubData = ref(false)
|
const loadingSubData = ref(false)
|
||||||
const filters = ref({
|
const filters = ref({
|
||||||
|
|||||||
@@ -29,8 +29,7 @@
|
|||||||
:show-indicator="showIndicator"
|
:show-indicator="showIndicator"
|
||||||
:show-pane="showPane"
|
:show-pane="showPane"
|
||||||
:shading="shading"
|
:shading="shading"
|
||||||
v-if="loading"
|
v-model:visible="loadingData"
|
||||||
v-model:visible="loading"
|
|
||||||
:enabled="true"
|
:enabled="true"
|
||||||
/>
|
/>
|
||||||
<DxSearchPanel :visible="true" :highlight-case-sensitive="true" />
|
<DxSearchPanel :visible="true" :highlight-case-sensitive="true" />
|
||||||
@@ -104,7 +103,7 @@
|
|||||||
data-type="number"
|
data-type="number"
|
||||||
caption="Marking"
|
caption="Marking"
|
||||||
css-class="custom-table-column"
|
css-class="custom-table-column"
|
||||||
cell-template="formatNumber"
|
cell-template="formatNumberPLNMobileMarking"
|
||||||
/>
|
/>
|
||||||
<DxColumn
|
<DxColumn
|
||||||
:width="150"
|
:width="150"
|
||||||
@@ -113,7 +112,7 @@
|
|||||||
data-type="number"
|
data-type="number"
|
||||||
caption="Non Marking"
|
caption="Non Marking"
|
||||||
css-class="custom-table-column"
|
css-class="custom-table-column"
|
||||||
cell-template="formatNumber"
|
cell-template="formatNumberPLNMobileNonMarking"
|
||||||
/>
|
/>
|
||||||
</DxColumn>
|
</DxColumn>
|
||||||
</DxColumn>
|
</DxColumn>
|
||||||
@@ -126,7 +125,7 @@
|
|||||||
data-type="number"
|
data-type="number"
|
||||||
caption="Marking"
|
caption="Marking"
|
||||||
css-class="custom-table-column"
|
css-class="custom-table-column"
|
||||||
cell-template="formatNumber"
|
cell-template="formatNumberCCMarking"
|
||||||
/>
|
/>
|
||||||
<DxColumn
|
<DxColumn
|
||||||
:width="150"
|
:width="150"
|
||||||
@@ -135,7 +134,7 @@
|
|||||||
data-type="number"
|
data-type="number"
|
||||||
caption="Non Marking"
|
caption="Non Marking"
|
||||||
css-class="custom-table-column"
|
css-class="custom-table-column"
|
||||||
cell-template="formatNumber"
|
cell-template="formatNumberCCNonMarking"
|
||||||
/>
|
/>
|
||||||
</DxColumn>
|
</DxColumn>
|
||||||
</DxColumn>
|
</DxColumn>
|
||||||
@@ -148,7 +147,7 @@
|
|||||||
data-type="number"
|
data-type="number"
|
||||||
caption="Marking"
|
caption="Marking"
|
||||||
css-class="custom-table-column"
|
css-class="custom-table-column"
|
||||||
cell-template="formatNumber"
|
cell-template="formatNumberTotalMarking"
|
||||||
/>
|
/>
|
||||||
<DxColumn
|
<DxColumn
|
||||||
:width="150"
|
:width="150"
|
||||||
@@ -157,7 +156,7 @@
|
|||||||
data-type="number"
|
data-type="number"
|
||||||
caption="Non Marking"
|
caption="Non Marking"
|
||||||
css-class="custom-table-column"
|
css-class="custom-table-column"
|
||||||
cell-template="formatNumber"
|
cell-template="formatNumberTotalNonMarking"
|
||||||
/>
|
/>
|
||||||
</DxColumn>
|
</DxColumn>
|
||||||
</DxColumn>
|
</DxColumn>
|
||||||
@@ -235,8 +234,80 @@
|
|||||||
</DxColumn>
|
</DxColumn>
|
||||||
</DxColumn>
|
</DxColumn>
|
||||||
|
|
||||||
|
<template #formatNumberPLNMobileMarking="{ data }">
|
||||||
|
<p class="text-right cursor-pointer" @click="setParameterRequest('PLN Mobile', 1)">
|
||||||
|
{{
|
||||||
|
isNumber(data.text)
|
||||||
|
? data.column.caption == '%'
|
||||||
|
? formatPercentage(data.text)
|
||||||
|
: formatNumber(data.text)
|
||||||
|
: data.text
|
||||||
|
}}
|
||||||
|
</p>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<template #formatNumberPLNMobileNonMarking="{ data }">
|
||||||
|
<p class="text-right cursor-pointer" @click="setParameterRequest('PLN Mobile', 2)">
|
||||||
|
{{
|
||||||
|
isNumber(data.text)
|
||||||
|
? data.column.caption == '%'
|
||||||
|
? formatPercentage(data.text)
|
||||||
|
: formatNumber(data.text)
|
||||||
|
: data.text
|
||||||
|
}}
|
||||||
|
</p>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<template #formatNumberCCMarking="{ data }">
|
||||||
|
<p class="text-right cursor-pointer" @click="setParameterRequest('Call PLN 123', 1)">
|
||||||
|
{{
|
||||||
|
isNumber(data.text)
|
||||||
|
? data.column.caption == '%'
|
||||||
|
? formatPercentage(data.text)
|
||||||
|
: formatNumber(data.text)
|
||||||
|
: data.text
|
||||||
|
}}
|
||||||
|
</p>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<template #formatNumberCCNonMarking="{ data }">
|
||||||
|
<p class="text-right cursor-pointer" @click="setParameterRequest('Call PLN 123', 2)">
|
||||||
|
{{
|
||||||
|
isNumber(data.text)
|
||||||
|
? data.column.caption == '%'
|
||||||
|
? formatPercentage(data.text)
|
||||||
|
: formatNumber(data.text)
|
||||||
|
: data.text
|
||||||
|
}}
|
||||||
|
</p>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<template #formatNumberTotalMarking="{ data }">
|
||||||
|
<p class="text-right cursor-pointer" @click="setParameterRequest('', 1)">
|
||||||
|
{{
|
||||||
|
isNumber(data.text)
|
||||||
|
? data.column.caption == '%'
|
||||||
|
? formatPercentage(data.text)
|
||||||
|
: formatNumber(data.text)
|
||||||
|
: data.text
|
||||||
|
}}
|
||||||
|
</p>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<template #formatNumberTotalNonMarking="{ data }">
|
||||||
|
<p class="text-right cursor-pointer" @click="setParameterRequest('', 2)">
|
||||||
|
{{
|
||||||
|
isNumber(data.text)
|
||||||
|
? data.column.caption == '%'
|
||||||
|
? formatPercentage(data.text)
|
||||||
|
: formatNumber(data.text)
|
||||||
|
: data.text
|
||||||
|
}}
|
||||||
|
</p>
|
||||||
|
</template>
|
||||||
|
|
||||||
<template #formatNumber="{ data }">
|
<template #formatNumber="{ data }">
|
||||||
<p class="text-right cursor-pointer">
|
<p class="text-right cursor-pointer" @click="setParameterRequest(null, null)">
|
||||||
{{
|
{{
|
||||||
isNumber(data.text)
|
isNumber(data.text)
|
||||||
? data.column.caption == '%'
|
? data.column.caption == '%'
|
||||||
@@ -248,19 +319,19 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<template #formatPercentage="{ data }">
|
<template #formatPercentage="{ data }">
|
||||||
<p class="text-right cursor-pointer">
|
<p class="text-right cursor-pointer" @click="setParameterRequest(null, null)">
|
||||||
{{ isNumber(data.text) ? formatPercentage(data.text) : data.text }}
|
{{ isNumber(data.text) ? formatPercentage(data.text) : data.text }}
|
||||||
</p>
|
</p>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<template #formatText="{ data }">
|
<template #formatText="{ data }">
|
||||||
<p class="text-left cursor-pointer">
|
<p class="text-left cursor-pointer" @click="setParameterRequest(null, null)">
|
||||||
{{ data.text }}
|
{{ data.text }}
|
||||||
</p>
|
</p>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<template #formatTime="{ data }">
|
<template #formatTime="{ data }">
|
||||||
<p class="!text-right">
|
<p class="!text-right" @click="setParameterRequest(null, null)">
|
||||||
{{ parseInt(data.text) ? formatWaktu(data.text) : '-' }}
|
{{ parseInt(data.text) ? formatWaktu(data.text) : '-' }}
|
||||||
</p>
|
</p>
|
||||||
</template>
|
</template>
|
||||||
@@ -397,6 +468,7 @@ import { saveAs } from 'file-saver'
|
|||||||
import { Workbook } from 'exceljs'
|
import { Workbook } from 'exceljs'
|
||||||
import { formatNumber, formatPercentage, isNumber } from '@/utils/numbers'
|
import { formatNumber, formatPercentage, isNumber } from '@/utils/numbers'
|
||||||
import { formatWaktu } from '@/components/Form/FiltersType/reference'
|
import { formatWaktu } from '@/components/Form/FiltersType/reference'
|
||||||
|
import { queries, requestGraphQl } from '@/utils/api/api.graphql'
|
||||||
|
|
||||||
const position = { of: '#data' }
|
const position = { of: '#data' }
|
||||||
const showIndicator = ref(true)
|
const showIndicator = ref(true)
|
||||||
@@ -404,29 +476,115 @@ const shading = ref(true)
|
|||||||
const showPane = ref(true)
|
const showPane = ref(true)
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
data: Array as () => any[],
|
data: Array as () => any[],
|
||||||
|
filters: Object as () => any,
|
||||||
loading: {
|
loading: {
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
default: false
|
default: false
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
const filters = ref<any>(computed(() => props.filters))
|
||||||
const data = computed(() => props.data)
|
const data = computed(() => props.data)
|
||||||
const dataSub = ref<any[]>([])
|
const dataSub = ref<any[]>([])
|
||||||
const dataSelected = ref<any>({})
|
const dataSelected = ref<any>(null)
|
||||||
const dataSubSelected = ref<any>({})
|
const dataSubSelected = ref<any>(null)
|
||||||
const dialogDetail = ref(false)
|
const dialogDetail = ref(false)
|
||||||
|
const loadingData = ref(computed(() => props.loading))
|
||||||
|
const loadingSubData = ref(false)
|
||||||
|
const agreeToShowDialog = ref(false)
|
||||||
|
const mediaSelected = ref<any>(null)
|
||||||
|
const markingSelected = ref<any>(null)
|
||||||
|
|
||||||
|
const emit = defineEmits(['update:dataSub', 'update:loadingSubData'])
|
||||||
|
|
||||||
|
const setParameterRequest = (media: any, marking: any) => {
|
||||||
|
mediaSelected.value = media
|
||||||
|
markingSelected.value = marking
|
||||||
|
|
||||||
|
if (media != null && marking != null) {
|
||||||
|
agreeToShowDialog.value = true
|
||||||
|
} else {
|
||||||
|
agreeToShowDialog.value = false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
const resetData = () => {
|
||||||
|
dataSub.value = []
|
||||||
|
dataSubSelected.value = null
|
||||||
|
}
|
||||||
|
|
||||||
|
const getDetail = async () => {
|
||||||
|
resetData()
|
||||||
|
const { ulp, uid, up3, jenisLaporan, periode } = filters.value
|
||||||
|
console.table('LAPPGU', jenisLaporan)
|
||||||
|
console.log('Media', mediaSelected.value)
|
||||||
|
console.log('isMarking', markingSelected.value)
|
||||||
|
console.log('periode', periode)
|
||||||
|
|
||||||
|
const dateValue = periode.split(' s/d ')
|
||||||
|
const selected = dataSelected.value
|
||||||
|
const query = {
|
||||||
|
// dateFrom: dateValue[0]
|
||||||
|
// ? dateValue[0].split('-').reverse().join('-')
|
||||||
|
// : new Date().toISOString().slice(0, 10),
|
||||||
|
// dateTo: dateValue[1]
|
||||||
|
// ? dateValue[1].split('-').reverse().join('-')
|
||||||
|
// : new Date().toISOString().slice(0, 10),
|
||||||
|
idUlp: selected?.id_ulp ? selected?.id_ulp : 0,
|
||||||
|
idUid: selected?.id_uid ? selected?.id_uid : 0,
|
||||||
|
idUp3: selected?.id_up3 ? selected?.id_up3 : 0,
|
||||||
|
namaRegional: '',
|
||||||
|
media: mediaSelected.value,
|
||||||
|
isMarking: markingSelected.value
|
||||||
|
}
|
||||||
|
|
||||||
|
loadingSubData.value = true
|
||||||
|
emit('update:loadingSubData', loadingSubData.value)
|
||||||
|
await requestGraphQl(
|
||||||
|
jenisLaporan.name == 'Laporan Berulang Unit'
|
||||||
|
? queries.anomali.gangguan.petugasBerulangDetail
|
||||||
|
: jenisLaporan.name == 'Laporan Rating Negatif'
|
||||||
|
? queries.anomali.gangguan.petugasRatingNegatifDetail
|
||||||
|
: queries.anomali.gangguan.petugasSkipStepDetail,
|
||||||
|
query
|
||||||
|
)
|
||||||
|
.then((result) => {
|
||||||
|
if (result.data.data != undefined) {
|
||||||
|
if (jenisLaporan.name == 'Laporan Berulang Unit') {
|
||||||
|
dataSub.value = result.data.data.detailAnomaliPenangananPengaduanGangguanUnitBerulang
|
||||||
|
} else if (jenisLaporan.name == 'Laporan Rating Negatif') {
|
||||||
|
dataSub.value = result.data.data.detailAnomaliPenangananPengaduanGangguanUnitRatingNegatif
|
||||||
|
} else {
|
||||||
|
dataSub.value = result.data.data.detailAnomaliPenangananPengaduanGangguanUnitSkipStep
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
dataSub.value = []
|
||||||
|
}
|
||||||
|
emit('update:dataSub', dataSub.value)
|
||||||
|
})
|
||||||
|
.catch((err) => {
|
||||||
|
console.error(err)
|
||||||
|
})
|
||||||
|
.finally(() => {
|
||||||
|
loadingSubData.value = false
|
||||||
|
emit('update:loadingSubData', loadingSubData.value)
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
const dataGridRef = ref<DxDataGrid | null>(null)
|
const dataGridRef = ref<DxDataGrid | null>(null)
|
||||||
const clearSelection = () => {
|
const clearSelection = () => {
|
||||||
const dataGrid = dataGridRef.value!.instance!
|
const dataGrid = dataGridRef.value!.instance!
|
||||||
dataGrid.clearSelection()
|
dataGrid.clearSelection()
|
||||||
}
|
}
|
||||||
|
|
||||||
const showDetail = () => {
|
const showDetail = () => {
|
||||||
clearSelection()
|
clearSelection()
|
||||||
dialogDetail.value = true
|
dataSub.value = []
|
||||||
|
dataSubSelected.value = null
|
||||||
|
if (agreeToShowDialog.value) {
|
||||||
|
dialogDetail.value = true
|
||||||
|
getDetail()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
const closeDialog = () => {
|
|
||||||
dialogDetail.value = false
|
|
||||||
}
|
|
||||||
const loading = ref(computed(() => props.loading))
|
|
||||||
|
|
||||||
const onExporting = (e: any) => {
|
const onExporting = (e: any) => {
|
||||||
if (e.format === 'pdf') {
|
if (e.format === 'pdf') {
|
||||||
@@ -460,7 +618,7 @@ const onExporting = (e: any) => {
|
|||||||
const onDataSelectionChanged = ({ selectedRowsData }: any) => {
|
const onDataSelectionChanged = ({ selectedRowsData }: any) => {
|
||||||
if (selectedRowsData[0] != undefined) {
|
if (selectedRowsData[0] != undefined) {
|
||||||
dataSelected.value = selectedRowsData[0]
|
dataSelected.value = selectedRowsData[0]
|
||||||
|
showDetail()
|
||||||
}
|
}
|
||||||
showDetail()
|
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
</Filters>
|
</Filters>
|
||||||
|
|
||||||
<Anomali_LAPPGU_LPT :data="data" :loading="loadingData" :filters="filters" />
|
<Anomali_LAPPGU_LPT :data="data" :loading="loadingData" :filters="filters" />
|
||||||
<Anomali_LAPPGU_LPP :data="data" />
|
<Anomali_LAPPGU_LPP :data="dataSecond" />
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
@@ -27,13 +27,8 @@ import { provideApolloClient } from '@vue/apollo-composable'
|
|||||||
const client = apolloClient()
|
const client = apolloClient()
|
||||||
provideApolloClient(client)
|
provideApolloClient(client)
|
||||||
const data = ref<any[]>([])
|
const data = ref<any[]>([])
|
||||||
const dataSub = ref<any[]>([])
|
const dataSecond = ref<any[]>([])
|
||||||
const dataSelected = ref<any>()
|
|
||||||
const dataSubSelected = ref<any>()
|
|
||||||
const dialogDetail = ref(false)
|
|
||||||
const closedialogDetail = () => (dialogDetail.value = false)
|
|
||||||
const loadingData = ref(false)
|
const loadingData = ref(false)
|
||||||
const loadingSubData = ref(false)
|
|
||||||
const filters = ref({
|
const filters = ref({
|
||||||
jenisLaporan: {
|
jenisLaporan: {
|
||||||
id: 1,
|
id: 1,
|
||||||
@@ -46,7 +41,7 @@ const filters = ref({
|
|||||||
|
|
||||||
const resetData = () => {
|
const resetData = () => {
|
||||||
data.value = []
|
data.value = []
|
||||||
dataSub.value = []
|
dataSecond.value = []
|
||||||
}
|
}
|
||||||
|
|
||||||
const filterData = async (params: any) => {
|
const filterData = async (params: any) => {
|
||||||
@@ -89,6 +84,32 @@ const filterData = async (params: any) => {
|
|||||||
} else {
|
} else {
|
||||||
data.value = []
|
data.value = []
|
||||||
}
|
}
|
||||||
|
var unitName = ''
|
||||||
|
if (uid.id == 0) {
|
||||||
|
unitName = 'Semua Unit'
|
||||||
|
} else {
|
||||||
|
unitName = uid.name
|
||||||
|
if (up3.id != 0) {
|
||||||
|
unitName = up3.name
|
||||||
|
if (ulp.id != 0) {
|
||||||
|
unitName = ulp.name
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
dataSecond.value = [
|
||||||
|
{
|
||||||
|
nama_ulp: unitName,
|
||||||
|
wo_pln_mobile: data.value.reduce((acc, cur) => acc + cur.wo_pln_mobile, 0),
|
||||||
|
total_anomali_marking: data.value.reduce(
|
||||||
|
(acc, cur) => acc + cur.total_anomali_marking,
|
||||||
|
0
|
||||||
|
),
|
||||||
|
persen_anomali_marking:
|
||||||
|
(data.value.reduce((acc, cur) => acc + cur.total_anomali_marking, 0) /
|
||||||
|
data.value.reduce((acc, cur) => acc + cur.wo_pln_mobile, 0)) *
|
||||||
|
100
|
||||||
|
}
|
||||||
|
]
|
||||||
})
|
})
|
||||||
.catch((err) => {
|
.catch((err) => {
|
||||||
console.error(err)
|
console.error(err)
|
||||||
|
|||||||
@@ -37,42 +37,11 @@
|
|||||||
css-class="custom-table-column"
|
css-class="custom-table-column"
|
||||||
cell-template="formatText"
|
cell-template="formatText"
|
||||||
/>
|
/>
|
||||||
<!-- <DxColumn
|
|
||||||
alignment="center"
|
|
||||||
:min-width="170"
|
|
||||||
data-type="text"
|
|
||||||
data-field=""
|
|
||||||
caption="Semua Unit"
|
|
||||||
css-class="custom-table-column"
|
|
||||||
:group-index="0"
|
|
||||||
/>
|
|
||||||
<DxColumn
|
|
||||||
alignment="center"
|
|
||||||
:min-width="170"
|
|
||||||
data-type="text"
|
|
||||||
data-field="id_uid"
|
|
||||||
caption="UID"
|
|
||||||
css-class="custom-table-column"
|
|
||||||
:group-index="1"
|
|
||||||
name="namaUID"
|
|
||||||
:calculate-group-value="(rowData: any) => rowData.nama_uid"
|
|
||||||
/>
|
|
||||||
<DxColumn
|
|
||||||
alignment="center"
|
|
||||||
:min-width="170"
|
|
||||||
data-type="text"
|
|
||||||
data-field="id_up3"
|
|
||||||
caption="UP3"
|
|
||||||
css-class="custom-table-column"
|
|
||||||
:group-index="1"
|
|
||||||
name="namaUID"
|
|
||||||
:calculate-group-value="(rowData: any) => rowData.nama_up3"
|
|
||||||
/> -->
|
|
||||||
<DxColumn alignment="center" caption="Total WO PLN Mobile" css-class="custom-table-column">
|
<DxColumn alignment="center" caption="Total WO PLN Mobile" css-class="custom-table-column">
|
||||||
<DxColumn
|
<DxColumn
|
||||||
:width="170"
|
:width="170"
|
||||||
alignment="center"
|
alignment="center"
|
||||||
data-field="wo_total"
|
data-field="wo_pln_mobile"
|
||||||
data-type="number"
|
data-type="number"
|
||||||
caption="a"
|
caption="a"
|
||||||
css-class="custom-table-column"
|
css-class="custom-table-column"
|
||||||
|
|||||||
@@ -284,7 +284,7 @@
|
|||||||
</DxColumn>
|
</DxColumn>
|
||||||
|
|
||||||
<template #formatNumberPLNMobileMarking="{ data }">
|
<template #formatNumberPLNMobileMarking="{ data }">
|
||||||
<p class="text-right cursor-pointer" @click="setParameterRequest('PLN MOBILE', 1)">
|
<p class="text-right cursor-pointer" @click="setParameterRequest('PLN Mobile', 1)">
|
||||||
{{
|
{{
|
||||||
isNumber(data.text)
|
isNumber(data.text)
|
||||||
? data.column.caption == '%'
|
? data.column.caption == '%'
|
||||||
@@ -296,7 +296,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<template #formatNumberPLNMobileNonMarking="{ data }">
|
<template #formatNumberPLNMobileNonMarking="{ data }">
|
||||||
<p class="text-right cursor-pointer" @click="setParameterRequest('PLN MOBILE', 2)">
|
<p class="text-right cursor-pointer" @click="setParameterRequest('PLN Mobile', 2)">
|
||||||
{{
|
{{
|
||||||
isNumber(data.text)
|
isNumber(data.text)
|
||||||
? data.column.caption == '%'
|
? data.column.caption == '%'
|
||||||
@@ -308,7 +308,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<template #formatNumberCCMarking="{ data }">
|
<template #formatNumberCCMarking="{ data }">
|
||||||
<p class="text-right cursor-pointer" @click="setParameterRequest('CC123', 1)">
|
<p class="text-right cursor-pointer" @click="setParameterRequest('Call PLN 123', 1)">
|
||||||
{{
|
{{
|
||||||
isNumber(data.text)
|
isNumber(data.text)
|
||||||
? data.column.caption == '%'
|
? data.column.caption == '%'
|
||||||
@@ -320,7 +320,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<template #formatNumberCCNonMarking="{ data }">
|
<template #formatNumberCCNonMarking="{ data }">
|
||||||
<p class="text-right cursor-pointer" @click="setParameterRequest('CC123', 2)">
|
<p class="text-right cursor-pointer" @click="setParameterRequest('Call PLN 123', 2)">
|
||||||
{{
|
{{
|
||||||
isNumber(data.text)
|
isNumber(data.text)
|
||||||
? data.column.caption == '%'
|
? data.column.caption == '%'
|
||||||
@@ -527,7 +527,7 @@
|
|||||||
|
|
||||||
<DetailDialog
|
<DetailDialog
|
||||||
:open="dialogDetail"
|
:open="dialogDetail"
|
||||||
title="Detail Gangguan All"
|
title="Daftar Detail Anomali Penanganan Pengaduan"
|
||||||
@on-close="closedialogDetail"
|
@on-close="closedialogDetail"
|
||||||
:full-width="true"
|
:full-width="true"
|
||||||
>
|
>
|
||||||
@@ -586,8 +586,24 @@
|
|||||||
<DxColumn
|
<DxColumn
|
||||||
:width="150"
|
:width="150"
|
||||||
alignment="center"
|
alignment="center"
|
||||||
data-field="nama_posko"
|
data-field="nama_uid"
|
||||||
caption="Posko"
|
caption="UIW/D"
|
||||||
|
css-class="custom-table-column"
|
||||||
|
cell-template="formatText"
|
||||||
|
/>
|
||||||
|
<DxColumn
|
||||||
|
:width="150"
|
||||||
|
alignment="center"
|
||||||
|
data-field="nama_up3"
|
||||||
|
caption="UP3"
|
||||||
|
css-class="custom-table-column"
|
||||||
|
cell-template="formatText"
|
||||||
|
/>
|
||||||
|
<DxColumn
|
||||||
|
:width="150"
|
||||||
|
alignment="center"
|
||||||
|
data-field="nama_ulp"
|
||||||
|
caption="Rayon"
|
||||||
css-class="custom-table-column"
|
css-class="custom-table-column"
|
||||||
cell-template="formatText"
|
cell-template="formatText"
|
||||||
/>
|
/>
|
||||||
@@ -595,7 +611,15 @@
|
|||||||
:width="150"
|
:width="150"
|
||||||
alignment="center"
|
alignment="center"
|
||||||
data-field="no_laporan"
|
data-field="no_laporan"
|
||||||
caption="No Lapor"
|
caption="No Laporan"
|
||||||
|
css-class="custom-table-column"
|
||||||
|
cell-template="formatText"
|
||||||
|
/>
|
||||||
|
<DxColumn
|
||||||
|
:width="150"
|
||||||
|
alignment="center"
|
||||||
|
data-field="no_laporan_referensi"
|
||||||
|
caption="No Laporan Referensi"
|
||||||
css-class="custom-table-column"
|
css-class="custom-table-column"
|
||||||
cell-template="formatText"
|
cell-template="formatText"
|
||||||
/>
|
/>
|
||||||
@@ -612,7 +636,6 @@
|
|||||||
alignment="center"
|
alignment="center"
|
||||||
data-field="waktu_response"
|
data-field="waktu_response"
|
||||||
caption="Tgl/Jam Datang"
|
caption="Tgl/Jam Datang"
|
||||||
:allow-resizing="false"
|
|
||||||
css-class="custom-table-column"
|
css-class="custom-table-column"
|
||||||
cell-template="formatText"
|
cell-template="formatText"
|
||||||
/>
|
/>
|
||||||
@@ -621,7 +644,6 @@
|
|||||||
alignment="center"
|
alignment="center"
|
||||||
data-field="waktu_recovery"
|
data-field="waktu_recovery"
|
||||||
caption="Tgl/Jam Nyala"
|
caption="Tgl/Jam Nyala"
|
||||||
:allow-resizing="false"
|
|
||||||
css-class="custom-table-column"
|
css-class="custom-table-column"
|
||||||
cell-template="formatText"
|
cell-template="formatText"
|
||||||
/>
|
/>
|
||||||
@@ -630,7 +652,6 @@
|
|||||||
alignment="center"
|
alignment="center"
|
||||||
data-field="durasi_response_time"
|
data-field="durasi_response_time"
|
||||||
caption="Durasi Response Time"
|
caption="Durasi Response Time"
|
||||||
:allow-resizing="false"
|
|
||||||
css-class="custom-table-column"
|
css-class="custom-table-column"
|
||||||
cell-template="formatTime"
|
cell-template="formatTime"
|
||||||
/>
|
/>
|
||||||
@@ -639,43 +660,38 @@
|
|||||||
alignment="center"
|
alignment="center"
|
||||||
data-field="durasi_recovery_time"
|
data-field="durasi_recovery_time"
|
||||||
caption="Durasi Recovery Time"
|
caption="Durasi Recovery Time"
|
||||||
:allow-resizing="false"
|
|
||||||
css-class="custom-table-column"
|
css-class="custom-table-column"
|
||||||
cell-template="formatTime"
|
cell-template="formatTime"
|
||||||
/>
|
/>
|
||||||
<DxColumn
|
<DxColumn
|
||||||
:width="150"
|
:width="150"
|
||||||
alignment="center"
|
alignment="center"
|
||||||
data-field=""
|
data-field="durasi_dispatch_time"
|
||||||
caption="Durasi Penugasan Regu"
|
caption="Durasi Penugasan Regu"
|
||||||
:allow-resizing="false"
|
|
||||||
css-class="custom-table-column"
|
css-class="custom-table-column"
|
||||||
cell-template="formatTime"
|
cell-template="formatTime"
|
||||||
/>
|
/>
|
||||||
<DxColumn
|
<DxColumn
|
||||||
:width="150"
|
:width="150"
|
||||||
alignment="center"
|
alignment="center"
|
||||||
data-field=""
|
data-field="durasi_perjalanan"
|
||||||
caption="Durasi Perjalanan Regu"
|
caption="Durasi Perjalanan Regu"
|
||||||
:allow-resizing="false"
|
|
||||||
css-class="custom-table-column"
|
css-class="custom-table-column"
|
||||||
cell-template="formatTime"
|
cell-template="formatTime"
|
||||||
/>
|
/>
|
||||||
<DxColumn
|
<DxColumn
|
||||||
:width="150"
|
:width="150"
|
||||||
alignment="center"
|
alignment="center"
|
||||||
data-field="jarak_closing"
|
data-field="distance"
|
||||||
caption="Jarak Closing (m)"
|
caption="Jarak Closing"
|
||||||
:allow-resizing="false"
|
|
||||||
css-class="custom-table-column"
|
css-class="custom-table-column"
|
||||||
cell-template="formatText"
|
cell-template="formatNumber"
|
||||||
/>
|
/>
|
||||||
<DxColumn
|
<DxColumn
|
||||||
:width="150"
|
:width="150"
|
||||||
alignment="center"
|
alignment="center"
|
||||||
data-field="dispatch_oleh"
|
data-field="dispatch_by"
|
||||||
caption="Dispatch Oleh"
|
caption="Dispacth Oleh"
|
||||||
:allow-resizing="false"
|
|
||||||
css-class="custom-table-column"
|
css-class="custom-table-column"
|
||||||
cell-template="formatText"
|
cell-template="formatText"
|
||||||
/>
|
/>
|
||||||
@@ -684,7 +700,6 @@
|
|||||||
alignment="center"
|
alignment="center"
|
||||||
data-field="idpel_nometer"
|
data-field="idpel_nometer"
|
||||||
caption="IDPEL/NO METER"
|
caption="IDPEL/NO METER"
|
||||||
:allow-resizing="false"
|
|
||||||
css-class="custom-table-column"
|
css-class="custom-table-column"
|
||||||
cell-template="formatText"
|
cell-template="formatText"
|
||||||
/>
|
/>
|
||||||
@@ -693,16 +708,14 @@
|
|||||||
alignment="center"
|
alignment="center"
|
||||||
data-field="nama_pelapor"
|
data-field="nama_pelapor"
|
||||||
caption="Nama Pelapor"
|
caption="Nama Pelapor"
|
||||||
:allow-resizing="false"
|
|
||||||
css-class="custom-table-column"
|
css-class="custom-table-column"
|
||||||
cell-template="formatText"
|
cell-template="formatText"
|
||||||
/>
|
/>
|
||||||
<DxColumn
|
<DxColumn
|
||||||
:width="200"
|
:width="150"
|
||||||
alignment="center"
|
alignment="center"
|
||||||
data-field="alamat_pelapor"
|
data-field="alamat_pelapor"
|
||||||
caption="Alamat Pelapor"
|
caption="Alamat Pelapor"
|
||||||
:allow-resizing="false"
|
|
||||||
css-class="custom-table-column"
|
css-class="custom-table-column"
|
||||||
cell-template="formatText"
|
cell-template="formatText"
|
||||||
/>
|
/>
|
||||||
@@ -711,25 +724,22 @@
|
|||||||
alignment="center"
|
alignment="center"
|
||||||
data-field="no_telp_pelapor"
|
data-field="no_telp_pelapor"
|
||||||
caption="No Telp Pelapor"
|
caption="No Telp Pelapor"
|
||||||
:allow-resizing="false"
|
|
||||||
css-class="custom-table-column"
|
|
||||||
cell-template="formatText"
|
|
||||||
/>
|
|
||||||
<DxColumn
|
|
||||||
:width="200"
|
|
||||||
alignment="center"
|
|
||||||
data-field="keterangan_pelapor"
|
|
||||||
caption="Keterangan Pelapor"
|
|
||||||
:allow-resizing="false"
|
|
||||||
css-class="custom-table-column"
|
css-class="custom-table-column"
|
||||||
cell-template="formatText"
|
cell-template="formatText"
|
||||||
/>
|
/>
|
||||||
<DxColumn
|
<DxColumn
|
||||||
:width="150"
|
:width="150"
|
||||||
alignment="center"
|
alignment="center"
|
||||||
data-field="pembuat_laporan"
|
data-field="keterangan_pelapor"
|
||||||
|
caption="Keterangan Pelapor"
|
||||||
|
css-class="custom-table-column"
|
||||||
|
cell-template="formatText"
|
||||||
|
/>
|
||||||
|
<DxColumn
|
||||||
|
:width="150"
|
||||||
|
alignment="center"
|
||||||
|
data-field="media"
|
||||||
caption="Sumber Lapor"
|
caption="Sumber Lapor"
|
||||||
:allow-resizing="false"
|
|
||||||
css-class="custom-table-column"
|
css-class="custom-table-column"
|
||||||
cell-template="formatText"
|
cell-template="formatText"
|
||||||
/>
|
/>
|
||||||
@@ -738,7 +748,6 @@
|
|||||||
alignment="center"
|
alignment="center"
|
||||||
data-field="diselesaikan_oleh"
|
data-field="diselesaikan_oleh"
|
||||||
caption="Diselesaikan Oleh"
|
caption="Diselesaikan Oleh"
|
||||||
:allow-resizing="false"
|
|
||||||
css-class="custom-table-column"
|
css-class="custom-table-column"
|
||||||
cell-template="formatText"
|
cell-template="formatText"
|
||||||
/>
|
/>
|
||||||
@@ -747,16 +756,22 @@
|
|||||||
alignment="center"
|
alignment="center"
|
||||||
data-field="status_akhir"
|
data-field="status_akhir"
|
||||||
caption="Status"
|
caption="Status"
|
||||||
:allow-resizing="false"
|
|
||||||
css-class="custom-table-column"
|
css-class="custom-table-column"
|
||||||
cell-template="formatText"
|
cell-template="formatText"
|
||||||
/>
|
/>
|
||||||
<DxColumn
|
<DxColumn
|
||||||
:width="150"
|
:width="150"
|
||||||
alignment="center"
|
alignment="center"
|
||||||
data-field="referensi_marking"
|
data-field="status_induk"
|
||||||
caption="Referensi Marking"
|
caption="Status Induk"
|
||||||
:allow-resizing="false"
|
css-class="custom-table-column"
|
||||||
|
cell-template="formatText"
|
||||||
|
/>
|
||||||
|
<DxColumn
|
||||||
|
:width="150"
|
||||||
|
alignment="center"
|
||||||
|
data-field="referensi_marking_induk"
|
||||||
|
caption="Referensi Marking Induk"
|
||||||
css-class="custom-table-column"
|
css-class="custom-table-column"
|
||||||
cell-template="formatText"
|
cell-template="formatText"
|
||||||
/>
|
/>
|
||||||
@@ -765,7 +780,6 @@
|
|||||||
alignment="center"
|
alignment="center"
|
||||||
data-field="kode_gangguan"
|
data-field="kode_gangguan"
|
||||||
caption="Kode Gangguan"
|
caption="Kode Gangguan"
|
||||||
:allow-resizing="false"
|
|
||||||
css-class="custom-table-column"
|
css-class="custom-table-column"
|
||||||
cell-template="formatText"
|
cell-template="formatText"
|
||||||
/>
|
/>
|
||||||
@@ -774,7 +788,6 @@
|
|||||||
alignment="center"
|
alignment="center"
|
||||||
data-field="jenis_gangguan"
|
data-field="jenis_gangguan"
|
||||||
caption="Jenis Gangguan"
|
caption="Jenis Gangguan"
|
||||||
:allow-resizing="false"
|
|
||||||
css-class="custom-table-column"
|
css-class="custom-table-column"
|
||||||
cell-template="formatText"
|
cell-template="formatText"
|
||||||
/>
|
/>
|
||||||
@@ -783,7 +796,6 @@
|
|||||||
alignment="center"
|
alignment="center"
|
||||||
data-field="penyebab"
|
data-field="penyebab"
|
||||||
caption="Penyebab"
|
caption="Penyebab"
|
||||||
:allow-resizing="false"
|
|
||||||
css-class="custom-table-column"
|
css-class="custom-table-column"
|
||||||
cell-template="formatText"
|
cell-template="formatText"
|
||||||
/>
|
/>
|
||||||
@@ -791,8 +803,7 @@
|
|||||||
:width="150"
|
:width="150"
|
||||||
alignment="center"
|
alignment="center"
|
||||||
data-field="tindakan"
|
data-field="tindakan"
|
||||||
caption="Tindakan"
|
caption="Tindaan"
|
||||||
:allow-resizing="false"
|
|
||||||
css-class="custom-table-column"
|
css-class="custom-table-column"
|
||||||
cell-template="formatText"
|
cell-template="formatText"
|
||||||
/>
|
/>
|
||||||
@@ -820,8 +831,13 @@
|
|||||||
<div class="w-full mb-4 lg:w-[30%] lg:float-right">
|
<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="p-4 space-y-2 bg-white rounded-xl">
|
||||||
<div class="flex flex-row items-center justify-between w-full">
|
<div class="flex flex-row items-center justify-between w-full">
|
||||||
<h3 class="text-sm font-medium w-[135px] text-gray-800">Posko:</h3>
|
<h3 class="text-sm font-medium w-[135px] text-gray-800">UIW/D:</h3>
|
||||||
<InputText :readonly="true" :value="dataSubSelected?.nama_posko" class-name="flex-1" />
|
<InputText :readonly="true" :value="dataSubSelected?.nama_uid" 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?.nama_up3" class-name="flex-1" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="flex flex-row items-center justify-between w-full">
|
<div class="flex flex-row items-center justify-between w-full">
|
||||||
@@ -829,6 +845,15 @@
|
|||||||
<InputText :readonly="true" :value="dataSubSelected?.no_laporan" class-name="flex-1" />
|
<InputText :readonly="true" :value="dataSubSelected?.no_laporan" class-name="flex-1" />
|
||||||
</div>
|
</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 Referensi:</h3>
|
||||||
|
<InputText
|
||||||
|
:readonly="true"
|
||||||
|
:value="dataSubSelected?.no_laporan_referensi"
|
||||||
|
class-name="flex-1"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="flex flex-row items-center justify-between w-full">
|
<div class="flex flex-row items-center justify-between w-full">
|
||||||
<h3 class="text-sm font-medium w-[135px] text-gray-800">Tgl/Jam Lapor:</h3>
|
<h3 class="text-sm font-medium w-[135px] text-gray-800">Tgl/Jam Lapor:</h3>
|
||||||
<InputText :readonly="true" :value="dataSubSelected?.waktu_lapor" class-name="flex-1" />
|
<InputText :readonly="true" :value="dataSubSelected?.waktu_lapor" class-name="flex-1" />
|
||||||
@@ -935,7 +960,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="flex flex-row items-center justify-between w-full">
|
<div class="flex flex-row items-center justify-between w-full">
|
||||||
<h3 class="text-sm font-medium w-[135px] text-gray-800">NO Telp Pelapor:</h3>
|
<h3 class="text-sm font-medium w-[135px] text-gray-800">No Telp Pelapor:</h3>
|
||||||
<InputText
|
<InputText
|
||||||
:readonly="true"
|
:readonly="true"
|
||||||
:value="dataSubSelected?.no_telp_pelapor"
|
:value="dataSubSelected?.no_telp_pelapor"
|
||||||
@@ -947,6 +972,7 @@
|
|||||||
<h3 class="text-sm font-medium w-[135px] text-gray-800">Keterangan Pelapor:</h3>
|
<h3 class="text-sm font-medium w-[135px] text-gray-800">Keterangan Pelapor:</h3>
|
||||||
<InputText
|
<InputText
|
||||||
:readonly="true"
|
:readonly="true"
|
||||||
|
type="textarea"
|
||||||
:value="dataSubSelected?.keterangan_pelapor"
|
:value="dataSubSelected?.keterangan_pelapor"
|
||||||
class-name="flex-1"
|
class-name="flex-1"
|
||||||
/>
|
/>
|
||||||
@@ -954,11 +980,7 @@
|
|||||||
|
|
||||||
<div class="flex flex-row items-center justify-between w-full">
|
<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>
|
<h3 class="text-sm font-medium w-[135px] text-gray-800">Sumber Lapor:</h3>
|
||||||
<InputText
|
<InputText :readonly="true" :value="dataSubSelected?.media" class-name="flex-1" />
|
||||||
:readonly="true"
|
|
||||||
:value="dataSubSelected?.pembuat_laporan"
|
|
||||||
class-name="flex-1"
|
|
||||||
/>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="flex flex-row items-center justify-between w-full">
|
<div class="flex flex-row items-center justify-between w-full">
|
||||||
@@ -976,10 +998,15 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="flex flex-row items-center justify-between w-full">
|
<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>
|
<h3 class="text-sm font-medium w-[135px] text-gray-800">Status Induk:</h3>
|
||||||
|
<InputText :readonly="true" :value="dataSubSelected?.status_induk" 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 Induk:</h3>
|
||||||
<InputText
|
<InputText
|
||||||
:readonly="true"
|
:readonly="true"
|
||||||
:value="dataSubSelected?.referensi_marking"
|
:value="dataSubSelected?.referensi_marking_induk"
|
||||||
class-name="flex-1"
|
class-name="flex-1"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
@@ -1022,6 +1049,7 @@ import {
|
|||||||
DxGroupItem,
|
DxGroupItem,
|
||||||
DxGrouping,
|
DxGrouping,
|
||||||
DxLoadPanel,
|
DxLoadPanel,
|
||||||
|
DxPager,
|
||||||
DxPaging,
|
DxPaging,
|
||||||
DxScrolling,
|
DxScrolling,
|
||||||
DxSearchPanel,
|
DxSearchPanel,
|
||||||
@@ -1051,8 +1079,7 @@ const props = defineProps({
|
|||||||
default: false
|
default: false
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
const filters = ref<any>(props.filters)
|
const filters = ref<any>(computed(() => props.filters))
|
||||||
const showDialog = ref(false)
|
|
||||||
const data = computed(() => props.data)
|
const data = computed(() => props.data)
|
||||||
const dataSub = ref<any[]>([])
|
const dataSub = ref<any[]>([])
|
||||||
const dataSelected = ref<any>(null)
|
const dataSelected = ref<any>(null)
|
||||||
@@ -1083,10 +1110,14 @@ const resetData = () => {
|
|||||||
|
|
||||||
const getDetail = async () => {
|
const getDetail = async () => {
|
||||||
resetData()
|
resetData()
|
||||||
const { ulp, uid, up3, jenisLaporan } = filters.value
|
const { ulp, uid, up3, jenisLaporan, periode } = filters.value
|
||||||
console.table('LAPPGU', jenisLaporan)
|
console.table('LAPPGU', jenisLaporan)
|
||||||
|
console.log('Media', mediaSelected.value)
|
||||||
|
console.log('isMarking', markingSelected.value)
|
||||||
|
console.log('periode', periode)
|
||||||
|
|
||||||
const dateValue = filters.value.periode.split(' s/d ')
|
const dateValue = periode.split(' s/d ')
|
||||||
|
const selected = dataSelected.value
|
||||||
const query = {
|
const query = {
|
||||||
dateFrom: dateValue[0]
|
dateFrom: dateValue[0]
|
||||||
? dateValue[0].split('-').reverse().join('-')
|
? dateValue[0].split('-').reverse().join('-')
|
||||||
@@ -1094,9 +1125,9 @@ const getDetail = async () => {
|
|||||||
dateTo: dateValue[1]
|
dateTo: dateValue[1]
|
||||||
? dateValue[1].split('-').reverse().join('-')
|
? dateValue[1].split('-').reverse().join('-')
|
||||||
: new Date().toISOString().slice(0, 10),
|
: new Date().toISOString().slice(0, 10),
|
||||||
idUlp: ulp ? ulp.id : 0,
|
idUlp: selected?.id_ulp ? selected?.id_ulp : 0,
|
||||||
idUid: uid ? uid.id : 0,
|
idUid: selected?.id_uid ? selected?.id_uid : 0,
|
||||||
idUp3: up3 ? up3.id : 0,
|
idUp3: selected?.id_up3 ? selected?.id_up3 : 0,
|
||||||
namaRegional: '',
|
namaRegional: '',
|
||||||
media: mediaSelected.value,
|
media: mediaSelected.value,
|
||||||
isMarking: markingSelected.value
|
isMarking: markingSelected.value
|
||||||
|
|||||||
@@ -30,7 +30,7 @@
|
|||||||
:show-info="true"
|
:show-info="true"
|
||||||
:show-navigation-buttons="true"
|
:show-navigation-buttons="true"
|
||||||
/>
|
/>
|
||||||
<DxLoadPanel
|
<!-- <DxLoadPanel
|
||||||
shading-color="rgba(0,0,0,0.4)"
|
shading-color="rgba(0,0,0,0.4)"
|
||||||
:position="position"
|
:position="position"
|
||||||
:show-indicator="showIndicator"
|
:show-indicator="showIndicator"
|
||||||
@@ -39,7 +39,7 @@
|
|||||||
v-if="loading"
|
v-if="loading"
|
||||||
v-model:visible="loading"
|
v-model:visible="loading"
|
||||||
:enabled="true"
|
:enabled="true"
|
||||||
/>
|
/> -->
|
||||||
<DxSearchPanel :visible="true" :highlight-case-sensitive="true" />
|
<DxSearchPanel :visible="true" :highlight-case-sensitive="true" />
|
||||||
<DxExport
|
<DxExport
|
||||||
:enabled="true"
|
:enabled="true"
|
||||||
@@ -281,6 +281,8 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</DetailDialog>
|
</DetailDialog>
|
||||||
|
|
||||||
|
<BufferDialog v-if="loading" />
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
@@ -303,6 +305,7 @@ import {
|
|||||||
import { useQuery } from '@vue/apollo-composable'
|
import { useQuery } from '@vue/apollo-composable'
|
||||||
import { queries, requestGraphQl } from '@/utils/api/api.graphql'
|
import { queries, requestGraphQl } from '@/utils/api/api.graphql'
|
||||||
import { exportToPDF, exportToDOCX, exportToXLSX } from '@/report/Gangguan/Daftar/DGangguan_BM'
|
import { exportToPDF, exportToDOCX, exportToXLSX } from '@/report/Gangguan/Daftar/DGangguan_BM'
|
||||||
|
import BufferDialog from '@/components/Dialogs/BufferDialog.vue'
|
||||||
|
|
||||||
const position = { of: '#data' }
|
const position = { of: '#data' }
|
||||||
const showIndicator = ref(true)
|
const showIndicator = ref(true)
|
||||||
|
|||||||
@@ -8,7 +8,6 @@
|
|||||||
ref="dataGridRef"
|
ref="dataGridRef"
|
||||||
:allow-column-reordering="true"
|
:allow-column-reordering="true"
|
||||||
class="max-h-[calc(100vh-140px)] mb-10"
|
class="max-h-[calc(100vh-140px)] mb-10"
|
||||||
:remote-operations="true"
|
|
||||||
:data-source="data"
|
:data-source="data"
|
||||||
key-expr="no_laporan"
|
key-expr="no_laporan"
|
||||||
:show-column-lines="true"
|
:show-column-lines="true"
|
||||||
@@ -33,7 +32,7 @@
|
|||||||
/>
|
/>
|
||||||
<DxSelection mode="single" />
|
<DxSelection mode="single" />
|
||||||
<!-- <DxScrolling column-rendering-mode="virtual" mode="virtual" row-rendering-mode="virtual" /> -->
|
<!-- <DxScrolling column-rendering-mode="virtual" mode="virtual" row-rendering-mode="virtual" /> -->
|
||||||
<DxLoadPanel
|
<!-- <DxLoadPanel
|
||||||
shading-color="rgba(0,0,0,0.4)"
|
shading-color="rgba(0,0,0,0.4)"
|
||||||
:position="position"
|
:position="position"
|
||||||
:show-indicator="showIndicator"
|
:show-indicator="showIndicator"
|
||||||
@@ -42,7 +41,7 @@
|
|||||||
v-if="loading"
|
v-if="loading"
|
||||||
v-model:visible="loading"
|
v-model:visible="loading"
|
||||||
:enabled="true"
|
:enabled="true"
|
||||||
/>
|
/> -->
|
||||||
<DxSearchPanel :visible="true" :highlight-case-sensitive="true" />
|
<DxSearchPanel :visible="true" :highlight-case-sensitive="true" />
|
||||||
<DxExport
|
<DxExport
|
||||||
:enabled="true"
|
:enabled="true"
|
||||||
@@ -340,6 +339,8 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</DetailDialog>
|
</DetailDialog>
|
||||||
|
|
||||||
|
<BufferDialog v-if="loading" />
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
@@ -359,9 +360,9 @@ import { formatWaktu } from '@/components/Form/FiltersType/reference'
|
|||||||
import { onMounted, ref } from 'vue'
|
import { onMounted, ref } from 'vue'
|
||||||
import DetailDialog from '@/components/Dialogs/DetailDialog.vue'
|
import DetailDialog from '@/components/Dialogs/DetailDialog.vue'
|
||||||
import InputText from '@/components/InputText.vue'
|
import InputText from '@/components/InputText.vue'
|
||||||
import { useQuery } from '@vue/apollo-composable'
|
|
||||||
import { queries, requestGraphQl } from '@/utils/api/api.graphql'
|
import { queries, requestGraphQl } from '@/utils/api/api.graphql'
|
||||||
import { exportToPDF, exportToXLSX, exportToDOCX } from '@/report/Gangguan/Daftar/DGangguan_DKPL'
|
import { exportToPDF, exportToXLSX, exportToDOCX } from '@/report/Gangguan/Daftar/DGangguan_DKPL'
|
||||||
|
import BufferDialog from '@/components/Dialogs/BufferDialog.vue'
|
||||||
|
|
||||||
const position = { of: '#dataTable' }
|
const position = { of: '#dataTable' }
|
||||||
const showIndicator = ref(true)
|
const showIndicator = ref(true)
|
||||||
@@ -556,7 +557,7 @@ const onExporting = (e: any) => {
|
|||||||
if (e.format === 'pdf') {
|
if (e.format === 'pdf') {
|
||||||
exportToPDF(reportMeta, data)
|
exportToPDF(reportMeta, data)
|
||||||
} else if (e.format === 'xlsx') {
|
} else if (e.format === 'xlsx') {
|
||||||
exportToXLSX(reportMeta, data, e)
|
exportToXLSX(reportMeta, e)
|
||||||
} else {
|
} else {
|
||||||
exportToDOCX(reportMeta, data)
|
exportToDOCX(reportMeta, data)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -30,7 +30,7 @@
|
|||||||
:show-info="true"
|
:show-info="true"
|
||||||
:show-navigation-buttons="true"
|
:show-navigation-buttons="true"
|
||||||
/>
|
/>
|
||||||
<DxLoadPanel
|
<!-- <DxLoadPanel
|
||||||
shading-color="rgba(0,0,0,0.4)"
|
shading-color="rgba(0,0,0,0.4)"
|
||||||
:position="position"
|
:position="position"
|
||||||
:show-indicator="showIndicator"
|
:show-indicator="showIndicator"
|
||||||
@@ -39,7 +39,7 @@
|
|||||||
v-if="loading"
|
v-if="loading"
|
||||||
v-model:visible="loading"
|
v-model:visible="loading"
|
||||||
:enabled="true"
|
:enabled="true"
|
||||||
/>
|
/> -->
|
||||||
<DxSearchPanel :visible="true" :highlight-case-sensitive="true" />
|
<DxSearchPanel :visible="true" :highlight-case-sensitive="true" />
|
||||||
<DxExport
|
<DxExport
|
||||||
:enabled="true"
|
:enabled="true"
|
||||||
@@ -276,6 +276,8 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</DetailDialog>
|
</DetailDialog>
|
||||||
|
|
||||||
|
<BufferDialog v-if="loading" />
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
@@ -298,6 +300,7 @@ import {
|
|||||||
import { useQuery } from '@vue/apollo-composable'
|
import { useQuery } from '@vue/apollo-composable'
|
||||||
import { queries, requestGraphQl } from '@/utils/api/api.graphql'
|
import { queries, requestGraphQl } from '@/utils/api/api.graphql'
|
||||||
import { exportToPDF, exportToXLSX, exportToDOCX } from '@/report/Gangguan/Daftar/DGangguan_DMAPKT'
|
import { exportToPDF, exportToXLSX, exportToDOCX } from '@/report/Gangguan/Daftar/DGangguan_DMAPKT'
|
||||||
|
import BufferDialog from '@/components/Dialogs/BufferDialog.vue'
|
||||||
|
|
||||||
const position = { of: '#data' }
|
const position = { of: '#data' }
|
||||||
const showIndicator = ref(true)
|
const showIndicator = ref(true)
|
||||||
|
|||||||
@@ -30,7 +30,7 @@
|
|||||||
:show-info="true"
|
:show-info="true"
|
||||||
:show-navigation-buttons="true"
|
:show-navigation-buttons="true"
|
||||||
/>
|
/>
|
||||||
<DxLoadPanel
|
<!-- <DxLoadPanel
|
||||||
shading-color="rgba(0,0,0,0.4)"
|
shading-color="rgba(0,0,0,0.4)"
|
||||||
:position="position"
|
:position="position"
|
||||||
:show-indicator="showIndicator"
|
:show-indicator="showIndicator"
|
||||||
@@ -38,7 +38,7 @@
|
|||||||
:shading="shading"
|
:shading="shading"
|
||||||
v-model:visible.sync="loadingData"
|
v-model:visible.sync="loadingData"
|
||||||
:enabled="true"
|
:enabled="true"
|
||||||
/>
|
/> -->
|
||||||
<DxSearchPanel :visible="true" :highlight-case-sensitive="true" />
|
<DxSearchPanel :visible="true" :highlight-case-sensitive="true" />
|
||||||
<DxExport
|
<DxExport
|
||||||
:enabled="true"
|
:enabled="true"
|
||||||
@@ -323,7 +323,7 @@
|
|||||||
:show-info="true"
|
:show-info="true"
|
||||||
:show-navigation-buttons="true"
|
:show-navigation-buttons="true"
|
||||||
/>
|
/>
|
||||||
<DxLoadPanel
|
<!-- <DxLoadPanel
|
||||||
shading-color="rgba(0,0,0,0.4)"
|
shading-color="rgba(0,0,0,0.4)"
|
||||||
:position="position"
|
:position="position"
|
||||||
:show-indicator="showIndicator"
|
:show-indicator="showIndicator"
|
||||||
@@ -331,7 +331,7 @@
|
|||||||
:shading="shading"
|
:shading="shading"
|
||||||
v-model:visible="loadingSubData"
|
v-model:visible="loadingSubData"
|
||||||
:enabled="true"
|
:enabled="true"
|
||||||
/>
|
/> -->
|
||||||
<DxSearchPanel :visible="true" :highlight-case-sensitive="true" />
|
<DxSearchPanel :visible="true" :highlight-case-sensitive="true" />
|
||||||
<DxExport
|
<DxExport
|
||||||
:enabled="true"
|
:enabled="true"
|
||||||
@@ -421,13 +421,15 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</DetailDialog>
|
</DetailDialog>
|
||||||
|
|
||||||
|
<BufferDialog v-if="loadingData || loadingSubData" />
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import Filters from '@/components/Form/Filters.vue'
|
import Filters from '@/components/Form/Filters.vue'
|
||||||
import Type6 from '@/components/Form/FiltersType/Type6.vue'
|
import Type6 from '@/components/Form/FiltersType/Type6.vue'
|
||||||
import { formatWaktu } from '@/components/Form/FiltersType/reference'
|
import { formatWaktu } from '@/components/Form/FiltersType/reference'
|
||||||
import { onMounted, ref, watch } from 'vue'
|
import { onMounted, ref } from 'vue'
|
||||||
import { DxDataGrid } from 'devextreme-vue'
|
import { DxDataGrid } from 'devextreme-vue'
|
||||||
import {
|
import {
|
||||||
DxColumn,
|
DxColumn,
|
||||||
@@ -440,12 +442,12 @@ import {
|
|||||||
} from 'devextreme-vue/data-grid'
|
} from 'devextreme-vue/data-grid'
|
||||||
import DetailDialog from '@/components/Dialogs/DetailDialog.vue'
|
import DetailDialog from '@/components/Dialogs/DetailDialog.vue'
|
||||||
import InputText from '@/components/InputText.vue'
|
import InputText from '@/components/InputText.vue'
|
||||||
import { useQuery } from '@vue/apollo-composable'
|
|
||||||
import { queries, requestGraphQl } from '@/utils/api/api.graphql'
|
import { queries, requestGraphQl } from '@/utils/api/api.graphql'
|
||||||
import { formatNumber, isNumber } from '@/utils/numbers'
|
import { formatNumber, isNumber } from '@/utils/numbers'
|
||||||
import { exportToPDF, exportToXLSX, exportToDOCX } from '@/report/Gangguan/Daftar/DGangguan_MLD1K'
|
import { exportToPDF, exportToXLSX, exportToDOCX } from '@/report/Gangguan/Daftar/DGangguan_MLD1K'
|
||||||
import { apolloClient } from '@/utils/api/api.graphql'
|
import { apolloClient } from '@/utils/api/api.graphql'
|
||||||
import { provideApolloClient } from '@vue/apollo-composable'
|
import { provideApolloClient } from '@vue/apollo-composable'
|
||||||
|
import BufferDialog from '@/components/Dialogs/BufferDialog.vue'
|
||||||
|
|
||||||
const client = apolloClient()
|
const client = apolloClient()
|
||||||
provideApolloClient(client)
|
provideApolloClient(client)
|
||||||
@@ -488,7 +490,7 @@ const getDetail = async () => {
|
|||||||
const query = {
|
const query = {
|
||||||
noLaporan: selected?.no_laporan ? selected?.no_laporan : ''
|
noLaporan: selected?.no_laporan ? selected?.no_laporan : ''
|
||||||
}
|
}
|
||||||
loadingSubData.value = false
|
loadingSubData.value = true
|
||||||
await requestGraphQl(queries.gangguan.daftar.melaporLebihDariSatuKaliDetail, query)
|
await requestGraphQl(queries.gangguan.daftar.melaporLebihDariSatuKaliDetail, query)
|
||||||
.then((result) => {
|
.then((result) => {
|
||||||
if (result.data.data != undefined) {
|
if (result.data.data != undefined) {
|
||||||
@@ -503,6 +505,7 @@ const getDetail = async () => {
|
|||||||
console.error(err)
|
console.error(err)
|
||||||
})
|
})
|
||||||
.finally(() => {
|
.finally(() => {
|
||||||
|
dialogDetail.value = true
|
||||||
loadingSubData.value = false
|
loadingSubData.value = false
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
@@ -515,7 +518,6 @@ const clearSelection = () => {
|
|||||||
const showDetail = () => {
|
const showDetail = () => {
|
||||||
clearSelection()
|
clearSelection()
|
||||||
dataSubSelected.value = null
|
dataSubSelected.value = null
|
||||||
dialogDetail.value = true
|
|
||||||
if (detailType.value == 'table') {
|
if (detailType.value == 'table') {
|
||||||
getDetail()
|
getDetail()
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -46,7 +46,7 @@
|
|||||||
:show-info="true"
|
:show-info="true"
|
||||||
:show-navigation-buttons="true"
|
:show-navigation-buttons="true"
|
||||||
/>
|
/>
|
||||||
<DxLoadPanel
|
<!-- <DxLoadPanel
|
||||||
shading-color="rgba(0,0,0,0.4)"
|
shading-color="rgba(0,0,0,0.4)"
|
||||||
:position="position"
|
:position="position"
|
||||||
:show-indicator="showIndicator"
|
:show-indicator="showIndicator"
|
||||||
@@ -55,7 +55,7 @@
|
|||||||
v-if="loading"
|
v-if="loading"
|
||||||
v-model:visible="loading"
|
v-model:visible="loading"
|
||||||
:enabled="true"
|
:enabled="true"
|
||||||
/>
|
/> -->
|
||||||
<DxSearchPanel :visible="true" :highlight-case-sensitive="true" />
|
<DxSearchPanel :visible="true" :highlight-case-sensitive="true" />
|
||||||
<DxExport
|
<DxExport
|
||||||
:enabled="true"
|
:enabled="true"
|
||||||
@@ -331,6 +331,8 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</DetailDialog>
|
</DetailDialog>
|
||||||
|
|
||||||
|
<BufferDialog v-if="loading" />
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
@@ -357,6 +359,7 @@ import {
|
|||||||
exportToXLSX,
|
exportToXLSX,
|
||||||
exportToDOCX
|
exportToDOCX
|
||||||
} from '@/report/Gangguan/Daftar/DGangguan_RecoveryTime'
|
} from '@/report/Gangguan/Daftar/DGangguan_RecoveryTime'
|
||||||
|
import BufferDialog from '@/components/Dialogs/BufferDialog.vue'
|
||||||
|
|
||||||
const position = { of: '#data' }
|
const position = { of: '#data' }
|
||||||
const showIndicator = ref(true)
|
const showIndicator = ref(true)
|
||||||
|
|||||||
@@ -30,7 +30,7 @@
|
|||||||
:show-info="true"
|
:show-info="true"
|
||||||
:show-navigation-buttons="true"
|
:show-navigation-buttons="true"
|
||||||
/>
|
/>
|
||||||
<DxLoadPanel
|
<!-- <DxLoadPanel
|
||||||
shading-color="rgba(0,0,0,0.4)"
|
shading-color="rgba(0,0,0,0.4)"
|
||||||
:position="position"
|
:position="position"
|
||||||
:show-indicator="showIndicator"
|
:show-indicator="showIndicator"
|
||||||
@@ -39,7 +39,7 @@
|
|||||||
v-if="loading"
|
v-if="loading"
|
||||||
v-model:visible="loading"
|
v-model:visible="loading"
|
||||||
:enabled="true"
|
:enabled="true"
|
||||||
/>
|
/> -->
|
||||||
<DxSearchPanel :visible="true" :highlight-case-sensitive="true" />
|
<DxSearchPanel :visible="true" :highlight-case-sensitive="true" />
|
||||||
<DxExport
|
<DxExport
|
||||||
:enabled="true"
|
:enabled="true"
|
||||||
@@ -308,6 +308,8 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</DetailDialog>
|
</DetailDialog>
|
||||||
|
|
||||||
|
<BufferDialog v-if="loading" />
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
@@ -334,6 +336,7 @@ import {
|
|||||||
exportToXLSX,
|
exportToXLSX,
|
||||||
exportToDOCX
|
exportToDOCX
|
||||||
} from '@/report/Gangguan/Daftar/DGangguan_ResponseTime'
|
} from '@/report/Gangguan/Daftar/DGangguan_ResponseTime'
|
||||||
|
import BufferDialog from '@/components/Dialogs/BufferDialog.vue'
|
||||||
|
|
||||||
const position = { of: '#data' }
|
const position = { of: '#data' }
|
||||||
const showIndicator = ref(true)
|
const showIndicator = ref(true)
|
||||||
|
|||||||
@@ -30,7 +30,7 @@
|
|||||||
:show-info="true"
|
:show-info="true"
|
||||||
:show-navigation-buttons="true"
|
:show-navigation-buttons="true"
|
||||||
/>
|
/>
|
||||||
<DxLoadPanel
|
<!-- <DxLoadPanel
|
||||||
shading-color="rgba(0,0,0,0.4)"
|
shading-color="rgba(0,0,0,0.4)"
|
||||||
:position="position"
|
:position="position"
|
||||||
:show-indicator="showIndicator"
|
:show-indicator="showIndicator"
|
||||||
@@ -39,7 +39,7 @@
|
|||||||
v-if="loading"
|
v-if="loading"
|
||||||
v-model:visible="loading"
|
v-model:visible="loading"
|
||||||
:enabled="true"
|
:enabled="true"
|
||||||
/>
|
/> -->
|
||||||
<DxSearchPanel :visible="true" :highlight-case-sensitive="true" />
|
<DxSearchPanel :visible="true" :highlight-case-sensitive="true" />
|
||||||
<DxExport
|
<DxExport
|
||||||
:enabled="true"
|
:enabled="true"
|
||||||
@@ -280,6 +280,8 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</DetailDialog>
|
</DetailDialog>
|
||||||
|
|
||||||
|
<BufferDialog v-if="loading" />
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
@@ -302,6 +304,7 @@ import {
|
|||||||
import { useQuery } from '@vue/apollo-composable'
|
import { useQuery } from '@vue/apollo-composable'
|
||||||
import { queries, requestGraphQl } from '@/utils/api/api.graphql'
|
import { queries, requestGraphQl } from '@/utils/api/api.graphql'
|
||||||
import { exportToPDF, exportToDOCX, exportToXLSX } from '@/report/Gangguan/Daftar/DGangguan_STIDP'
|
import { exportToPDF, exportToDOCX, exportToXLSX } from '@/report/Gangguan/Daftar/DGangguan_STIDP'
|
||||||
|
import BufferDialog from '@/components/Dialogs/BufferDialog.vue'
|
||||||
|
|
||||||
const position = { of: '#data' }
|
const position = { of: '#data' }
|
||||||
const showIndicator = ref(true)
|
const showIndicator = ref(true)
|
||||||
|
|||||||
@@ -1659,4 +1659,3 @@ onMounted(() => {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
@/utils/helper
|
|
||||||
|
|||||||
@@ -1,19 +1,21 @@
|
|||||||
<template>
|
<template>
|
||||||
<main
|
<main
|
||||||
class="flex flex-col justify-between flex-1 px-4 overflow-y-auto bg-white lg:mr-3 sm:px-3 lg:px-6 rounded-t-2xl lg:rounded-t-3xl no-scroll-bar"
|
class="bg-white overflow-hidden flex flex-col justify-between flex-1 rounded-t-2xl lg:rounded-t-3xl relative"
|
||||||
>
|
>
|
||||||
<div v-if="route.path !== '/home'" class="mt-4 lg:mt-6 max-w-7xl">
|
<div class="overflow-y-auto no-scroll-bar px-4 lg:mr-3 sm:px-3 lg:px-6 w-full">
|
||||||
<h1 class="text-lg font-semibold md:text-xl text-dark">{{ pageTitle }}</h1>
|
<div v-if="route.path !== '/home'" class="mt-4 lg:mt-6 max-w-7xl">
|
||||||
</div>
|
<h1 class="text-lg font-semibold md:text-xl text-dark">{{ pageTitle }}</h1>
|
||||||
<div class="flex-1 mt-2 sm:mt-4 dx-viewport">
|
</div>
|
||||||
<slot></slot>
|
<div class="flex-1 mt-2 sm:mt-4 dx-viewport">
|
||||||
|
<slot></slot>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</main>
|
</main>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { computed } from 'vue';
|
import { computed } from 'vue'
|
||||||
import { useRoute } from 'vue-router';
|
import { useRoute } from 'vue-router'
|
||||||
|
|
||||||
// Dapatkan objek route dari vue-router
|
// Dapatkan objek route dari vue-router
|
||||||
const route = useRoute()
|
const route = useRoute()
|
||||||
|
|||||||
@@ -269,7 +269,10 @@ const exportToXLSX = (reportMeta: any, data: any, e: any) => {
|
|||||||
component: e.component,
|
component: e.component,
|
||||||
worksheet,
|
worksheet,
|
||||||
autoFilterEnabled: true,
|
autoFilterEnabled: true,
|
||||||
topLeftCell: { row: 10, column: 1 }
|
topLeftCell: { row: 10, column: 1 },
|
||||||
|
loadPanel: {
|
||||||
|
enabled: false
|
||||||
|
}
|
||||||
}).then(() => {
|
}).then(() => {
|
||||||
workbook.xlsx.writeBuffer().then((buffer: any) => {
|
workbook.xlsx.writeBuffer().then((buffer: any) => {
|
||||||
saveAs(new Blob([buffer], { type: 'application/octet-stream' }), `Laporan ${reportName}.xlsx`)
|
saveAs(new Blob([buffer], { type: 'application/octet-stream' }), `Laporan ${reportName}.xlsx`)
|
||||||
|
|||||||
@@ -20,6 +20,8 @@ import { formatWaktu } from '@/components/Form/FiltersType/reference'
|
|||||||
import { setHeaderStyle } from '@/report/utils/xlsx'
|
import { setHeaderStyle } from '@/report/utils/xlsx'
|
||||||
|
|
||||||
const reportName = 'Daftar Gangguan Dialihkan Ke Posko Lain'
|
const reportName = 'Daftar Gangguan Dialihkan Ke Posko Lain'
|
||||||
|
const fontSize = 4
|
||||||
|
const docxFontSize = 6
|
||||||
|
|
||||||
const formatMetaData = (reportMeta: any) => {
|
const formatMetaData = (reportMeta: any) => {
|
||||||
const periode = reportMeta.value.periode ? reportMeta.value.periode.split(' s/d ') : ''
|
const periode = reportMeta.value.periode ? reportMeta.value.periode.split(' s/d ') : ''
|
||||||
@@ -56,7 +58,7 @@ const exportToPDF = (reportMeta: any, data: any) => {
|
|||||||
head: [
|
head: [
|
||||||
['PT. PLN(Persero)', '', ''],
|
['PT. PLN(Persero)', '', ''],
|
||||||
[
|
[
|
||||||
{ content: 'UNIT INDUK', styles: { cellWidth: 25 } },
|
{ content: 'UNIT INDUK', styles: { cellWidth: 35 } },
|
||||||
{ content: ':', styles: { cellWidth: 1 } },
|
{ content: ':', styles: { cellWidth: 1 } },
|
||||||
reportMeta.value.uid
|
reportMeta.value.uid
|
||||||
? reportMeta.value.uid.name.toUpperCase()
|
? reportMeta.value.uid.name.toUpperCase()
|
||||||
@@ -78,7 +80,7 @@ const exportToPDF = (reportMeta: any, data: any) => {
|
|||||||
]
|
]
|
||||||
],
|
],
|
||||||
styles: {
|
styles: {
|
||||||
fontSize: 3,
|
fontSize,
|
||||||
cellPadding: 0.1,
|
cellPadding: 0.1,
|
||||||
textColor: [0, 0, 0],
|
textColor: [0, 0, 0],
|
||||||
fontStyle: 'bold'
|
fontStyle: 'bold'
|
||||||
@@ -93,14 +95,14 @@ const exportToPDF = (reportMeta: any, data: any) => {
|
|||||||
[`PERIODE TANGGAL : ${meta.dateFromFormat} SD TGL ${meta.dateToFormat}`]
|
[`PERIODE TANGGAL : ${meta.dateFromFormat} SD TGL ${meta.dateToFormat}`]
|
||||||
],
|
],
|
||||||
styles: {
|
styles: {
|
||||||
fontSize: 3,
|
fontSize,
|
||||||
cellPadding: 0.1,
|
cellPadding: 0.1,
|
||||||
textColor: [0, 0, 0],
|
textColor: [0, 0, 0],
|
||||||
fontStyle: 'bold',
|
fontStyle: 'bold',
|
||||||
halign: 'center'
|
halign: 'center'
|
||||||
},
|
},
|
||||||
theme: 'plain',
|
theme: 'plain',
|
||||||
startY: 18
|
startY: 25
|
||||||
})
|
})
|
||||||
|
|
||||||
autoTable(doc, {
|
autoTable(doc, {
|
||||||
@@ -149,7 +151,7 @@ const exportToPDF = (reportMeta: any, data: any) => {
|
|||||||
item.posko
|
item.posko
|
||||||
]),
|
]),
|
||||||
styles: {
|
styles: {
|
||||||
fontSize: 3,
|
fontSize,
|
||||||
cellPadding: 1,
|
cellPadding: 1,
|
||||||
lineColor: [0, 0, 0],
|
lineColor: [0, 0, 0],
|
||||||
lineWidth: 0.1,
|
lineWidth: 0.1,
|
||||||
@@ -173,7 +175,7 @@ const exportToPDF = (reportMeta: any, data: any) => {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
startY: 23
|
startY: 35
|
||||||
})
|
})
|
||||||
|
|
||||||
autoTable(doc, {
|
autoTable(doc, {
|
||||||
@@ -187,7 +189,7 @@ const exportToPDF = (reportMeta: any, data: any) => {
|
|||||||
]
|
]
|
||||||
],
|
],
|
||||||
styles: {
|
styles: {
|
||||||
fontSize: 3,
|
fontSize,
|
||||||
cellPadding: 0.1,
|
cellPadding: 0.1,
|
||||||
textColor: [0, 0, 0],
|
textColor: [0, 0, 0],
|
||||||
fontStyle: 'bold',
|
fontStyle: 'bold',
|
||||||
@@ -203,7 +205,7 @@ const exportToPDF = (reportMeta: any, data: any) => {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
const exportToXLSX = (reportMeta: any, data: any, e: any) => {
|
const exportToXLSX = (reportMeta: any, e: any) => {
|
||||||
const meta = formatMetaData(reportMeta)
|
const meta = formatMetaData(reportMeta)
|
||||||
const workbook = new Workbook()
|
const workbook = new Workbook()
|
||||||
const worksheet = workbook.addWorksheet(`${reportName}`)
|
const worksheet = workbook.addWorksheet(`${reportName}`)
|
||||||
@@ -240,27 +242,30 @@ const exportToXLSX = (reportMeta: any, data: any, e: any) => {
|
|||||||
}`
|
}`
|
||||||
)
|
)
|
||||||
|
|
||||||
setHeaderStyle(worksheet, 7, 8, `${reportName}`.toUpperCase(), true)
|
setHeaderStyle(worksheet, 6, 1, `${reportName}`.toUpperCase(), true)
|
||||||
setHeaderStyle(
|
setHeaderStyle(
|
||||||
worksheet,
|
worksheet,
|
||||||
8,
|
7,
|
||||||
8,
|
1,
|
||||||
`PERIODE TANGGAL : ${meta.dateFromFormat} SD TGL ${meta.dateToFormat}`,
|
`PERIODE TANGGAL : ${meta.dateFromFormat} SD TGL ${meta.dateToFormat}`,
|
||||||
true
|
true
|
||||||
)
|
)
|
||||||
|
|
||||||
worksheet.mergeCells('A1:F1')
|
worksheet.mergeCells('A1:S1')
|
||||||
worksheet.mergeCells('A2:F2')
|
worksheet.mergeCells('A2:S2')
|
||||||
worksheet.mergeCells('A3:F3')
|
worksheet.mergeCells('A3:S3')
|
||||||
worksheet.mergeCells('A4:F4')
|
worksheet.mergeCells('A4:S4')
|
||||||
worksheet.mergeCells('H7:I7')
|
worksheet.mergeCells('A6:S6')
|
||||||
worksheet.mergeCells('H8:I8')
|
worksheet.mergeCells('A7:S7')
|
||||||
|
|
||||||
exportToExcel({
|
exportToExcel({
|
||||||
component: e.component,
|
component: e.component,
|
||||||
worksheet,
|
worksheet,
|
||||||
autoFilterEnabled: true,
|
autoFilterEnabled: true,
|
||||||
topLeftCell: { row: 10, column: 1 }
|
topLeftCell: { row: 10, column: 1 },
|
||||||
|
loadPanel: {
|
||||||
|
enabled: false
|
||||||
|
}
|
||||||
}).then(() => {
|
}).then(() => {
|
||||||
workbook.xlsx.writeBuffer().then((buffer: any) => {
|
workbook.xlsx.writeBuffer().then((buffer: any) => {
|
||||||
saveAs(new Blob([buffer], { type: 'application/octet-stream' }), `Laporan ${reportName}.xlsx`)
|
saveAs(new Blob([buffer], { type: 'application/octet-stream' }), `Laporan ${reportName}.xlsx`)
|
||||||
@@ -314,7 +319,7 @@ const exportToDOCX = (reportMeta: any, data: any) => {
|
|||||||
children: [
|
children: [
|
||||||
new TextRun({
|
new TextRun({
|
||||||
text: cell.text,
|
text: cell.text,
|
||||||
size: 5
|
size: docxFontSize
|
||||||
})
|
})
|
||||||
]
|
]
|
||||||
})
|
})
|
||||||
@@ -343,7 +348,7 @@ const exportToDOCX = (reportMeta: any, data: any) => {
|
|||||||
new TextRun({
|
new TextRun({
|
||||||
text: 'PT. PLN(Persero)',
|
text: 'PT. PLN(Persero)',
|
||||||
bold: true,
|
bold: true,
|
||||||
size: 5
|
size: docxFontSize
|
||||||
})
|
})
|
||||||
]
|
]
|
||||||
}),
|
}),
|
||||||
@@ -356,7 +361,7 @@ const exportToDOCX = (reportMeta: any, data: any) => {
|
|||||||
: 'Semua Unit Induk Distribusi/Wilayah'.toUpperCase()
|
: 'Semua Unit Induk Distribusi/Wilayah'.toUpperCase()
|
||||||
}`,
|
}`,
|
||||||
bold: true,
|
bold: true,
|
||||||
size: 5
|
size: docxFontSize
|
||||||
})
|
})
|
||||||
]
|
]
|
||||||
}),
|
}),
|
||||||
@@ -369,7 +374,7 @@ const exportToDOCX = (reportMeta: any, data: any) => {
|
|||||||
: 'Semua Unit Pelaksanaan Pelayanan Pelanggan'.toUpperCase()
|
: 'Semua Unit Pelaksanaan Pelayanan Pelanggan'.toUpperCase()
|
||||||
}`,
|
}`,
|
||||||
bold: true,
|
bold: true,
|
||||||
size: 5
|
size: docxFontSize
|
||||||
})
|
})
|
||||||
]
|
]
|
||||||
}),
|
}),
|
||||||
@@ -382,7 +387,7 @@ const exportToDOCX = (reportMeta: any, data: any) => {
|
|||||||
: 'Semua Posko'.toUpperCase()
|
: 'Semua Posko'.toUpperCase()
|
||||||
}`,
|
}`,
|
||||||
bold: true,
|
bold: true,
|
||||||
size: 5
|
size: docxFontSize
|
||||||
})
|
})
|
||||||
]
|
]
|
||||||
}),
|
}),
|
||||||
@@ -391,7 +396,7 @@ const exportToDOCX = (reportMeta: any, data: any) => {
|
|||||||
new TextRun({
|
new TextRun({
|
||||||
text: '',
|
text: '',
|
||||||
bold: true,
|
bold: true,
|
||||||
size: 5
|
size: docxFontSize
|
||||||
})
|
})
|
||||||
]
|
]
|
||||||
}),
|
}),
|
||||||
@@ -401,7 +406,7 @@ const exportToDOCX = (reportMeta: any, data: any) => {
|
|||||||
new TextRun({
|
new TextRun({
|
||||||
text: `${reportName}`.toUpperCase(),
|
text: `${reportName}`.toUpperCase(),
|
||||||
bold: true,
|
bold: true,
|
||||||
size: 5
|
size: docxFontSize
|
||||||
})
|
})
|
||||||
]
|
]
|
||||||
}),
|
}),
|
||||||
@@ -411,7 +416,7 @@ const exportToDOCX = (reportMeta: any, data: any) => {
|
|||||||
new TextRun({
|
new TextRun({
|
||||||
text: `PERIODE TANGGAL : ${meta.dateFromFormat} SD TGL ${meta.dateToFormat}`,
|
text: `PERIODE TANGGAL : ${meta.dateFromFormat} SD TGL ${meta.dateToFormat}`,
|
||||||
bold: true,
|
bold: true,
|
||||||
size: 5
|
size: docxFontSize
|
||||||
})
|
})
|
||||||
]
|
]
|
||||||
}),
|
}),
|
||||||
@@ -420,7 +425,7 @@ const exportToDOCX = (reportMeta: any, data: any) => {
|
|||||||
new TextRun({
|
new TextRun({
|
||||||
text: '',
|
text: '',
|
||||||
bold: true,
|
bold: true,
|
||||||
size: 5
|
size: docxFontSize
|
||||||
})
|
})
|
||||||
]
|
]
|
||||||
}),
|
}),
|
||||||
@@ -461,7 +466,7 @@ const exportToDOCX = (reportMeta: any, data: any) => {
|
|||||||
new TextRun({
|
new TextRun({
|
||||||
text: header.text,
|
text: header.text,
|
||||||
bold: true,
|
bold: true,
|
||||||
size: 5,
|
size: docxFontSize,
|
||||||
allCaps: true
|
allCaps: true
|
||||||
})
|
})
|
||||||
]
|
]
|
||||||
@@ -479,7 +484,7 @@ const exportToDOCX = (reportMeta: any, data: any) => {
|
|||||||
new TextRun({
|
new TextRun({
|
||||||
text: '',
|
text: '',
|
||||||
bold: true,
|
bold: true,
|
||||||
size: 5
|
size: docxFontSize
|
||||||
})
|
})
|
||||||
]
|
]
|
||||||
}),
|
}),
|
||||||
@@ -489,7 +494,7 @@ const exportToDOCX = (reportMeta: any, data: any) => {
|
|||||||
new TextRun({
|
new TextRun({
|
||||||
text: `${meta.dayTo}, ${meta.dateToFormat}`,
|
text: `${meta.dayTo}, ${meta.dateToFormat}`,
|
||||||
bold: true,
|
bold: true,
|
||||||
size: 5
|
size: docxFontSize
|
||||||
})
|
})
|
||||||
]
|
]
|
||||||
}),
|
}),
|
||||||
@@ -498,7 +503,7 @@ const exportToDOCX = (reportMeta: any, data: any) => {
|
|||||||
new TextRun({
|
new TextRun({
|
||||||
text: '',
|
text: '',
|
||||||
bold: true,
|
bold: true,
|
||||||
size: 5
|
size: docxFontSize
|
||||||
})
|
})
|
||||||
]
|
]
|
||||||
}),
|
}),
|
||||||
@@ -508,7 +513,7 @@ const exportToDOCX = (reportMeta: any, data: any) => {
|
|||||||
new TextRun({
|
new TextRun({
|
||||||
text: '(.........................................)',
|
text: '(.........................................)',
|
||||||
bold: true,
|
bold: true,
|
||||||
size: 5
|
size: docxFontSize
|
||||||
})
|
})
|
||||||
]
|
]
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -252,7 +252,10 @@ const exportToXLSX = (reportMeta: any, data: any, e: any) => {
|
|||||||
component: e.component,
|
component: e.component,
|
||||||
worksheet,
|
worksheet,
|
||||||
autoFilterEnabled: true,
|
autoFilterEnabled: true,
|
||||||
topLeftCell: { row: 10, column: 1 }
|
topLeftCell: { row: 10, column: 1 },
|
||||||
|
loadPanel: {
|
||||||
|
enabled: false
|
||||||
|
}
|
||||||
}).then(() => {
|
}).then(() => {
|
||||||
workbook.xlsx.writeBuffer().then((buffer: any) => {
|
workbook.xlsx.writeBuffer().then((buffer: any) => {
|
||||||
saveAs(new Blob([buffer], { type: 'application/octet-stream' }), `Laporan ${reportName}.xlsx`)
|
saveAs(new Blob([buffer], { type: 'application/octet-stream' }), `Laporan ${reportName}.xlsx`)
|
||||||
|
|||||||
@@ -261,7 +261,10 @@ const exportToXLSX = (reportMeta: any, data: any, e: any) => {
|
|||||||
component: e.component,
|
component: e.component,
|
||||||
worksheet,
|
worksheet,
|
||||||
autoFilterEnabled: true,
|
autoFilterEnabled: true,
|
||||||
topLeftCell: { row: 11, column: 1 }
|
topLeftCell: { row: 11, column: 1 },
|
||||||
|
loadPanel: {
|
||||||
|
enabled: false
|
||||||
|
}
|
||||||
}).then(() => {
|
}).then(() => {
|
||||||
workbook.xlsx.writeBuffer().then((buffer: any) => {
|
workbook.xlsx.writeBuffer().then((buffer: any) => {
|
||||||
saveAs(new Blob([buffer], { type: 'application/octet-stream' }), `Laporan ${reportName}.xlsx`)
|
saveAs(new Blob([buffer], { type: 'application/octet-stream' }), `Laporan ${reportName}.xlsx`)
|
||||||
|
|||||||
@@ -282,7 +282,10 @@ const exportToXLSX = (reportMeta: any, data: any, e: any) => {
|
|||||||
component: e.component,
|
component: e.component,
|
||||||
worksheet,
|
worksheet,
|
||||||
autoFilterEnabled: true,
|
autoFilterEnabled: true,
|
||||||
topLeftCell: { row: 11, column: 1 }
|
topLeftCell: { row: 11, column: 1 },
|
||||||
|
loadPanel: {
|
||||||
|
enabled: false
|
||||||
|
}
|
||||||
}).then(() => {
|
}).then(() => {
|
||||||
workbook.xlsx.writeBuffer().then((buffer: any) => {
|
workbook.xlsx.writeBuffer().then((buffer: any) => {
|
||||||
saveAs(new Blob([buffer], { type: 'application/octet-stream' }), `Laporan ${reportName}.xlsx`)
|
saveAs(new Blob([buffer], { type: 'application/octet-stream' }), `Laporan ${reportName}.xlsx`)
|
||||||
|
|||||||
@@ -282,7 +282,10 @@ const exportToXLSX = (reportMeta: any, data: any, e: any) => {
|
|||||||
component: e.component,
|
component: e.component,
|
||||||
worksheet,
|
worksheet,
|
||||||
autoFilterEnabled: true,
|
autoFilterEnabled: true,
|
||||||
topLeftCell: { row: 11, column: 1 }
|
topLeftCell: { row: 11, column: 1 },
|
||||||
|
loadPanel: {
|
||||||
|
enabled: false
|
||||||
|
}
|
||||||
}).then(() => {
|
}).then(() => {
|
||||||
workbook.xlsx.writeBuffer().then((buffer: any) => {
|
workbook.xlsx.writeBuffer().then((buffer: any) => {
|
||||||
saveAs(new Blob([buffer], { type: 'application/octet-stream' }), `Laporan ${reportName}.xlsx`)
|
saveAs(new Blob([buffer], { type: 'application/octet-stream' }), `Laporan ${reportName}.xlsx`)
|
||||||
|
|||||||
@@ -252,7 +252,10 @@ const exportToXLSX = (reportMeta: any, data: any, e: any) => {
|
|||||||
component: e.component,
|
component: e.component,
|
||||||
worksheet,
|
worksheet,
|
||||||
autoFilterEnabled: true,
|
autoFilterEnabled: true,
|
||||||
topLeftCell: { row: 10, column: 1 }
|
topLeftCell: { row: 10, column: 1 },
|
||||||
|
loadPanel: {
|
||||||
|
enabled: false
|
||||||
|
}
|
||||||
}).then(() => {
|
}).then(() => {
|
||||||
workbook.xlsx.writeBuffer().then((buffer: any) => {
|
workbook.xlsx.writeBuffer().then((buffer: any) => {
|
||||||
saveAs(new Blob([buffer], { type: 'application/octet-stream' }), `Laporan ${reportName}.xlsx`)
|
saveAs(new Blob([buffer], { type: 'application/octet-stream' }), `Laporan ${reportName}.xlsx`)
|
||||||
|
|||||||
@@ -3031,7 +3031,9 @@ export const queries = {
|
|||||||
id_ulp
|
id_ulp
|
||||||
nama_ulp
|
nama_ulp
|
||||||
no_laporan
|
no_laporan
|
||||||
|
no_laporan_referensi
|
||||||
referensi_marking
|
referensi_marking
|
||||||
|
referensi_marking_induk
|
||||||
waktu_lapor
|
waktu_lapor
|
||||||
waktu_response
|
waktu_response
|
||||||
waktu_recovery
|
waktu_recovery
|
||||||
@@ -3049,6 +3051,7 @@ export const queries = {
|
|||||||
media
|
media
|
||||||
diselesaikan_oleh
|
diselesaikan_oleh
|
||||||
status_akhir
|
status_akhir
|
||||||
|
status_induk
|
||||||
kode_gangguan
|
kode_gangguan
|
||||||
jenis_gangguan
|
jenis_gangguan
|
||||||
penyebab
|
penyebab
|
||||||
@@ -3129,7 +3132,9 @@ export const queries = {
|
|||||||
id_ulp
|
id_ulp
|
||||||
nama_ulp
|
nama_ulp
|
||||||
no_laporan
|
no_laporan
|
||||||
|
no_laporan_referensi
|
||||||
referensi_marking
|
referensi_marking
|
||||||
|
referensi_marking_induk
|
||||||
waktu_lapor
|
waktu_lapor
|
||||||
waktu_response
|
waktu_response
|
||||||
waktu_recovery
|
waktu_recovery
|
||||||
@@ -3147,6 +3152,7 @@ export const queries = {
|
|||||||
media
|
media
|
||||||
diselesaikan_oleh
|
diselesaikan_oleh
|
||||||
status_akhir
|
status_akhir
|
||||||
|
status_induk
|
||||||
kode_gangguan
|
kode_gangguan
|
||||||
jenis_gangguan
|
jenis_gangguan
|
||||||
penyebab
|
penyebab
|
||||||
@@ -3227,7 +3233,9 @@ export const queries = {
|
|||||||
id_ulp
|
id_ulp
|
||||||
nama_ulp
|
nama_ulp
|
||||||
no_laporan
|
no_laporan
|
||||||
|
no_laporan_referensi
|
||||||
referensi_marking
|
referensi_marking
|
||||||
|
referensi_marking_induk
|
||||||
waktu_lapor
|
waktu_lapor
|
||||||
waktu_response
|
waktu_response
|
||||||
waktu_recovery
|
waktu_recovery
|
||||||
@@ -3245,6 +3253,7 @@ export const queries = {
|
|||||||
media
|
media
|
||||||
diselesaikan_oleh
|
diselesaikan_oleh
|
||||||
status_akhir
|
status_akhir
|
||||||
|
status_induk
|
||||||
kode_gangguan
|
kode_gangguan
|
||||||
jenis_gangguan
|
jenis_gangguan
|
||||||
penyebab
|
penyebab
|
||||||
|
|||||||
@@ -1,17 +1,22 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import MenuProvider from '@/components/Pages/MenuProvider.vue';
|
import MenuProvider from '@/components/Pages/MenuProvider.vue'
|
||||||
import Navigation from '@/components/Navigation/Navigation.vue';
|
import Navigation from '@/components/Navigation/Navigation.vue'
|
||||||
import { useMenuStore } from '@/stores/menu';
|
import { useMenuStore } from '@/stores/menu'
|
||||||
import { RouterView } from 'vue-router';
|
import { RouterView } from 'vue-router'
|
||||||
const menu = useMenuStore()
|
const menu = useMenuStore()
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<Navigation />
|
<Navigation />
|
||||||
<div
|
<div
|
||||||
:class="['flex flex-col flex-1 h-[calc(100%-64px)] overflow-hidden bg-primary-50', 'transition-transform', menu.sidebarShowed ? 'transform duration-300 lg:pl-80' : 'transform duration-300 md:pl-4']">
|
:class="[
|
||||||
|
'flex flex-col flex-1 h-[calc(100%-64px)] overflow-hidden bg-primary-50',
|
||||||
|
'transition-transform',
|
||||||
|
menu.sidebarShowed ? 'transform duration-300 lg:pl-80' : 'transform duration-300 md:pl-4'
|
||||||
|
]"
|
||||||
|
>
|
||||||
<MenuProvider>
|
<MenuProvider>
|
||||||
<RouterView />
|
<RouterView />
|
||||||
</MenuProvider>
|
</MenuProvider>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
Reference in New Issue
Block a user