Update package.json and component files

This commit is contained in:
Dede Fuji Abdul
2024-04-02 22:40:06 +07:00
parent 3aa2540de4
commit ef7feaa17e
6 changed files with 40 additions and 20 deletions

View File

@ -3,7 +3,8 @@
"version": "0.0.1", "version": "0.0.1",
"private": true, "private": true,
"scripts": { "scripts": {
"dev": "vite --host", "dev": "vite",
"host": "vite --host",
"tailwind": "tailwindcss -i ./src/assets/css/tailwind.css -o ./src/assets/css/style.css --watch", "tailwind": "tailwindcss -i ./src/assets/css/tailwind.css -o ./src/assets/css/style.css --watch",
"build": "run-p type-check build-only", "build": "run-p type-check build-only",
"preview": "vite preview --host", "preview": "vite preview --host",

View File

@ -6,9 +6,9 @@ interface SlaOption {
max: string max: string
} }
import Select from '@/components/Select.vue'; import Select from '@/components/Select.vue'
import DatePicker from '@/components/DatePicker.vue'; import DatePicker from '@/components/DatePicker.vue'
import InputWithSuffix from '../InputWithSuffix.vue'; import InputWithSuffix from '../InputWithSuffix.vue'
import { import {
selectedUid, selectedUid,
selectedUp3Posko, selectedUp3Posko,
@ -17,8 +17,8 @@ import {
itemsUid, itemsUid,
itemsUp3, itemsUp3,
itemsPosko itemsPosko
} from './reference'; } from './reference'
import { onMounted, ref, watch } from 'vue'; import { onMounted, ref, watch } from 'vue'
const props = defineProps({ const props = defineProps({
slaOptions: { slaOptions: {
@ -27,7 +27,7 @@ const props = defineProps({
{ {
id: 1, id: 1,
name: 'Dibawah / Sesuai SLA (<= 45 menit)', name: 'Dibawah / Sesuai SLA (<= 45 menit)',
min: '1', min: '0',
max: '45' max: '45'
}, },
{ {
@ -143,14 +143,23 @@ onMounted(() => {
<div class="flex flex-col flex-1 space-y-2"> <div class="flex flex-col flex-1 space-y-2">
<label class="filter-input-label">Unit Pelaksanaan Pelayanan Pelanggan:</label> <label class="filter-input-label">Unit Pelaksanaan Pelayanan Pelanggan:</label>
<Select @update:selected="setUp3($event)" :data="itemsUp3" :selected="up3" :placeholder="up3Placeholder" /> <Select
@update:selected="setUp3($event)"
:data="itemsUp3"
:selected="up3"
:placeholder="up3Placeholder"
/>
</div> </div>
<div class="flex flex-col flex-1 space-y-2"> <div class="flex flex-col flex-1 space-y-2">
<label class="filter-input-label">Posko:</label> <label class="filter-input-label">Posko:</label>
<Select @update:selected="setPosko($event)" :data="itemsPosko" :selected="posko" <Select
:placeholder="poskoPlaceholder" /> @update:selected="setPosko($event)"
:data="itemsPosko"
:selected="posko"
:placeholder="poskoPlaceholder"
/>
</div> </div>
<div class="flex flex-col flex-1 space-y-2"> <div class="flex flex-col flex-1 space-y-2">
@ -166,12 +175,19 @@ onMounted(() => {
<Select @update:selected="changeDuration($event)" :data="sla" placeholder="Durasi Menit" /> <Select @update:selected="changeDuration($event)" :data="sla" placeholder="Durasi Menit" />
<div class="flex flex-1 justify-between gap-x-1.5" :class="[isHidden ? 'hidden' : '']"> <div class="flex flex-1 justify-between gap-x-1.5" :class="[isHidden ? 'hidden' : '']">
<InputWithSuffix :value="`${data.minTime} Menit`" @update:text="setMin($event)" class="flex flex-1" /> <InputWithSuffix
:value="`${data.minTime} Menit`"
@update:text="setMin($event)"
class="flex flex-1"
/>
<small class="flex items-center">s/d</small> <small class="flex items-center">s/d</small>
<InputWithSuffix :value="`${data.maxTime} Menit`" @update:text="setMax($event)" class="flex flex-1" /> <InputWithSuffix
:value="`${data.maxTime} Menit`"
@update:text="setMax($event)"
class="flex flex-1"
/>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
</template> </template>

View File

@ -6,7 +6,7 @@
{ {
id: 1, id: 1,
name: 'Dibawah / Sesuai SLA (<= 3 Jam)', name: 'Dibawah / Sesuai SLA (<= 3 Jam)',
min: '1', min: '0',
max: '180' max: '180'
}, },
{ {

View File

@ -6,13 +6,13 @@
{ {
id: 1, id: 1,
name: 'Dibawah / Sesuai SLA (<= 3 hari)', name: 'Dibawah / Sesuai SLA (<= 3 hari)',
min: '1', min: '0',
max: '4381' max: '4320'
}, },
{ {
id: 2, id: 2,
name: 'Melebihi SLA (> 3 hari)', name: 'Melebihi SLA (> 3 hari)',
min: '4382', min: '4321',
max: `${99999 * 60 * 24}` max: `${99999 * 60 * 24}`
} }
]" ]"

View File

@ -6,13 +6,13 @@
{ {
id: 1, id: 1,
name: 'Dibawah / Sesuai SLA (<= 1 hari)', name: 'Dibawah / Sesuai SLA (<= 1 hari)',
min: '1', min: '0',
max: '1501' max: '1440'
}, },
{ {
id: 2, id: 2,
name: 'Melebihi SLA (> 1 hari)', name: 'Melebihi SLA (> 1 hari)',
min: '1502', min: '1441',
max: `${99999 * 60 * 24}` max: `${99999 * 60 * 24}`
} }
]" ]"

View File

@ -1558,6 +1558,9 @@ export const queries = {
max_durasi_recovery max_durasi_recovery
total_dibawah_sla_recovery total_dibawah_sla_recovery
total_diatas_sla_recovery total_diatas_sla_recovery
count_durasi_dispatch
count_durasi_response
count_durasi_recovery
} }
} }
`, `,