feat:Optimize string to uppercase of slicing page 47/102547/1
authorcyuamber <xuranyjy@chinamobile.com>
Fri, 28 Feb 2020 07:28:51 +0000 (15:28 +0800)
committercyuamber <xuranyjy@chinamobile.com>
Fri, 28 Feb 2020 07:29:04 +0000 (15:29 +0800)
Change-Id: I3e990e32f46270754c351f17fa48479162f5ba52
Issue-ID: USECASEUI-368
Signed-off-by: cyuamber <xuranyjy@chinamobile.com>
usecaseui-portal/src/app/views/services/slicing-management/csmf-slicing-business-management/csmf-slicing-business-management.component.ts
usecaseui-portal/src/app/views/services/slicing-management/slicing-resource-management/slicing-business-management/slicing-business-table/slicing-business-table.component.ts

index 387c98d..73736f9 100644 (file)
@@ -64,7 +64,7 @@ export class CsmfSlicingBusinessManagementComponent implements OnInit {
                             let obj = {
                                 serviceId: item.order_id
                             };
-                            if (item.last_operation_type === 'DELETE') this.terminateStart[index] = true
+                            if (item.last_operation_type.toUpperCase() === 'DELETE') this.terminateStart[index] = true
                             else this.terminateStart[index] = false;
                             this.queryProgress(obj, index, updata).then(() => {
                                 item.last_operation_progress = '100';
index fbce729..330360a 100644 (file)
@@ -70,7 +70,7 @@ export class SlicingBusinessTableComponent implements OnInit {
                             let obj = {
                                 serviceId: item.service_instance_id
                             };
-                            if (item.last_operation_type === 'DELETE') this.terminateStart[index] = true
+                            if (item.last_operation_type.toUpperCase() === 'DELETE') this.terminateStart[index] = true
                             else this.terminateStart[index] = false;
                             this.queryProgress(obj, item.orchestration_status, index, updata).then((res) => {
                                 item.last_operation_progress = '100';