From b2fc2767b0f5e3675da8d5dec8f96682113b2339 Mon Sep 17 00:00:00 2001 From: cyuamber Date: Fri, 6 Dec 2019 12:39:30 +0800 Subject: feat: add Paging function of slicing nsi page Change-Id: I216b64a77a0c148547528c90f83efc982bcb3170 Issue-ID: USECASEUI-369 Signed-off-by: cyuamber --- .../nsi-management/nsi-table/nsi-table.component.html | 6 +++++- .../nsi-management/nsi-table/nsi-table.component.ts | 8 ++++++++ .../slicing-business-table/slicing-business-table.component.html | 1 + 3 files changed, 14 insertions(+), 1 deletion(-) (limited to 'usecaseui-portal') diff --git a/usecaseui-portal/src/app/views/services/slicing-management/slicing-resource-management/nsi-management/nsi-table/nsi-table.component.html b/usecaseui-portal/src/app/views/services/slicing-management/slicing-resource-management/nsi-management/nsi-table/nsi-table.component.html index 5bcdbb6a..3196f8fe 100644 --- a/usecaseui-portal/src/app/views/services/slicing-management/slicing-resource-management/nsi-management/nsi-table/nsi-table.component.html +++ b/usecaseui-portal/src/app/views/services/slicing-management/slicing-resource-management/nsi-management/nsi-table/nsi-table.component.html @@ -2,7 +2,8 @@
Status : - +
@@ -12,11 +13,14 @@ #nsiTable [nzData]="listOfData" [nzFrontPagination]="false" + nzShowSizeChanger [nzPageSizeOptions]="[5,10,15,20]" [nzTotal]='total' [(nzPageSize)]="pageSize" [(nzPageIndex)]='pageIndex' [nzLoading]="loading" + (nzPageIndexChange)="searchData()" + (nzPageSizeChange)="searchData(true)" > diff --git a/usecaseui-portal/src/app/views/services/slicing-management/slicing-resource-management/nsi-management/nsi-table/nsi-table.component.ts b/usecaseui-portal/src/app/views/services/slicing-management/slicing-resource-management/nsi-management/nsi-table/nsi-table.component.ts index 372504e8..a1511b18 100644 --- a/usecaseui-portal/src/app/views/services/slicing-management/slicing-resource-management/nsi-management/nsi-table/nsi-table.component.ts +++ b/usecaseui-portal/src/app/views/services/slicing-management/slicing-resource-management/nsi-management/nsi-table/nsi-table.component.ts @@ -47,6 +47,14 @@ export class NsiTableComponent implements OnInit { } }) } + getListOfProcessingStatus(){ + this.pageIndex = 1; + this.pageSize = 10; + this.getNsiList(); + } + searchData(reset: boolean = false) { + this.getNsiList(); + } showdetail(data){ } diff --git a/usecaseui-portal/src/app/views/services/slicing-management/slicing-resource-management/slicing-business-management/slicing-business-table/slicing-business-table.component.html b/usecaseui-portal/src/app/views/services/slicing-management/slicing-resource-management/slicing-business-management/slicing-business-table/slicing-business-table.component.html index 2eaf881e..a5ef19b7 100644 --- a/usecaseui-portal/src/app/views/services/slicing-management/slicing-resource-management/slicing-business-management/slicing-business-table/slicing-business-table.component.html +++ b/usecaseui-portal/src/app/views/services/slicing-management/slicing-resource-management/slicing-business-management/slicing-business-table/slicing-business-table.component.html @@ -13,6 +13,7 @@ #basicTable [nzData]="listOfData" [nzFrontPagination]="false" + nzShowSizeChanger [nzPageSizeOptions]="[5,10,15,20]" [nzTotal]='total' [(nzPageSize)]="pageSize" -- cgit 1.2.3-korg