公共组件 #18

Merged
xiaohai2271 merged 45 commits from dev into master 2020-07-11 10:41:50 +08:00
Showing only changes of commit 5e2dfe056b - Show all commits

View File

@@ -32,6 +32,10 @@ export class CommonTableComponent<T> implements OnInit, OnChanges {
} }
getData = () => { getData = () => {
this.request.queryParam = {
page: this.dataList.pageNum ? this.dataList.pageNum : 1,
count: this.dataList.pageSize ? this.dataList.pageSize : 10
}
this.httpService.Service<PageList<T>>(this.request).subscribe(resp => { this.httpService.Service<PageList<T>>(this.request).subscribe(resp => {
this.dataList = resp.result; this.dataList = resp.result;
}); });