web: fix start/stop date
This commit is contained in:
parent
b9cb7ee1c0
commit
f0b650f4e3
1 changed files with 20 additions and 5 deletions
|
@ -44,18 +44,31 @@
|
||||||
label="Start Date (optional)"
|
label="Start Date (optional)"
|
||||||
variant="outlined"
|
variant="outlined"
|
||||||
v-model="addStartDate"
|
v-model="addStartDate"
|
||||||
|
readonly
|
||||||
>
|
>
|
||||||
</v-text-field>
|
</v-text-field>
|
||||||
</template>
|
</template>
|
||||||
<v-date-picker
|
<v-date-picker
|
||||||
v-modle="addStartDate"
|
v-model="addStartDate"
|
||||||
></v-date-picker>
|
></v-date-picker>
|
||||||
</v-menu>
|
</v-menu>
|
||||||
</div>
|
</div>
|
||||||
<div class="mb-5">
|
<div class="mb-5">
|
||||||
<v-btn stacked variant="outlined">
|
<v-menu>
|
||||||
<CalendarX/>
|
<template v-slot:activator="{ props }">
|
||||||
</v-btn>
|
<v-text-field
|
||||||
|
v-bind="props"
|
||||||
|
label="Start Date (optional)"
|
||||||
|
variant="outlined"
|
||||||
|
v-model="addStopDate"
|
||||||
|
readonly
|
||||||
|
>
|
||||||
|
</v-text-field>
|
||||||
|
</template>
|
||||||
|
<v-date-picker
|
||||||
|
v-model="addStopDate"
|
||||||
|
></v-date-picker>
|
||||||
|
</v-menu>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<v-text-field
|
<v-text-field
|
||||||
|
@ -140,7 +153,9 @@ const addAmount = ref('');
|
||||||
const addNotes = ref('');
|
const addNotes = ref('');
|
||||||
|
|
||||||
// Date Picker
|
// Date Picker
|
||||||
const addStartDate = ref(new Date().toISOString().substr(0, 10));
|
//this fucked it up somehow: new Date().toISOString().substr(0, 10)
|
||||||
|
const addStartDate = ref();
|
||||||
|
const addStopDate = ref();
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue