summaryrefslogtreecommitdiffstats
path: root/usecaseui-portal/src/app/views/services/slicing-management/slicing-task-management
diff options
context:
space:
mode:
authorwangyuerg <wangyuerg@chinamobile.com>2021-03-03 15:13:37 +0800
committerYue Wang <wangyuerg@chinamobile.com>2021-03-03 07:51:13 +0000
commitde369a26154bcc127cefe5df99d7927f53ef6211 (patch)
tree78c33c0f8bfc427f7977d6e348cfcbd66883956e /usecaseui-portal/src/app/views/services/slicing-management/slicing-task-management
parent0e9d72db353f4477d60f33807a03801cf9ec606a (diff)
refactor: add a variable to control the frequency of polling uniformly
Signed-off-by: wangyuerg <wangyuerg@chinamobile.com> Change-Id: I80d7b50d3158d4fbd1ac714ded9ba7372068087b Issue-ID: USECASEUI-527
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.ts4
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);
}
}
}