fix: load more not working when between filter is applied
This commit is contained in:
parent
8f95d97c79
commit
1622410d74
@ -105,8 +105,8 @@ export default {
|
|||||||
Popover,
|
Popover,
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
const fromDate = this.value ? this.value.split(',')[0] : ''
|
const fromDate = this.value ? this.value[0] : ''
|
||||||
const toDate = this.value ? this.value.split(',')[1] : ''
|
const toDate = this.value ? this.value[1] : ''
|
||||||
return {
|
return {
|
||||||
currentYear: null,
|
currentYear: null,
|
||||||
currentMonth: null,
|
currentMonth: null,
|
||||||
|
|||||||
@ -182,13 +182,6 @@ function convertFilters(data, allFilters) {
|
|||||||
value = ['equals', value[1] ? 'Yes' : 'No']
|
value = ['equals', value[1] ? 'Yes' : 'No']
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// if (value[0] === 'LIKE' || value[0] === 'NOT LIKE') {
|
|
||||||
// value[1] = value[1].replace(/%/g, '')
|
|
||||||
// }
|
|
||||||
|
|
||||||
if (value[0] === 'between' && Array.isArray(value[1])) {
|
|
||||||
value[1] = value[1].join(',')
|
|
||||||
}
|
|
||||||
|
|
||||||
if (field) {
|
if (field) {
|
||||||
f.push({
|
f.push({
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user