Browse Source

HL-5812 全局筛选切换筛选条件和操作符时,如切换后的筛选条件和原类型输入方式相同时保持数据输入字段内容不清空

hella_online_20240904
yufei_wang 3 months ago
parent
commit
722e5cda6b
  1. 18
      src/components/SearchHigh/src/SearchHigh.vue

18
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 = ''
// })
}

Loading…
Cancel
Save