Merge pull request #13623 from dataease/pr@dev-v2_st

fix(查询组件): 查询条件时间范围设置时间筛选范围后,限制单次查询最多3日,但是实际渲染的范围控件上 只限制了向后选择,向前还是能跨越…
This commit is contained in:
fit2cloud-chenyw 2024-11-28 10:14:15 +08:00 committed by GitHub
commit 5e5070226d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -268,7 +268,13 @@ const disabledDate = val => {
.startOf(queryTimeType.value)
.valueOf() -
1000 <
timeStamp
timeStamp ||
dayjs(startWindowTime.value)
.subtract(maximumSingleQuery, queryTimeType.value)
.startOf(queryTimeType.value)
.valueOf() +
1000 >
timeStamp
}
if (intervalType === 'none') {
if (dynamicWindow) return isDynamicWindowTime