|
|
@ -126,8 +126,16 @@ const buttonBaseClick = (val, item) => { |
|
|
|
} else if (val == 'export') { // 导出 |
|
|
|
handleExport() |
|
|
|
} else if (val == 'refresh') { // 刷新 |
|
|
|
// if (tableObject.params.filters && tableObject.params.filters.length > 0 ) { |
|
|
|
// searchFormClick({ |
|
|
|
// filters: tableObject.params.filters |
|
|
|
// }) |
|
|
|
// } else { |
|
|
|
// getList() |
|
|
|
// } |
|
|
|
getList() |
|
|
|
} else if (val == 'filtrate') { // 筛选 |
|
|
|
|
|
|
|
} else { // 其他按钮 |
|
|
|
console.log('其他按钮', item) |
|
|
|
} |
|
|
@ -257,12 +265,15 @@ const importSuccess = () => { |
|
|
|
} |
|
|
|
|
|
|
|
// 筛选提交 |
|
|
|
const searchFormClick = (searchData) => { |
|
|
|
const searchFormClick = async (searchData) => { |
|
|
|
tableObject.params = { |
|
|
|
isSearch: true, |
|
|
|
filters: searchData.filters |
|
|
|
} |
|
|
|
getList() // 刷新当前列表 |
|
|
|
|
|
|
|
//await getList() |
|
|
|
//console.log('searchFormClick',tableObject.tableList ) |
|
|
|
// 刷新当前列表 |
|
|
|
} |
|
|
|
|
|
|
|
/** 初始化 **/ |
|
|
|