Browse Source

筛选接口传value为空问题的代码维护

hella_online_20240828
wangyufei 3 months ago
parent
commit
a69c8c46f2
  1. 13
      src/components/BasicForm/src/BasicForm.vue

13
src/components/BasicForm/src/BasicForm.vue

@ -537,11 +537,14 @@ const opensearchTable = (
return
}
}
filters.push({
action: searchCondition[i].action,
column: searchCondition[i].key,
value: formRef.value.formModel[searchCondition[i].value]
})
if(formRef.value.formModel[searchCondition[i].value]){
filters.push({
action: searchCondition[i].action,
column: searchCondition[i].key,
value: formRef.value.formModel[searchCondition[i].value]
})
}
} else {
filters.push({
action: searchCondition[i].action,

Loading…
Cancel
Save