From 02718d23db36863d1e8a9bf89b9cfff756d7ff74 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A6=BE=E5=87=A0=E6=B5=B7?= Date: Thu, 11 Mar 2021 20:22:23 +0800 Subject: [PATCH] =?UTF-8?q?fix(common-table):=20=E4=BF=AE=E5=A4=8Dtable?= =?UTF-8?q?=E7=BB=84=E4=BB=B6=E6=97=A0=E6=B3=95=E5=88=87=E6=8D=A2=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/common-table/common-table.component.html | 2 +- .../admin/components/common-table/common-table.component.ts | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) 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;