Commit 753143dc by 胡悦

修改表格分页问题

1 parent 4e8d8dd6
...@@ -266,15 +266,16 @@ export default { ...@@ -266,15 +266,16 @@ export default {
// 发布事件,以期查询条件改变后,页面图表需要刷新 // 发布事件,以期查询条件改变后,页面图表需要刷新
refreshEmit() { refreshEmit() {
this.$emit('searchChange') this.$emit('searchChange')
this.refreshTable() this.refreshTable(true, true)
}, },
refreshTable(clearMuti = true) { refreshTable(clearMuti = true, resetCurrentPage = false) {
this.beforeSearchFn().then(res => { this.beforeSearchFn().then(res => {
// 清空多选 // 清空多选
clearMuti && this.clearMutiSelect() clearMuti && this.clearMutiSelect()
this.loading = true this.loading = true
console.log(this.searchForm) console.log(this.searchForm)
resetCurrentPage && (this.page.pageNumber = 1)
var params = { var params = {
...this.page, ...this.page,
...this.searchForm ...this.searchForm
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!