feat:Optimization service instance list of service page 25/99925/1
authorcyuamber <xuranyjy@chinamobile.com>
Fri, 27 Dec 2019 07:10:55 +0000 (15:10 +0800)
committercyuamber <xuranyjy@chinamobile.com>
Fri, 27 Dec 2019 07:11:00 +0000 (15:11 +0800)
Change-Id: Id29a3caf61aa83faa9662dd98522b6d7b830fac6
Issue-ID: USECASEUI-369
Signed-off-by: cyuamber <xuranyjy@chinamobile.com>
usecaseui-portal/src/app/views/services/services-list/e2e-creation/e2e-creation.component.ts
usecaseui-portal/src/app/views/services/services-list/services-list.component.html

index f1df963..91ac103 100644 (file)
@@ -104,7 +104,7 @@ export class E2eCreationComponent implements OnInit {
     } else if (type == "ns") {
       if (data["model"] != undefined && typeof data["model"] == 'string') {
         this.nsTemplateParameters = JSON.parse(data["model"]);
-        console.log(data["model"]);
+        console.log(data["model"],"----------1111");
       } else {
         this.nsTemplateParameters = data;
       }
index 8e07eea..856253a 100644 (file)
@@ -86,7 +86,7 @@
                 <ng-template ngFor let-data [ngForOf]="nzTable.data" let-i="index">
                     <tr>
                         <td>{{pageSize*(pageIndex-1) + i+1}}</td>
-                        <td [nzShowExpand]="data.childServiceInstances[0]" [(nzExpand)]="data.expand"></td>
+                        <td [nzShowExpand]="data.childServiceInstances?data.childServiceInstances[0]:null" [(nzExpand)]="data.expand"></td>
                         <td>{{data["service-instance-name"] || data.nsName}}</td>
                         <td>{{data["service-instance-id"] || data.nsInstanceId}}</td>
                         <td>
                             </ul>
                         </td>
                     </tr>
-                    <tr class="childtr" [nzExpand]="data.expand" *ngFor="let item of data.childServiceInstances">
+                    <tr class="childtr" [nzExpand]="data.expand" *ngFor="let item of data.childServiceInstances?data.childServiceInstances[0]:null">
                         <td></td>
                         <td></td>
                         <td>{{item["service-instance-id"] || item.nsInstanceId || item.vnfInstanceId}}</td>