diff --git a/src/components/SearchHigh/src/SearchHigh.vue b/src/components/SearchHigh/src/SearchHigh.vue index 40ad186f9..ce55279e5 100644 --- a/src/components/SearchHigh/src/SearchHigh.vue +++ b/src/components/SearchHigh/src/SearchHigh.vue @@ -245,6 +245,7 @@ const moreListPush = () => { moreListData.value.filters.push(data) } +const lastestType = ref('') // 筛选条件改变重置其他项 const resetSelect = (val) => { if (getInputType(val.column) == 'datePicker' || getInputType(val.column) == 'date') { @@ -254,8 +255,11 @@ const resetSelect = (val) => { val.action = 'like' val.disabled = false } - val.value1 = "" - val.value = "" + if(lastestType.value&&lastestType.value!=getInputType(val.column)){ + val.value1 = "" + val.value = "" + } + lastestType.value = getInputType(val.column) } // 范围改变 const actionSelect = (val)=>{ @@ -264,11 +268,11 @@ const actionSelect = (val)=>{ }else{ val.disabled = false } - val.value1 = undefined - nextTick(()=>{ - val.value1 =[] - val.value = '' - }) + // val.value1 = undefined + // nextTick(()=>{ + // val.value1 =[] + // val.value = '' + // }) }