fix: date range
This commit is contained in:
parent
729aa7d4cc
commit
d6dd1fc0e3
1 changed files with 10 additions and 2 deletions
|
@ -1,5 +1,13 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="is-max-width-desktop show-tasks">
|
<div class="is-max-width-desktop show-tasks">
|
||||||
|
<fancycheckbox
|
||||||
|
@change="setDate"
|
||||||
|
class="is-pulled-right"
|
||||||
|
v-if="!showAll"
|
||||||
|
v-model="showNulls"
|
||||||
|
>
|
||||||
|
{{ $t('task.show.noDates') }}
|
||||||
|
</fancycheckbox>
|
||||||
<h3 class="mb-2">
|
<h3 class="mb-2">
|
||||||
{{ pageTitle }}
|
{{ pageTitle }}
|
||||||
</h3>
|
</h3>
|
||||||
|
@ -157,12 +165,12 @@ export default {
|
||||||
}
|
}
|
||||||
|
|
||||||
params.filter_by.push('due_date')
|
params.filter_by.push('due_date')
|
||||||
params.filter_value.push(this.dateFrom)
|
params.filter_value.push(this.dateTo)
|
||||||
params.filter_comparator.push('less')
|
params.filter_comparator.push('less')
|
||||||
|
|
||||||
if (!this.showOverdue) {
|
if (!this.showOverdue) {
|
||||||
params.filter_by.push('due_date')
|
params.filter_by.push('due_date')
|
||||||
params.filter_value.push(this.dateTo)
|
params.filter_value.push(this.dateFrom)
|
||||||
params.filter_comparator.push('greater')
|
params.filter_comparator.push('greater')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue