fix(查询组件): ios兼容性问题修复

This commit is contained in:
dataeaseShu
2025-12-24 14:59:17 +08:00
committed by dataeaseShu
parent 78f992141a
commit d6b7e3c784

View File

@@ -19,12 +19,12 @@ const getDynamicRangeTime = (type: number, selectValue: any, timeGranularityMult
+new Date(
dayjs(selectValue[0])
.startOf(timeType as 'month' | 'year' | 'date')
.format('YYYY-MM-DD HH:mm:ss')
.format('YYYY/MM/DD HH:mm:ss')
),
+new Date(
dayjs(selectValue[1])
.endOf(timeType as 'month' | 'year' | 'date')
.format('YYYY-MM-DD HH:mm:ss')
.format('YYYY/MM/DD HH:mm:ss')
)
]
}
@@ -451,6 +451,9 @@ export const searchQuery = (queryComponentList, filter, curComponentId, firstLoa
displayId
)
}
console.log(selectValue, item, 'item')
if (
!!selectValue?.length ||
['[object Number]', '[object Date]'].includes(