Skip to content

Commit

Permalink
[修复] 修复无法使用服务端分页时排序的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
hpyou authored and rdkmaster committed Jul 17, 2019
1 parent 666c72e commit a057313
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/jigsaw/common/core/data/array-collection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -711,7 +711,7 @@ export class PageableArray extends ArrayCollection<any> implements IServerSidePa
options[paramProperty].filter = this.filterInfo;
}
if (CommonUtils.isDefined(this.sortInfo)) {
options[paramProperty].sortInfo = this.sortInfo;
options[paramProperty].sort = this.sortInfo;
}
if (paramProperty == 'params') {
options.params = PreparedHttpClientOptions.prepareParams(options.params)
Expand Down
2 changes: 1 addition & 1 deletion src/jigsaw/common/core/data/table-data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,7 @@ export class PageableTableData extends TableData implements IServerSidePageable,
options[paramProperty].filter = this.filterInfo;
}
if (CommonUtils.isDefined(this.sortInfo)) {
options[paramProperty].sortInfo = this.sortInfo;
options[paramProperty].sort = this.sortInfo;
}
if (paramProperty == 'params') {
options.params = PreparedHttpClientOptions.prepareParams(options.params)
Expand Down

0 comments on commit a057313

Please sign in to comment.