机场数据、下拉框数据绑定值
This commit is contained in:
@@ -32,7 +32,7 @@
|
||||
<label for="terminalAreaCode">所属航站楼区域: </label>
|
||||
<select class="form-control" [(ngModel)]="filterItems.terminalAreaCode" (ngModelChange)="selectChange()" id="qy">
|
||||
<option value=""></option>
|
||||
<option *ngFor="let item of carousels" [value]="item.terminalAreaCode" >{{item.terminalAreaCode}}</option>
|
||||
<option *ngFor="let item of terminalAreas" [value]="item.terminalAreaName" >{{item.terminalAreaName}}</option>
|
||||
<!-- <option value="GH">国内区域</option>
|
||||
<option value="CH">国际区域</option>
|
||||
<option value="QT">其他区域</option> -->
|
||||
|
||||
@@ -25,6 +25,7 @@ public filterItems = {
|
||||
terminalAreaCode:'',
|
||||
carouselStatus:'',
|
||||
}
|
||||
terminalAreas:Array<any>; //所属航站楼区域
|
||||
carousels:Array<any>;
|
||||
public row_state: any = { renderFlight: {} };
|
||||
public render_data: Array<object> = []; //显示数据,即需要显示的数据
|
||||
@@ -37,6 +38,13 @@ ngOnInit() {
|
||||
this.render_data = this.carousels;
|
||||
}
|
||||
)
|
||||
//所属航站楼区域
|
||||
this.terminalAreas = this.basicDataService.terminal_area;
|
||||
this.basicDataService.terminal_area_subject.subscribe(
|
||||
data=>{
|
||||
this.terminalAreas = data;
|
||||
}
|
||||
)
|
||||
/**
|
||||
* 固定表头
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user