diff --git a/src/components/Form/FiltersType/Type18.vue b/src/components/Form/FiltersType/Type18.vue new file mode 100644 index 0000000..6bf4d78 --- /dev/null +++ b/src/components/Form/FiltersType/Type18.vue @@ -0,0 +1,47 @@ + + + \ No newline at end of file diff --git a/src/components/Form/FiltersType/Type6.vue b/src/components/Form/FiltersType/Type6.vue index f622d52..4dd4293 100644 --- a/src/components/Form/FiltersType/Type6.vue +++ b/src/components/Form/FiltersType/Type6.vue @@ -1,8 +1,16 @@ diff --git a/src/components/Form/FiltersType/Type7.vue b/src/components/Form/FiltersType/Type7.vue index eaa7dc1..fb5e817 100644 --- a/src/components/Form/FiltersType/Type7.vue +++ b/src/components/Form/FiltersType/Type7.vue @@ -2,6 +2,39 @@ import Select from '@/components/Select.vue' import DatePicker from '@/components/DatePicker.vue' import InputWithSuffix from '../InputWithSuffix.vue'; +import { useTotalDuration } from '@/stores/totalDuration'; +import { ref } from 'vue'; + const data = [ + + { + id : 1, + name : 'Dibawah / Sesuai SLA (<= 45 menit)' + }, + { + id : 2, + name : 'Melebihi SLA (> 45 menit)' + } + + ] + const triggerInput = ref(false) + const changeDuration = (value: any) => { + if(value.id === 0 ){ + console.log('Durasi Menit') + useTotalDuration().setDataMin(0) + useTotalDuration().setDataMax(5) + triggerInput.value = false + }else if(value.id === 1){ + useTotalDuration().setDataMin(0) + useTotalDuration().setDataMax(45) + console.log('Dibawah / Sesuai SLA (<= 45 menit)') + triggerInput.value = true + }else{ + useTotalDuration().setDataMin(46) + useTotalDuration().setDataMax(7*60*24) + triggerInput.value = true + console.log('Melebihi SLA (> 45 menit)') + } + }