Refactor filters and input validation

This commit is contained in:
kur0nek-o
2024-03-01 15:08:42 +07:00
parent c1b4443906
commit 91e01ca8de
5 changed files with 201 additions and 112 deletions

View File

@ -1,6 +1,22 @@
<template>
<Filters @reset-form="data = []" @run-search="() => filterData(filters)" class="mb-4">
<Type7 @update:filters="(value) => (filters = value)" />
<Type7
@update:filters="(value) => (filters = value)"
:sla-options="[
{
id: 1,
name: 'Dibawah / Sesuai SLA (<= 3 Jam)',
min: '1',
max: '180'
},
{
id: 2,
name: 'Melebihi SLA (> 3 Jam)',
min: '1',
max: `${99999 * 60 * 24}`
}
]"
/>
</Filters>
<div id="data">