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 = () => {
|
const resetData = () => {
|
||||||
;(list.value || []).reduce((pre, next) => {
|
;(list.value || []).reduce((pre, next) => {
|
||||||
if (next.defaultConditionValueF?.length) {
|
|
||||||
next.conditionValueF = next.defaultConditionValueF
|
next.conditionValueF = next.defaultConditionValueF
|
||||||
}
|
next.conditionValueOperatorF = next.defaultConditionValueOperatorF
|
||||||
if (next.defaultConditionValueS?.length) {
|
|
||||||
next.conditionValueS = next.defaultConditionValueS
|
next.conditionValueS = next.defaultConditionValueS
|
||||||
}
|
next.conditionValueOperatorS = next.defaultConditionValueOperatorS
|
||||||
|
|
||||||
if (!next.defaultValueCheck) {
|
if (!next.defaultValueCheck) {
|
||||||
next.defaultValue = next.multiple || +next.displayType === 7 ? [] : undefined
|
next.defaultValue = next.multiple || +next.displayType === 7 ? [] : undefined
|
||||||
}
|
}
|
||||||
|
@ -154,7 +154,7 @@ const getOperator = (
|
|||||||
const operatorS = firstLoad ? defaultConditionValueOperatorS : conditionValueOperatorS
|
const operatorS = firstLoad ? defaultConditionValueOperatorS : conditionValueOperatorS
|
||||||
if (displayType === '8') {
|
if (displayType === '8') {
|
||||||
if (conditionType === 0) {
|
if (conditionType === 0) {
|
||||||
return defaultConditionValueOperatorF
|
return operatorF
|
||||||
}
|
}
|
||||||
const operatorArr = [valueF === '' ? '' : operatorF, valueS === '' ? '' : operatorS].filter(
|
const operatorArr = [valueF === '' ? '' : operatorF, valueS === '' ? '' : operatorS].filter(
|
||||||
ele => ele !== ''
|
ele => ele !== ''
|
||||||
|
Loading…
Reference in New Issue
Block a user