summaryrefslogtreecommitdiffstats
path: root/usecaseui-portal/src/app/ccvpn-creation/ccvpn-creation.component.html
diff options
context:
space:
mode:
authorguochuyicmri <guochuyi@chinamobile.com>2019-04-03 18:11:44 +0800
committerguochuyicmri <guochuyi@chinamobile.com>2019-04-03 18:11:54 +0800
commit9b7c41cc4a49bc1980ed48d6a29fc28f1b291417 (patch)
treefbcaaf863baf7c13320f33104f7b245a419b883a /usecaseui-portal/src/app/ccvpn-creation/ccvpn-creation.component.html
parent97c18e70d0d79dedc07118a2ceef20fc41d7ac48 (diff)
Fix instance instantiation for CCVPN
Change-Id: I6c902286db6730192c3127754b5f452258c12ee2 Issue-ID: USECASEUI-220 Signed-off-by: guochuyicmri <guochuyi@chinamobile.com>
Diffstat (limited to 'usecaseui-portal/src/app/ccvpn-creation/ccvpn-creation.component.html')
-rw-r--r--usecaseui-portal/src/app/ccvpn-creation/ccvpn-creation.component.html42
1 files changed, 21 insertions, 21 deletions
diff --git a/usecaseui-portal/src/app/ccvpn-creation/ccvpn-creation.component.html b/usecaseui-portal/src/app/ccvpn-creation/ccvpn-creation.component.html
index f64e1237..2f0469c2 100644
--- a/usecaseui-portal/src/app/ccvpn-creation/ccvpn-creation.component.html
+++ b/usecaseui-portal/src/app/ccvpn-creation/ccvpn-creation.component.html
@@ -284,17 +284,17 @@
<tr *ngFor="let item of siteModalTable.data; let i = index;">
<td>{{i+1}}</td>
<td>
- <span *ngIf="wanPortEditNum==(i+1) && !wanPortModal">{{item.sitewanport_name}}</span>
- <input nz-input [(ngModel)]="siteWanParams.sitewanport_name" *ngIf="wanPortEditNum==(i+1) && wanPortModal">
+ <span *ngIf="!item.tabInputShow">{{item.sitewanport_name}}</span>
+ <input nz-input [(ngModel)]="item.sitewanport_name" *ngIf="item.tabInputShow">
</td>
<td>
- <span *ngIf="wanPortEditNum==(i+1) && !wanPortModal">{{item.sitewanport_description}}</span>
- <input nz-input [(ngModel)]="siteWanParams.sitewanport_description" *ngIf="wanPortEditNum==(i+1) && wanPortModal">
+ <span *ngIf="!item.tabInputShow">{{item.sitewanport_description}}</span>
+ <input nz-input [(ngModel)]="item.sitewanport_description" *ngIf="item.tabInputShow">
</td>
<td>
- <span *ngIf="wanPortEditNum==(i+1) && !wanPortModal">{{item.sitewanport_portType}}</span>
- <nz-select style="width: 100px;" [(ngModel)]="siteWanParams.sitewanport_portType" nzAllowClear
- nzPlaceHolder="Choose" *ngIf="wanPortEditNum==(i+1) && wanPortModal">
+ <span *ngIf="!item.tabInputShow">{{item.sitewanport_portType}}</span>
+ <nz-select style="width: 100px;" [(ngModel)]="item.sitewanport_portType" nzAllowClear
+ nzPlaceHolder="Choose" *ngIf="item.tabInputShow">
<nz-option nzValue="GE" nzLabel="GE"></nz-option>
<nz-option nzValue="FE" nzLabel="FE"></nz-option>
<nz-option nzValue="XGE" nzLabel="XGE"></nz-option>
@@ -304,32 +304,32 @@
</nz-select>
</td>
<td>
- <span *ngIf="wanPortEditNum==(i+1) && !wanPortModal">{{item.sitewanport_portNumber}}</span>
- <input nz-input [(ngModel)]="siteWanParams.sitewanport_portNumber" *ngIf="wanPortEditNum==(i+1) && wanPortModal">
+ <span *ngIf="!item.tabInputShow">{{item.sitewanport_portNumber}}</span>
+ <input nz-input [(ngModel)]="item.sitewanport_portNumber" *ngIf="item.tabInputShow">
</td>
<td>
- <span *ngIf="wanPortEditNum==(i+1) && !wanPortModal">{{item.sitewanport_ipAddress}}</span>
- <input nz-input [(ngModel)]="siteWanParams.sitewanport_ipAddress" *ngIf="wanPortEditNum==(i+1) && wanPortModal">
+ <span *ngIf="!item.tabInputShow">{{item.sitewanport_ipAddress}}</span>
+ <input nz-input [(ngModel)]="item.sitewanport_ipAddress" *ngIf="item.tabInputShow">
</td>
<td>
- <span *ngIf="wanPortEditNum==(i+1) && !wanPortModal">{{item.sitewanport_providerIpAddress}}</span>
- <input nz-input [(ngModel)]="siteWanParams.sitewanport_providerIpAddress" *ngIf="wanPortEditNum==(i+1) && wanPortModal">
+ <span *ngIf="!item.tabInputShow">{{item.sitewanport_providerIpAddress}}</span>
+ <input nz-input [(ngModel)]="item.sitewanport_providerIpAddress" *ngIf="item.tabInputShow">
</td>
<td>
- <span *ngIf="wanPortEditNum==(i+1) && !wanPortModal">{{item.sitewanport_transportNetworkName}}</span>
- <input nz-input [(ngModel)]="siteWanParams.sitewanport_transportNetworkName" *ngIf="wanPortEditNum==(i+1) && wanPortModal">
+ <span *ngIf="!item.tabInputShow">{{item.sitewanport_transportNetworkName}}</span>
+ <input nz-input [(ngModel)]="item.sitewanport_transportNetworkName" *ngIf="item.tabInputShow">
</td>
<td>
- <span *ngIf="wanPortEditNum==(i+1) && !wanPortModal">{{item.sitewanport_inputBandwidth}}</span>
- <input nz-input [(ngModel)]="siteWanParams.sitewanport_inputBandwidth" *ngIf="wanPortEditNum==(i+1) && wanPortModal">
+ <span *ngIf="!item.tabInputShow">{{item.sitewanport_inputBandwidth}}</span>
+ <input nz-input [(ngModel)]="item.sitewanport_inputBandwidth" *ngIf="item.tabInputShow">
</td>
<td>
- <span *ngIf="wanPortEditNum==(i+1) && !wanPortModal">{{item.sitewanport_outputBandwidth}}</span>
- <input nz-input [(ngModel)]="siteWanParams.sitewanport_outputBandwidth" *ngIf="wanPortEditNum==(i+1) && wanPortModal">
+ <span *ngIf="!item.tabInputShow">{{item.sitewanport_outputBandwidth}}</span>
+ <input nz-input [(ngModel)]="item.sitewanport_outputBandwidth" *ngIf="item.tabInputShow">
</td>
<td>
- <span class="action" (click)="editWanPort(i+1)"><i class="anticon anticon-edit" style="margin: 0 5px"></i></span>
- <span class="action" (click)="deleteModel(i+1)"><i class="anticon anticon-delete"></i></span>
+ <span class="action" (click)="editWanPort(i+1,item,siteWanData)"><i class="anticon anticon-edit" style="margin: 0 5px"></i></span>
+ <span class="action" (click)="deleteModel(i+1,item,siteWanData)"><i class="anticon anticon-delete"></i></span>
</td>
</tr>
<!-- </ng-template> -->