diff options
author | wangyuerg <wangyuerg@chinamobile.com> | 2020-12-10 15:26:13 +0800 |
---|---|---|
committer | wangyuerg <wangyuerg@chinamobile.com> | 2020-12-10 15:26:30 +0800 |
commit | 114398200f66e9139352d236beb5eb6417baa879 (patch) | |
tree | feb8d5957f4dbad08f3207492bfa9d97bffb0d49 /usecaseui-portal/src/app/views/services/slicing-management | |
parent | 0c91d09baac3c4749f4aad4ec40f278240a11bf1 (diff) |
fix: fix the bug of mutiple requests
Signed-off-by: wangyuerg <wangyuerg@chinamobile.com>
Change-Id: Ie110d3245c7eb120edf1148653df1e14b1860ea6
Issue-ID: USECASEUI-444
Diffstat (limited to 'usecaseui-portal/src/app/views/services/slicing-management')
2 files changed, 12 insertions, 0 deletions
diff --git a/usecaseui-portal/src/app/views/services/slicing-management/csmf-slicing-business-management/csmf-slicing-business-management.component.ts b/usecaseui-portal/src/app/views/services/slicing-management/csmf-slicing-business-management/csmf-slicing-business-management.component.ts index d7062473..a448bcf2 100644 --- a/usecaseui-portal/src/app/views/services/slicing-management/csmf-slicing-business-management/csmf-slicing-business-management.component.ts +++ b/usecaseui-portal/src/app/views/services/slicing-management/csmf-slicing-business-management/csmf-slicing-business-management.component.ts @@ -31,6 +31,13 @@ export class CsmfSlicingBusinessManagementComponent implements OnInit { ngOnInit() {} + ngOnDestroy() { + console.log(this.progressingTimer) + this.progressingTimer.forEach((item) => { + clearInterval(item.timer) + }) + } + selectedValue: string = BUSINESS_STATUS[0]; listOfData: any[] = []; pageIndex: number = 1; 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 cf9b221c..313e3fa9 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 @@ -32,6 +32,11 @@ export class SlicingBusinessTableComponent implements OnInit { ngOnInit() { } + ngOnDestroy() { + this.progressingTimer.forEach((item) => { + clearInterval(item.timer) + }) + } selectedValue: string = BUSINESS_STATUS[0]; listOfData: any[] = []; pageIndex: number = 1; |