query serviceInstances bug 84/72384/1
authorguochuyicmri <guochuyi@chinamobile.com>
Sun, 11 Nov 2018 09:47:46 +0000 (17:47 +0800)
committerguochuyicmri <guochuyi@chinamobile.com>
Sun, 11 Nov 2018 09:48:23 +0000 (17:48 +0800)
Change-Id: I8d53c677252553a53980568b4ba4c957011731c6
Issue-ID: USECASEUI-170
Signed-off-by: guochuyicmri <guochuyi@chinamobile.com>
usecaseui-portal/src/app/services/services-list/services-list.component.ts

index 0509e70..f2e0507 100644 (file)
@@ -156,6 +156,12 @@ export class ServicesListComponent implements OnInit {
         console.log(data);
         this.total = data.body.total;
         this.tableData = data.body.tableList.map((item)=>{
+          if(typeof item == "string"){
+            item = JSON.parse(item);
+          }
+          if(typeof item["childServiceInstances"] == "string"){
+            item["childServiceInstances"] = JSON.parse(item["childServiceInstances"]);
+          }
           if(item["serviceDomain"]=="Network Service"){
             item["childServiceInstances"] = item["vnfInfo"].map((vnf)=>{
               vnf["serviceDomain"] = "vnf";