<div *ngIf="item.type === 'node_select_one'">
<div>
<span>{{item.rateName}}:</span>
- <input
+ <!-- <input
nz-input
nz-tooltip
[id]="item.rateName"
[name]="item.rateName"
[(ngModel)]="cloud_leased_line_info[item.key].bandwidth"
[placeholder]="item.placeholder ? item.placeholder : ''"
- />
+ /> -->
+ <nz-select
+ [name]="item.rateName"
+ [disabled]="isUpdateFlag"
+ [(ngModel)]="cloud_leased_line_info[item.key].bandwidth"
+ >
+ <nz-option
+ [nzValue]="option.value"
+ [nzLabel]="option.label"
+ *ngFor="let option of bandWidthLists"
+ >
+ </nz-option>
+ </nz-select>
</div>
<div>
<span>{{item.nodeName}}:</span>
@Output() cancelEmitter = new EventEmitter<any>();
comunicationFormItems = COMMUNICATION_FORM_ITEMS;
isUpdateFlag: boolean = false;
+ bandWidthLists: any[] = [];
nodeLists: any[] = [];
cloudPointOptions: any[] = [];
cloud_leased_line_info = {
if (this.cloudLeasedLineShowFlag) {
if (this.modelParams) {
this.isUpdateFlag = this.modelParams.isUpdateFlag;
+ if (this.modelParams.accessPointOne && this.modelParams.accessPointOne.bandwidth) {
+ if (this.modelParams.accessPointOne.bandwidth > 4000) {
+ this.modelParams.accessPointOne.bandwidth = 4000;
+ } else if (this.modelParams.accessPointOne.bandwidth > 3750) {
+ this.modelParams.accessPointOne.bandwidth = 3750;
+ } else if (this.modelParams.accessPointOne.bandwidth > 2500) {
+ this.modelParams.accessPointOne.bandwidth = 2500;
+ } else {
+ this.modelParams.accessPointOne.bandwidth = 1250;
+ }
+ }
this.cloud_leased_line_info = { ...this.modelParams };
} else {
this.getInstanceId();
}
this.queryAccessNodeInfo();
+ this.initBandWidth();
}
}
)
}
+ initBandWidth() {
+ this.bandWidthLists = [
+ {
+ value:1250,
+ label:"1.25 - 10"
+ },
+ {
+ value:2500,
+ label:"2.50 - 20"
+ },
+ {
+ value:3750,
+ label:"3.75 - 30"
+ },
+ {
+ value:4000,
+ label:"4.00 - 40"
+ }
+ ];
+ }
+
getInstanceId() {
this.myHttp.getInstanceId().subscribe(
(response) => {