fix(仪表板): 过滤组件时间筛选范围-区间类型设置为开始于时,被选项中的范围不正确

This commit is contained in:
dataeaseShu
2025-10-14 14:03:11 +08:00
committed by dataeaseShu
parent 80b6a675b4
commit ddb73272a1

View File

@@ -345,7 +345,10 @@ const disabledDate = val => {
const startValue = regularOrTrends === 'fixed' ? regularOrTrendsValue : startTime
if (intervalType === 'start') {
return timeStamp < +new Date(startValue) || isDynamicWindowTime
return (
timeStamp < +new Date(dayjs(startValue).startOf('day').format('YYYY/MM/DD HH:mm:ss')) ||
isDynamicWindowTime
)
}
if (intervalType === 'end') {