|
|
@ -200,10 +200,28 @@ const handlePoint = async (row) => { |
|
|
|
|
|
|
|
// 筛选提交 |
|
|
|
const searchFormClick = (searchData) => { |
|
|
|
tableObject.params = { |
|
|
|
isSearch: true, |
|
|
|
filters: searchData.filters |
|
|
|
tableObject.params.isSearch = true |
|
|
|
console.log('searchData',searchData.filters); |
|
|
|
if(!searchData.filters){//重置的时候应用 |
|
|
|
searchData.filters = [] |
|
|
|
} |
|
|
|
let filters = [...searchData.filters] |
|
|
|
if(!filters.find(item=>item.column=='business_type')){ |
|
|
|
if ( routeName.value == 'DeliverRecordMain') { |
|
|
|
filters = [...filters,{ |
|
|
|
action:'==', |
|
|
|
column:'business_type', |
|
|
|
value:'Deliver', |
|
|
|
}] |
|
|
|
} else if ( routeName.value == 'ZZBJDeliverRecordMain') { |
|
|
|
filters = [...filters,{ |
|
|
|
action:'==', |
|
|
|
column:'business_type', |
|
|
|
value:'ZZBJDeliver', |
|
|
|
}] |
|
|
|
} |
|
|
|
} |
|
|
|
tableObject.params.filters = filters |
|
|
|
getList() // 刷新当前列表 |
|
|
|
} |
|
|
|
|
|
|
|