summaryrefslogtreecommitdiffstats
path: root/usecaseui-portal
diff options
context:
space:
mode:
authorguochuyicmri <guochuyi@chinamobile.com>2018-11-11 17:47:46 +0800
committerguochuyicmri <guochuyi@chinamobile.com>2018-11-11 17:48:23 +0800
commit482bde1710377b5b862ef683d053ce9c187ad632 (patch)
tree03dd4fe88001fe3bc8e5ea07e103ab586386d402 /usecaseui-portal
parent94cd0c22e87255883931ad77741839cf325aba63 (diff)
query serviceInstances bug
Change-Id: I8d53c677252553a53980568b4ba4c957011731c6 Issue-ID: USECASEUI-170 Signed-off-by: guochuyicmri <guochuyi@chinamobile.com>
Diffstat (limited to 'usecaseui-portal')
-rw-r--r--usecaseui-portal/src/app/services/services-list/services-list.component.ts6
1 files changed, 6 insertions, 0 deletions
diff --git a/usecaseui-portal/src/app/services/services-list/services-list.component.ts b/usecaseui-portal/src/app/services/services-list/services-list.component.ts
index 0509e70a..f2e05076 100644
--- a/usecaseui-portal/src/app/services/services-list/services-list.component.ts
+++ b/usecaseui-portal/src/app/services/services-list/services-list.component.ts
@@ -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";