Fix instance instantiation for CCVPN 32/86132/1
authorguochuyicmri <guochuyi@chinamobile.com>
Wed, 24 Apr 2019 09:18:25 +0000 (17:18 +0800)
committerguochuyicmri <guochuyi@chinamobile.com>
Wed, 24 Apr 2019 09:18:30 +0000 (17:18 +0800)
Change-Id: I25107cef4a4d6d814c0bb3df24a46e9336c53543
Issue-ID: USECASEUI-220
Signed-off-by: guochuyicmri <guochuyi@chinamobile.com>
usecaseui-portal/src/app/services/services-list/services-list.component.html
usecaseui-portal/src/app/services/services-list/services-list.component.ts

index 770cda0..bb8e514 100644 (file)
         </div>
        <div class="select-list">
             <span style="display:inline-block;">SERVICE TYPE: </span>
-            <nz-select style="width: 176px;float: right;" [(ngModel)]="serviceTypeSelected2.name" nzAllowClear (ngModelChange)="choseTemplateType()">
+            <nz-select style="width: 176px;float: right;" [(ngModel)]="serviceTypeSelectedName" nzAllowClear>
                 <nz-option *ngFor="let item of serviceTypeList2" [nzValue]="item.name" [nzLabel]="item.name" ></nz-option>
             </nz-select>
+        </div>
+               <div class="select-list">
+            <span style="display:inline-block;">Use Case: </span>
+            <nz-select style="width: 176px;float: right;" [(ngModel)]="templateTypeSelected" nzAllowClear
+                       (ngModelChange)="choseTemplateType()">
+                <!-- <nz-option *ngFor="let item of templateType" [nzValue]="item" [nzLabel]="item"></nz-option> -->
+                <nz-option nzValue="SOTN" nzLabel="SOTN"></nz-option>
+                <nz-option nzValue="CCVPN" nzLabel="CCVPN"></nz-option>
+                <nz-option nzValue="E2E Service" nzLabel="E2E Service"></nz-option>
+                <nz-option nzValue="Network Service" nzLabel="Network Service"></nz-option>
+            </nz-select>
         </div>
                <div class="select-list">
             <span style="display:inline-block;width:70px;">TEMPLATE: </span>
                 <nz-option *ngFor="let item of templates" [nzValue]="item" [nzLabel]="item.name"></nz-option>
             </nz-select>
         </div>
+        <div *ngIf="templateTypeSelected == 'E2E Service'">
+            <div class="select-list">
+                <span style="display:inline-block;width:70px;">Orchestrator: </span>
+                <nz-select style="width: 176px;float: right;" [(ngModel)]="orchestratorSelected" nzAllowClear>
+                    <nz-option *ngFor="let item of orchestratorList" [nzValue]="item" [nzLabel]="item.name"></nz-option>
+                </nz-select>
+            </div>
+        </div>
+        <div *ngIf="templateTypeSelected == 'E2E Service'">
+            <div class="check-box" style="margin:30px; height: 50px">
+                <input class="check-box-style" style="zoom: 1.8; width: 70px" type="checkbox" [(ngModel)]="isSol005Interface" value="true" nzAllowClear>
+                <label class="label" style="font-size: 20px; color: rgb(60,79,140,0.5)">Sol005</label>
+            </div>
+        </div>
     </nz-modal>
 </div>
 <nz-layout style=" padding: 20px 32px; ">
index 3a06674..bf1d5d0 100644 (file)
@@ -44,7 +44,8 @@ export class ServicesListComponent implements OnInit {
   serviceTypeList2 = [];
   serviceTypeSelected = {name:null};
   serviceTypeSelected2 = {name: null};
-    templateTypeSelected =null;
+    serviceTypeSelectedName = "";
+    templateTypeSelected ="CCVPN";
   orchestratorSelected = {name:null,id:null};
   listSortMasters=JSON.parse(sessionStorage.getItem('listSortMasters'));
   language="en";
@@ -160,7 +161,7 @@ export class ServicesListComponent implements OnInit {
                     return false;
                 }
                 this.serviceTypeSelected2 = this.serviceTypeList2[0];
-                this.templateTypeSelected = this.serviceTypeList2[0].name;
+                this.serviceTypeSelectedName = this.serviceTypeSelected2.name;
                 console.log(this.serviceTypeList2);
                 this.getAlltemplates();
             })
@@ -179,10 +180,10 @@ export class ServicesListComponent implements OnInit {
   }
   //
   templates = [];
-    template1={name:null};
-    template2={name:null};
-    template3={name:null};
-    template4={name:null};
+    template1 = {name: null};
+    // template2 = {name: null};
+    // template3 = {name: null};
+    // template4 = {name: null};
 
   getAlltemplates(){  //
     this.myhttp.getAllServiceTemplates(this.templateTypeSelected)