File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,11 @@ export default {
1111
1212 localLoading : false ,
1313 localDataSource : [ ] ,
14- localPagination : Object . assign ( { } , this . pagination )
14+ localPagination : Object . assign ( { } , this . pagination ) ,
15+
16+ // 存储表格onchange时的filters, sorter对象
17+ filters : { } ,
18+ sorter : { }
1519 }
1620 } ,
1721 props : Object . assign ( { } , T . props , {
@@ -135,7 +139,10 @@ export default {
135139 * @param {Object } filters 过滤条件
136140 * @param {Object } sorter 排序条件
137141 */
138- loadData ( pagination , filters , sorter ) {
142+ loadData ( pagination , filters = this . filters , sorter = this . sorter ) {
143+ this . filters = filters
144+ this . sorter = sorter
145+
139146 this . localLoading = true
140147 const parameter = Object . assign ( {
141148 pageNo : ( pagination && pagination . current ) ||
You can’t perform that action at this time.
0 commit comments