Browse Source

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

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

15
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) {
@ -180,10 +182,23 @@ const opensearchTable = (
: row[item.value]
? row[item.value]
: ''
} else {
//
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