|
@ -560,15 +560,21 @@ const importSuccess = () => { |
|
|
const searchFormClick = (searchData) => { |
|
|
const searchFormClick = (searchData) => { |
|
|
tableObject.params.isSearch = true |
|
|
tableObject.params.isSearch = true |
|
|
let filters = [...searchData.filters] |
|
|
let filters = [...searchData.filters] |
|
|
|
|
|
if(!filters.find(item=>item.column=='business_type')){ |
|
|
if ( routeName.value == 'DeliverRequestMain') { |
|
|
if ( routeName.value == 'DeliverRequestMain') { |
|
|
filters = [...filters,{ |
|
|
filters = [...filters,{ |
|
|
businessType: 'Deliver' |
|
|
action:'==', |
|
|
|
|
|
column:'business_type', |
|
|
|
|
|
value:'Deliver', |
|
|
}] |
|
|
}] |
|
|
} else if ( routeName.value == 'ZZBJDeliverRequestMain') { |
|
|
} else if ( routeName.value == 'ZZBJDeliverRequestMain') { |
|
|
filters = [...filters,{ |
|
|
filters = [...filters,{ |
|
|
businessType: 'ZZBJDeliver' |
|
|
action:'==', |
|
|
|
|
|
column:'business_type', |
|
|
|
|
|
value:'ZZBJDeliver', |
|
|
}] |
|
|
}] |
|
|
} |
|
|
} |
|
|
|
|
|
} |
|
|
tableObject.params.filters = filters |
|
|
tableObject.params.filters = filters |
|
|
getList() // 刷新当前列表 |
|
|
getList() // 刷新当前列表 |
|
|
} |
|
|
} |
|
|