forked from github/dataease
Merge pull request #9177 from dataease/pr@dev-v2_bug_fix
fix(仪表板): 修复文本搜索的精确匹配无效的问题
This commit is contained in:
commit
811dfa4e21
@ -293,12 +293,11 @@ const delQueryConfig = index => {
|
||||
|
||||
const resetData = () => {
|
||||
;(list.value || []).reduce((pre, next) => {
|
||||
if (next.defaultConditionValueF?.length) {
|
||||
next.conditionValueF = next.defaultConditionValueF
|
||||
}
|
||||
if (next.defaultConditionValueS?.length) {
|
||||
next.conditionValueOperatorF = next.defaultConditionValueOperatorF
|
||||
next.conditionValueS = next.defaultConditionValueS
|
||||
}
|
||||
next.conditionValueOperatorS = next.defaultConditionValueOperatorS
|
||||
|
||||
if (!next.defaultValueCheck) {
|
||||
next.defaultValue = next.multiple || +next.displayType === 7 ? [] : undefined
|
||||
}
|
||||
|
@ -154,7 +154,7 @@ const getOperator = (
|
||||
const operatorS = firstLoad ? defaultConditionValueOperatorS : conditionValueOperatorS
|
||||
if (displayType === '8') {
|
||||
if (conditionType === 0) {
|
||||
return defaultConditionValueOperatorF
|
||||
return operatorF
|
||||
}
|
||||
const operatorArr = [valueF === '' ? '' : operatorF, valueS === '' ? '' : operatorS].filter(
|
||||
ele => ele !== ''
|
||||
|
Loading…
Reference in New Issue
Block a user