diff options
author | xu ran <xuranyjy@chinamobile.com> | 2021-03-03 08:06:18 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2021-03-03 08:06:18 +0000 |
commit | 6949b31f7699fb80d63b1ebb5fad4488bc453a89 (patch) | |
tree | 81a846956fb65c7429c004dccfddf1097d074335 /usecaseui-portal/src/app/views/services/slicing-management/slicing-task-management | |
parent | 6c0b971189ccff49ed521abafc36ec1a4c5a1603 (diff) | |
parent | de369a26154bcc127cefe5df99d7927f53ef6211 (diff) |
Merge "refactor: add a variable to control the frequency of polling uniformly"
Diffstat (limited to 'usecaseui-portal/src/app/views/services/slicing-management/slicing-task-management')
-rw-r--r-- | usecaseui-portal/src/app/views/services/slicing-management/slicing-task-management/slicing-task-management.component.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/usecaseui-portal/src/app/views/services/slicing-management/slicing-task-management/slicing-task-management.component.ts b/usecaseui-portal/src/app/views/services/slicing-management/slicing-task-management/slicing-task-management.component.ts index 0ddc759a..908d30c7 100644 --- a/usecaseui-portal/src/app/views/services/slicing-management/slicing-task-management/slicing-task-management.component.ts +++ b/usecaseui-portal/src/app/views/services/slicing-management/slicing-task-management/slicing-task-management.component.ts @@ -1,6 +1,7 @@ import { Component, OnInit, Input, SimpleChanges } from "@angular/core"; import { SlicingTaskServices } from "@src/app/core/services/slicingTaskServices"; import { TASK_PROCESSING_STATUS } from "./constants"; +import { INTERVAL_TIME } from "../constant"; @Component({ selector: "app-slicing-task-management", @@ -24,6 +25,7 @@ export class SlicingTaskManagementComponent implements OnInit { total: number = 1; pageSize: string = "10"; pageNum: string = "1"; + intervalTime: number = INTERVAL_TIME; ngOnChanges(changes: SimpleChanges) { if ( @@ -161,7 +163,7 @@ export class SlicingTaskManagementComponent implements OnInit { this.loading = true; setTimeout(() => { this.getTaskList(); - }, 5000); + }, this.intervalTime); } } } |