From 04c43a5bc9f4078368f6dcb880f7f9e6eca26c36 Mon Sep 17 00:00:00 2001 From: cyuamber Date: Wed, 25 Dec 2019 15:59:58 +0800 Subject: feat: change progress param value Change-Id: I85e0200e68a06d9026e96ece7078dbcd9ff201a8 Issue-ID: USECASEUI-369 Signed-off-by: cyuamber --- .../slicing-business-table/slicing-business-table.component.html | 4 ++-- .../slicing-business-table/slicing-business-table.component.ts | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'usecaseui-portal') diff --git a/usecaseui-portal/src/app/views/services/slicing-management/slicing-resource-management/slicing-business-management/slicing-business-table/slicing-business-table.component.html b/usecaseui-portal/src/app/views/services/slicing-management/slicing-resource-management/slicing-business-management/slicing-business-table/slicing-business-table.component.html index 804fd65b..be7db387 100644 --- a/usecaseui-portal/src/app/views/services/slicing-management/slicing-resource-management/slicing-business-management/slicing-business-table/slicing-business-table.component.html +++ b/usecaseui-portal/src/app/views/services/slicing-management/slicing-resource-management/slicing-business-management/slicing-business-table/slicing-business-table.component.html @@ -46,12 +46,12 @@ [nzDisabled]="data.last_operation_type && data.last_operation_progress && data.last_operation_progress !== 100" (ngModelChange)="switchChange(data,i)">
- { - if (item.last_operation_progress !== null && item.last_operation_progress < 100 && item.last_operation_type !== null) { - let updata = (prodata) => { + if (item.last_operation_progress && item.last_operation_type && item.last_operation_progress < 100) { + let updata = (prodata: { operation_progress: string }) => { item.last_operation_progress = prodata.operation_progress || item.last_operation_progress; }; let obj = { serviceId: item.service_instance_id }; - if (item.last_operation_type === 'delete') this.terminateStart = true; + if (item.last_operation_type === 'DELETE') this.terminateStart = true; this.queryProgress(obj, item.orchestration_status, index, updata).then((res) => { item.last_operation_progress = 100; }) -- cgit 1.2.3-korg