forked from github/dataease
fix(查询组件): v2.8 文本搜索组件,设置默认值同时设置必填,不能识别默认值报错无选项值 #10853
This commit is contained in:
parent
4b962a4d62
commit
294760e8c3
@ -423,7 +423,17 @@ const queryData = () => {
|
||||
requiredName = next.name
|
||||
}
|
||||
|
||||
if (
|
||||
if (next.displayType === '8') {
|
||||
const { conditionValueF, conditionValueS, conditionType } = next
|
||||
if (conditionType === 0) {
|
||||
requiredName = conditionValueF === '' ? next.name : ''
|
||||
} else {
|
||||
requiredName = [conditionValueF || '', conditionValueS || ''].filter(ele => ele !== '')
|
||||
.length
|
||||
? next.name
|
||||
: ''
|
||||
}
|
||||
} else if (
|
||||
(Array.isArray(next.selectValue) && !next.selectValue.length) ||
|
||||
(next.selectValue !== 0 && !next.selectValue)
|
||||
) {
|
||||
|
Loading…
Reference in New Issue
Block a user