|
@ -486,10 +486,20 @@ const importSuccess = () => { |
|
|
|
|
|
|
|
|
// 筛选提交 |
|
|
// 筛选提交 |
|
|
const searchFormClick = (searchData) => { |
|
|
const searchFormClick = (searchData) => { |
|
|
tableObject.params = { |
|
|
tableObject.params.isSearch = true |
|
|
isSearch: true, |
|
|
if(!searchData.filters){//重置的时候应用 |
|
|
filters: 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() // 刷新当前列表 |
|
|
getList() // 刷新当前列表 |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|