Service instance lifecycle management 57/88857/1
authorguochuyicmri <guochuyi@chinamobile.com>
Thu, 30 May 2019 10:12:17 +0000 (18:12 +0800)
committerguochuyicmri <guochuyi@chinamobile.com>
Thu, 30 May 2019 10:12:22 +0000 (18:12 +0800)
Change-Id: If654c7a3a6a92aaf1fbfcf5b1208e568e434d507
Issue-ID: USECASEUI-218
Signed-off-by: guochuyicmri <guochuyi@chinamobile.com>
usecaseui-portal/src/app/services/services-list/services-list.component.ts

index 7a5cf3a..959df39 100644 (file)
@@ -293,18 +293,8 @@ export class ServicesListComponent implements OnInit {
           if(typeof item == "string"){
             item = JSON.parse(item);
           }
-          if(typeof item["childServiceInstances"] == "string"){
-            item["childServiceInstances"] = JSON.parse(item["childServiceInstances"]);
-          }
 
-          item["childServiceInstances"] = item["childServiceInstances"].map((child)=>{
-            if(typeof child == "string"){
-              return JSON.parse(child);
-            }else{
-              return child;
-            }
-          })
-                    item["iconMore"]=this.iconMore;
+            item["iconMore"]=this.iconMore;
           if(item["serviceDomain"]=="Network Service"){
             if(item["vnfInfo"]){
               item["childServiceInstances"] = item["vnfInfo"].map((vnf)=>{
@@ -322,6 +312,8 @@ export class ServicesListComponent implements OnInit {
                 return vnfInfo;
               })
             }
+          }else {
+              item["childServiceInstances"] = [];
           }
 
           //