diff --git a/src/app/view/admin/components/common-table/common-table.component.html b/src/app/view/admin/components/common-table/common-table.component.html index 4260087..cb039f7 100644 --- a/src/app/view/admin/components/common-table/common-table.component.html +++ b/src/app/view/admin/components/common-table/common-table.component.html @@ -12,7 +12,7 @@ - implements OnInit, OnChanges { this.getData(); } - getData = () => { + getData = (pageNumber?: number) => { this.loading = true; - const pageValue = this.dataList.pageNum ? this.dataList.pageNum : 1; - const countValue = this.dataList.pageSize ? this.dataList.pageSize : 10 + const pageValue = pageNumber ? pageNumber : 1; + const countValue = this.dataList.pageSize ? this.dataList.pageSize : 10; this.request.queryParam.page = pageValue; this.request.queryParam.count = countValue;