fix: 所有过滤器在存在查询按钮场景切换全屏查询失败

This commit is contained in:
fit2cloud-chenyw 2023-12-29 15:36:21 +08:00
parent 446d3224f5
commit b2aec20462
11 changed files with 11 additions and 11 deletions

View File

@ -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]

View File

@ -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,

View File

@ -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,

View File

@ -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,

View File

@ -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,

View File

@ -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,

View File

@ -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,

View File

@ -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) {

View File

@ -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) {

View File

@ -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) {

View File

@ -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) {