adrema/resources/js/views/member/Filt.vue

33 lines
1.1 KiB
Vue
Raw Normal View History

2021-08-22 05:51:25 +02:00
<template>
<div class="px-6 py-2 flex border-b border-gray-600 space-x-3">
2021-11-19 00:53:19 +01:00
<f-switch v-show="hasModule('bill')" id="ausstand" @input="reload" v-model="value.ausstand" label="Nur Ausstände" size="sm"></f-switch>
<f-select v-show="hasModule('bill')" id="billKinds" @input="reload" :options="billKinds" v-model="value.bill_kind" label="Rechnung" size="sm"></f-select>
<f-select id="activity_id" @input="reload" :options="activities" v-model="value.activity_id" label="Tätigkeit" size="sm"></f-select>
<f-select id="subactivity_id" @input="reload" :options="subactivities" v-model="value.subactivity_id" label="Untertätigkeit" size="sm"></f-select>
2021-08-22 05:51:25 +02:00
</div>
</template>
<script>
import mergesQueryString from '../../mixins/mergesQueryString.js';
export default {
mixins: [mergesQueryString],
props: {
value: {},
billKinds: {},
activities: {},
subactivities: {},
2021-08-22 05:51:25 +02:00
},
methods: {
reload() {
this.$inertia.visit(this.qs({filter: JSON.stringify(this.value)}), {
preserveState: true
});
}
}
};
</script>