Browse Source

配置文件 条件过滤 扩展支持多条件

master
陈薪名 1 year ago
parent
commit
c042959046
  1. 17
      src/components/BasicForm/src/BasicForm.vue

17
src/components/BasicForm/src/BasicForm.vue

@ -170,6 +170,8 @@ const opensearchTable = (
const _searchCondition = {}
//
if (searchCondition && searchCondition.length > 0) {
//
let filters:any[] = []
searchCondition.forEach((item) => {
// row
if (item.isMainValue) {
@ -181,9 +183,22 @@ const opensearchTable = (
? row[item.value]
: ''
} else {
_searchCondition[item.key] = item.value
//
if (item.isSearch) {
filters.push({
action: item.action,
column: item.key,
value: item.value
})
} else {
_searchCondition[item.key] = item.value
}
}
})
if (filters.length > 0) {
_searchCondition.isSearch = true
_searchCondition.filters = filters
}
}
const _searchTableTitle = searchTitle
const _searchTableAllSchemas = searchAllSchemas

Loading…
Cancel
Save