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 {
11
11
12
12
localLoading : false ,
13
13
localDataSource : [ ] ,
14
- localPagination : Object . assign ( { } , this . pagination )
14
+ localPagination : Object . assign ( { } , this . pagination ) ,
15
+
16
+ // 存储表格onchange时的filters, sorter对象
17
+ filters : { } ,
18
+ sorter : { }
15
19
}
16
20
} ,
17
21
props : Object . assign ( { } , T . props , {
@@ -135,7 +139,10 @@ export default {
135
139
* @param {Object } filters 过滤条件
136
140
* @param {Object } sorter 排序条件
137
141
*/
138
- loadData ( pagination , filters , sorter ) {
142
+ loadData ( pagination , filters = this . filters , sorter = this . sorter ) {
143
+ this . filters = filters
144
+ this . sorter = sorter
145
+
139
146
this . localLoading = true
140
147
const parameter = Object . assign ( {
141
148
pageNo : ( pagination && pagination . current ) ||
You can’t perform that action at this time.
0 commit comments