summaryrefslogtreecommitdiffstats
path: root/usecaseui-portal/src/app/services/services-list
diff options
context:
space:
mode:
authorguochuyicmri <guochuyi@chinamobile.com>2018-11-12 11:34:49 +0800
committerguochuyicmri <guochuyi@chinamobile.com>2018-11-12 11:35:11 +0800
commit9da23b6872664c73705d20bbc9878e74e9bab8c2 (patch)
treeaea0c9a9c33eb9347cf43112cbaa424e9f732b6f /usecaseui-portal/src/app/services/services-list
parent482bde1710377b5b862ef683d053ce9c187ad632 (diff)
fix serviceInstance bugs for CCVPN
Change-Id: Ic8d97fdefb13c18e3d8f225d72cd59bbb47cea5d Issue-ID: USECASEUI-170 Signed-off-by: guochuyicmri <guochuyi@chinamobile.com>
Diffstat (limited to 'usecaseui-portal/src/app/services/services-list')
-rw-r--r--usecaseui-portal/src/app/services/services-list/services-list.component.ts7
1 files changed, 7 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 f2e05076..7fac33de 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
@@ -162,6 +162,13 @@ export class ServicesListComponent implements OnInit {
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;
+ }
+ })
if(item["serviceDomain"]=="Network Service"){
item["childServiceInstances"] = item["vnfInfo"].map((vnf)=>{
vnf["serviceDomain"] = "vnf";