Fix instance instantiation for NS 67/88067/4
authorguochuyicmri <guochuyi@chinamobile.com>
Mon, 20 May 2019 08:28:31 +0000 (16:28 +0800)
committerguochuyicmri <guochuyi@chinamobile.com>
Tue, 21 May 2019 02:29:37 +0000 (10:29 +0800)
Change-Id: I96ebbaf680aa7f0976785a9ee478d1fac052f4c2
Issue-ID: USECASEUI-255
Signed-off-by: guochuyicmri <guochuyi@chinamobile.com>
usecaseui-portal/src/app/components/e2e-detail/e2e-detail.component.ts

index cfcaae6..554f25c 100644 (file)
@@ -124,17 +124,17 @@ export class E2eDetailComponent implements OnInit {
             }
         }else if(this.detailParams.serviceDomain == 'Network Service'){
             this.ns_service = {
-                name:this.detailParams.name,
-                description: this.detailParams.description,
+                name:this.detailParams.name || this.detailParams['service-instance-name'],
+                description: this.detailParams.description || null
             };
             if(this.detailParams.requestInputs!=undefined && Object.keys(this.detailParams.requestInputs).length>0){
                 this.ns_requestInputs = this.detailParams.requestInputs;
             }
-            this.ns_nestedTemplates = this.detailParams.vnfInfo;
+            this.ns_nestedTemplates = this.detailParams.childServiceInstances;
             this.rootns.children=this.ns_nestedTemplates.map((item,index) => {
                 return {
                     "name": "vnf",
-                    "type": "vnf",
+                    "type": "vnf"
                 }
             });
             console.log(this.ns_nestedTemplates);