Browse Source

基础form组件修改完善 查询条件 不满足条件列表展现要空而非全部数据

master
陈薪名 1 year ago
parent
commit
49d5ea2ade
  1. 5
      src/components/BasicForm/src/BasicForm.vue

5
src/components/BasicForm/src/BasicForm.vue

@ -181,14 +181,15 @@ const opensearchTable = (
let filters:any[] = [] let filters:any[] = []
searchCondition.forEach((item) => { searchCondition.forEach((item) => {
// row // row
// 20231127 row[item.value]?row[item.value] row?row[item.value] 'null'
if (item.isMainValue) { if (item.isMainValue) {
_searchCondition[item.key] = formRef.value.formModel[item.value] _searchCondition[item.key] = formRef.value.formModel[item.value]
? formRef.value.formModel[item.value] ? formRef.value.formModel[item.value]
: props.detailData : props.detailData
? props.detailData[item.value] ? props.detailData[item.value]
: row[item.value] : row
? row[item.value] ? row[item.value]
: '' : 'null'
} else { } else {
// //
if (item.isSearch) { if (item.isSearch) {

Loading…
Cancel
Save