diff options
author | cyuamber <xuranyjy@chinamobile.com> | 2019-12-10 16:53:06 +0800 |
---|---|---|
committer | cyuamber <xuranyjy@chinamobile.com> | 2019-12-10 16:53:20 +0800 |
commit | bff56675c3a12bafe443fbb52f5d9eea99461db7 (patch) | |
tree | 29aafcabdc95c69e4abfd12a921c64919bed2c4f /usecaseui-portal/src/app/views/services/slicing-management/slicing-resource-management/slicing-business-management/slicing-business-table | |
parent | 8f0482631540bc23eeb83c6d28ee05dd19057443 (diff) |
feat:opmizite of slicing business page & 5G slicing monitor page
Change-Id: I8fc683a7a423605ef13b7eab43a2e816114df07e
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/slicing-business-management/slicing-business-table')
-rw-r--r-- | usecaseui-portal/src/app/views/services/slicing-management/slicing-resource-management/slicing-business-management/slicing-business-table/slicing-business-table.component.ts | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/usecaseui-portal/src/app/views/services/slicing-management/slicing-resource-management/slicing-business-management/slicing-business-table/slicing-business-table.component.ts b/usecaseui-portal/src/app/views/services/slicing-management/slicing-resource-management/slicing-business-management/slicing-business-table/slicing-business-table.component.ts index 515a4d3d..a524b8bb 100644 --- a/usecaseui-portal/src/app/views/services/slicing-management/slicing-resource-management/slicing-business-management/slicing-business-table/slicing-business-table.component.ts +++ b/usecaseui-portal/src/app/views/services/slicing-management/slicing-resource-management/slicing-business-management/slicing-business-table/slicing-business-table.component.ts @@ -20,7 +20,9 @@ export class SlicingBusinessTableComponent implements OnInit { this.getBusinessList() } ngOnDestroy() { - clearInterval(this.progressingTimer); + this.progressingTimer.forEach((item) => { + clearInterval(item.timer); + }) } selectedValue:string = BUSINESS_STATUS[0]; listOfData: any[] = []; @@ -30,7 +32,7 @@ export class SlicingBusinessTableComponent implements OnInit { loading = false; isSelect: boolean = false; statusOptions: any[] = BUSINESS_STATUS; - progressingTimer :any; + progressingTimer :any[] = []; getBusinessList (): void{ @@ -175,11 +177,19 @@ export class SlicingBusinessTableComponent implements OnInit { .subscribe((data) => { if (data.result_body.operation_progress < 100) { callback(data.result_body); - this.progressingTimer = setTimeout(()=>{ + let progressSetTimeOut = setTimeout(() => { requery(); },5000); + this.progressingTimer.push({ + id:obj.serviceId, + timer:progressSetTimeOut + }) } else { - clearInterval(this.progressingTimer); + this.progressingTimer.forEach((item) => { + if(item.serviceId === obj.serviceId){ + clearInterval(item.timer); + } + }); res(data.result_body); } }) |