diff options
author | 2019-12-09 00:56:04 +0800 | |
---|---|---|
committer | 2019-12-09 01:23:36 +0800 | |
commit | 7ea14076d7946bb252320469e93cf595aab3bfdb (patch) | |
tree | 80f4fd05dfd674511f31c4d742ea26b73621964a /usecaseui-portal/src/app/views/services/slicing-management/slicing-resource-management/nsi-management | |
parent | 56c11ebfcb986fb634f0b35104c5dabcd90a7aaa (diff) |
fix:fix the table total of slicing business page
Change-Id: I419e3d4f52de8f0d2a5a7b4eabff0652945e4a5f
Issue-ID: USECASEUI-369
Signed-off-by: cyuamber <xuranyjy@chinamobile.com>
Diffstat (limited to 'usecaseui-portal/src/app/views/services/slicing-management/slicing-resource-management/nsi-management')
-rw-r--r-- | usecaseui-portal/src/app/views/services/slicing-management/slicing-resource-management/nsi-management/nsi-table/nsi-table.component.ts | 6 |
1 files changed, 3 insertions, 3 deletions
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 a88d1618..48c8d5ac 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 @@ -20,7 +20,7 @@ export class NsiTableComponent implements OnInit { listOfData: any[] = []; pageIndex: number = 1; pageSize: number = 10; - total: number = 100; + total: number = 0; loading = false; isSelect: boolean = false; statusOptions: any[] = BUSINESS_STATUS; @@ -37,9 +37,9 @@ export class NsiTableComponent implements OnInit { this.isSelect = true; } this.myhttp.getSlicingNsiList(paramsObj,this.isSelect).subscribe (res => { - const { result_header: { result_code }, result_body: { nsi_service_instances } } = res; + const { result_header: { result_code }, result_body: { nsi_service_instances,record_number } } = res; if (+result_code === 200) { - this.total = nsi_service_instances.length; + this.total = record_number; this.loading = false; this.listOfData = nsi_service_instances; } |