|
|
@ -486,10 +486,20 @@ const importSuccess = () => { |
|
|
|
|
|
|
|
// 筛选提交 |
|
|
|
const searchFormClick = (searchData) => { |
|
|
|
tableObject.params = { |
|
|
|
isSearch: true, |
|
|
|
filters: searchData.filters |
|
|
|
tableObject.params.isSearch = true |
|
|
|
if(!searchData.filters){//重置的时候应用 |
|
|
|
searchData.filters = [] |
|
|
|
} |
|
|
|
let filters = [...searchData.filters] |
|
|
|
console.log('searchData',routeName.value); |
|
|
|
if(!filters.find(item=>item.column=='plan_type')){ |
|
|
|
filters = [...filters,{ |
|
|
|
action:'==', |
|
|
|
column:'plan_type', |
|
|
|
value:'assembleSparePart', |
|
|
|
}] |
|
|
|
} |
|
|
|
tableObject.params.filters = filters |
|
|
|
getList() // 刷新当前列表 |
|
|
|
} |
|
|
|
|
|
|
|