Update version.json to 0.0.129-vm

This commit is contained in:
Dede Fuji Abdul
2024-04-20 16:05:55 +07:00
parent 050e0b93a0
commit 50a6eb0a07
7 changed files with 41 additions and 28 deletions

View File

@ -15,22 +15,38 @@ import { onMounted, ref, watch } from 'vue'
const uidPlaceholder = 'Semua Unit Induk Distribusi/Wilayah'
const up3placeholder = 'Semua Unit Pelaksanaan Pelayanan Pelanggan'
const poskoPlaceholder = 'Semua Posko'
const up3 = ref({ id: 0, name: up3placeholder })
const uid = ref({ id: 0, name: uidPlaceholder })
const posko = ref({ id: 0, name: poskoPlaceholder })
const props = defineProps({
uid: {
type: Object,
default: { id: 0, name: uidPlaceholder }
},
up3: {
type: Object,
default: { id: 0, name: up3placeholder }
},
posko: {
type: Object,
default: { id: 0, name: poskoPlaceholder }
},
periode: {
type: String,
default: `${new Date().getDate().toString().length == 1 ? `0${new Date().getDate()}` : new Date().getDate()}-${(new Date().getMonth() + 1).toString().length == 1 ? `0${new Date().getMonth() + 1}` : new Date().getMonth() + 1}-${new Date().getFullYear()} s/d ${new Date().getDate().toString().length == 1 ? `0${new Date().getDate()}` : new Date().getDate()}-${(new Date().getMonth() + 1).toString().length == 1 ? `0${new Date().getMonth() + 1}` : new Date().getMonth() + 1}-${new Date().getFullYear()}`
},
showPosko: {
type: Boolean,
default: true
}
})
const up3 = ref(props.up3)
const uid = ref(props.uid)
const posko = ref(props.posko)
const emit = defineEmits(['update:filters'])
const data = ref({
uid: uid.value,
up3: up3.value,
posko: posko.value,
periode: ''
})
defineProps({
showPosko: {
type: Boolean,
default: true
}
periode: props.periode
})
watch(data.value, (value) => {

View File

@ -1199,7 +1199,7 @@ const getDetail = async () => {
const dateValue = filters.value.periode.split(' s/d ')
const selected = dataSelected.value
let query = {
var query = {
dateFrom: dateValue[0]
? dateValue[0].split('-').reverse().join('-')
: new Date().toISOString().slice(0, 10),
@ -1210,7 +1210,7 @@ const getDetail = async () => {
idUid: 0,
idUp3: 0,
namaRegional: '',
tipeWo: requirementData.value?.woType ? requirementData.value?.woType : '',
tipeWo: requirementData.value?.woType ? requirementData.value?.woType : 0,
rekomendasiSistem: requirementData.value?.rekomendasiSistem
? requirementData.value?.rekomendasiSistem == 1
? 'Mendatangkan Petugas'
@ -1247,7 +1247,7 @@ const getDetail = async () => {
idUid: selected?.id_uid ? selected?.id_uid : 0,
idUp3: selected?.id_up3 ? selected?.id_up3 : 0,
namaRegional: selected?.nama_regional ? selected?.nama_regional : '',
tipeWo: requirementData.value?.woType ? requirementData.value?.woType : '',
tipeWo: requirementData.value?.woType ? requirementData.value?.woType : 0,
rekomendasiSistem: requirementData.value?.rekomendasiSistem
? requirementData.value?.rekomendasiSistem == 1
? 'Mendatangkan Petugas'

View File

@ -364,10 +364,6 @@ import { queries, requestGraphQl } from '@/utils/api/api.graphql'
import { exportToPDF, exportToXLSX, exportToDOCX } from '@/report/Gangguan/Daftar/DGangguan_DKPL'
import BufferDialog from '@/components/Dialogs/BufferDialog.vue'
const position = { of: '#dataTable' }
const showIndicator = ref(true)
const shading = ref(true)
const showPane = ref(true)
const data = ref<any[]>([])
const dataSelected = ref<any>()
const dialogDetail = ref(false)

View File

@ -589,6 +589,12 @@
{{ data.text }}
</p>
</template>
<template #formatTime="{ data }">
<p class="!text-right">
{{ parseInt(data.text) ? formatWaktu(data.text) : '-' }}
</p>
</template>
</DxDataGrid>
</div>
</div>

View File

@ -1,10 +1,5 @@
<script setup lang="ts">
interface DataItem {
id: any
name: any
}
import { ref, computed, watch } from 'vue'
import { ref, computed } from 'vue'
import { RichSelect } from '@flavorly/vanilla-components'
const props = defineProps({
@ -13,11 +8,11 @@ const props = defineProps({
default: '0'
},
data: {
type: Array as () => DataItem[],
type: Array as () => any[],
default: []
},
selected: {
type: Object as () => DataItem,
type: Object as () => any,
default: () => ({ id: 0, name: '' })
},
indexSelected: {