@@ -85,6 +85,10 @@ export default {
8585 pageNo : val
8686 } )
8787 } )
88+ // change pagination, reset total data
89+ this . needTotalList = this . initTotalList ( this . columns )
90+ this . selectedRowKeys = [ ]
91+ this . selectedRows = [ ]
8892 } ,
8993 pageNum ( val ) {
9094 Object . assign ( this . localPagination , {
@@ -110,7 +114,6 @@ export default {
110114 pageSize : this . pageSize ,
111115 showSizeChanger : this . showSizeChanger
112116 } ) || false
113- console . log ( 'this.localPagination' , this . localPagination )
114117 this . needTotalList = this . initTotalList ( this . columns )
115118 this . loadData ( )
116119 } ,
@@ -149,7 +152,6 @@ export default {
149152 ...filters
150153 }
151154 )
152- console . log ( 'parameter' , parameter )
153155 const result = this . data ( parameter )
154156 // 对接自己的通用数据接口需要修改下方代码中的 r.pageNo, r.totalCount, r.data
155157 // eslint-disable-next-line
@@ -178,7 +180,6 @@ export default {
178180 } catch ( e ) {
179181 this . localPagination = false
180182 }
181- console . log ( 'loadData -> this.localPagination' , this . localPagination )
182183 this . localDataSource = r . data // 返回结果中的数组数据
183184 this . localLoading = false
184185 } )
@@ -280,7 +281,6 @@ export default {
280281 if ( k === 'rowSelection' ) {
281282 if ( showAlert && this . rowSelection ) {
282283 // 如果需要使用alert,则重新绑定 rowSelection 事件
283- console . log ( 'this.rowSelection' , this . rowSelection )
284284 props [ k ] = {
285285 ...this . rowSelection ,
286286 selectedRows : this . selectedRows ,
0 commit comments