fix(查询组件): 数值区间规则缺失一个最大或最小值则提示异常

This commit is contained in:
dataeaseShu 2024-11-05 14:16:57 +08:00
parent a92d6daf1a
commit 44c8b86109

View File

@ -564,6 +564,15 @@ const queryData = () => {
requiredName = next.name
}
}
if (next.displayType === '22') {
if (
[next.numValueEnd, next.numValueStart].filter(itx => ![null, undefined, ''].includes(itx))
.length === 1
) {
requiredName = next.name
}
}
const keyList = Object.entries(next.checkedFieldsMap)
.filter(ele => next.checkedFields.includes(ele[0]))
.filter(ele => !!ele[1])