fix: 所有过滤器在存在查询按钮场景切换全屏查询失败
This commit is contained in:
parent
446d3224f5
commit
b2aec20462
@ -72,7 +72,7 @@ class NumberRangeServiceImpl extends WidgetService {
|
||||
if (val === null || val === '' || typeof val === 'undefined') {
|
||||
values = element.options.value
|
||||
} else {
|
||||
values = val.split(',')
|
||||
values = Array.isArray(val) ? val : val.split(',')
|
||||
}
|
||||
if (values && values.length > 0) {
|
||||
const min = values[0]
|
||||
|
||||
@ -87,7 +87,7 @@ class NumberSelectGridServiceImpl extends WidgetService {
|
||||
if (val === null || val === '' || typeof val === 'undefined') {
|
||||
value = this.fillValueDerfault(element)
|
||||
} else {
|
||||
value = [val]
|
||||
value = Array.isArray(val) ? val : val.split(',')
|
||||
}
|
||||
const param = {
|
||||
component: element,
|
||||
|
||||
@ -89,7 +89,7 @@ class NumberSelectServiceImpl extends WidgetService {
|
||||
if (val === null || val === '' || typeof val === 'undefined') {
|
||||
value = this.fillValueDerfault(element)
|
||||
} else {
|
||||
value = [val]
|
||||
value = Array.isArray(val) ? val : val.split(',')
|
||||
}
|
||||
const param = {
|
||||
component: element,
|
||||
|
||||
@ -73,7 +73,7 @@ class TextInputServiceImpl extends WidgetService {
|
||||
if (!val) {
|
||||
value = this.fillValueDerfault(element)
|
||||
} else {
|
||||
value = [val]
|
||||
value = Array.isArray(val) ? val : val.split(',')
|
||||
}
|
||||
const param = {
|
||||
component: element,
|
||||
|
||||
@ -88,7 +88,7 @@ class TextSelectGridServiceImpl extends WidgetService {
|
||||
if (!val) {
|
||||
value = this.fillValueDerfault(element)
|
||||
} else {
|
||||
value = [val]
|
||||
value = Array.isArray(val) ? val : val.split(',')
|
||||
}
|
||||
const param = {
|
||||
component: element,
|
||||
|
||||
@ -92,7 +92,7 @@ class TextSelectServiceImpl extends WidgetService {
|
||||
if (!val) {
|
||||
value = this.fillValueDerfault(element)
|
||||
} else {
|
||||
value = [val]
|
||||
value = Array.isArray(val) ? val : val.split(',')
|
||||
}
|
||||
const param = {
|
||||
component: element,
|
||||
|
||||
@ -91,7 +91,7 @@ class TextSelectTreeServiceImpl extends WidgetService {
|
||||
if (!val) {
|
||||
value = this.fillValueDerfault(element)
|
||||
} else {
|
||||
value = [val]
|
||||
value = Array.isArray(val) ? val : val.split(',')
|
||||
}
|
||||
const param = {
|
||||
component: element,
|
||||
|
||||
@ -313,7 +313,7 @@ class TimeDateRangeServiceImpl extends WidgetService {
|
||||
getParam(element, val) {
|
||||
let timeArr = []
|
||||
if (val) {
|
||||
let value = [val]
|
||||
let value = Array.isArray(val) ? val : val.split(',')
|
||||
value = this.formatFilterValue(value)
|
||||
timeArr = this.formatValues(value, element)
|
||||
} else if (element.options.attrs.default && element.options.attrs.default.isDynamic) {
|
||||
|
||||
@ -170,7 +170,7 @@ class TimeDateServiceImpl extends WidgetService {
|
||||
getParam(element, val) {
|
||||
let timeArr = []
|
||||
if (val) {
|
||||
let value = [val]
|
||||
let value = Array.isArray(val) ? val : val.split(',')
|
||||
value = this.formatFilterValue(value)
|
||||
timeArr = this.formatValues(value, element)
|
||||
} else if (element.options.attrs.default && element.options.attrs.default.isDynamic) {
|
||||
|
||||
@ -131,7 +131,7 @@ class TimeMonthServiceImpl extends WidgetService {
|
||||
getParam(element, val) {
|
||||
let timeArr = []
|
||||
if (val) {
|
||||
let value = [val]
|
||||
let value = Array.isArray(val) ? val : val.split(',')
|
||||
value = this.formatFilterValue(value)
|
||||
timeArr = this.formatValues(value, element)
|
||||
} else if (element.options.attrs.default && element.options.attrs.default.isDynamic) {
|
||||
|
||||
@ -118,7 +118,7 @@ class TimeYearServiceImpl extends WidgetService {
|
||||
getParam(element, val) {
|
||||
let timeArr = []
|
||||
if (val) {
|
||||
let value = [val]
|
||||
let value = Array.isArray(val) ? val : val.split(',')
|
||||
value = this.formatFilterValue(value)
|
||||
timeArr = this.formatValues(value, element)
|
||||
} else if (element.options.attrs.default && element.options.attrs.default.isDynamic) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user