|
@ -200,10 +200,28 @@ const handlePoint = async (row) => { |
|
|
|
|
|
|
|
|
// 筛选提交 |
|
|
// 筛选提交 |
|
|
const searchFormClick = (searchData) => { |
|
|
const searchFormClick = (searchData) => { |
|
|
tableObject.params = { |
|
|
tableObject.params.isSearch = true |
|
|
isSearch: true, |
|
|
console.log('searchData',searchData.filters); |
|
|
filters: 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() // 刷新当前列表 |
|
|
getList() // 刷新当前列表 |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|