Add date filters to UI
This commit is contained in:
parent
d3ca3c87bf
commit
a031dd5bb1
@ -11,6 +11,7 @@ import Modal from "../components/Modal.vue";
|
||||
import Input from "../components/Input.vue";
|
||||
import Checkbox from "../components/Checkbox.vue";
|
||||
import { formatDate } from "../date";
|
||||
import DateInput from "../components/DateInput.vue";
|
||||
import Autocomplete from '../components/Autocomplete.vue'
|
||||
|
||||
defineProps<{
|
||||
@ -37,6 +38,8 @@ const filters = ref({
|
||||
PayeeID: null,
|
||||
Category: null,
|
||||
CategoryID: null,
|
||||
FromDate: null,
|
||||
ToDate: null,
|
||||
});
|
||||
|
||||
watch(() => filters.value.AccountID + filters.value.PayeeID + filters.value.CategoryID, function() {
|
||||
@ -63,13 +66,17 @@ const transactionsList = computed(() => {
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<div class="grid grid-cols-2 w-96">
|
||||
Account:
|
||||
<Autocomplete v-model:text="filters.Account" v-model:id="filters.AccountID" model="accounts" class="inline-block" /><br>
|
||||
Payee:
|
||||
<Autocomplete v-model:text="filters.Payee" v-model:id="filters.PayeeID" model="payees" class="inline-block" /><br>
|
||||
Category:
|
||||
<Autocomplete v-model:text="filters.Category" v-model:id="filters.CategoryID" model="categories" class="inline-block" /><br>
|
||||
From Date:
|
||||
<DateInput v-model="filters.FromDate" class="inline-block" /><br>
|
||||
To Date:
|
||||
<DateInput v-model="filters.ToDate" class="inline-block" />
|
||||
</div>
|
||||
|
||||
<table>
|
||||
|
Loading…
x
Reference in New Issue
Block a user