mirror of
https://github.com/dataease/dataease.git
synced 2026-05-16 14:31:00 +08:00
fix(仪表板): 过滤组件时间筛选范围-区间类型设置为开始于时,被选项中的范围不正确
This commit is contained in:
@@ -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') {
|
||||
|
||||
Reference in New Issue
Block a user