机场数据、下拉框数据绑定值
This commit is contained in:
@@ -37,7 +37,7 @@
|
||||
<label for="airlineCode">航空公司: </label>
|
||||
<select class="form-control" [(ngModel)]="filterItems.airlineCode" (ngModelChange)="selectChange()" id="airlineCompany">
|
||||
<option value=""></option>
|
||||
<option *ngFor="let item of aircrafts" [value]="item.airlineCode">{{item.airlineCode}}</option>
|
||||
<option *ngFor="let item of airlines" [value]="item.airlineName">{{item.airlineName}}</option>
|
||||
<!-- <option value="GH">海南航空公司</option>
|
||||
<option value="CH">国外航空公司</option> -->
|
||||
</select>
|
||||
|
||||
@@ -25,7 +25,7 @@ public filterItems = {
|
||||
airlineCode:'',
|
||||
aircraftTypeCode:'',
|
||||
}
|
||||
|
||||
airlines : Array<any>; //航空公司
|
||||
aircrafts : Array<any>;
|
||||
public row_state: any = { renderFlight: {} };
|
||||
public render_data: Array<object> = []; //显示数据,即需要显示的数据
|
||||
@@ -39,6 +39,14 @@ ngOnInit() {
|
||||
this.render_data = this.aircrafts;
|
||||
}
|
||||
)
|
||||
//航空公司
|
||||
this.airlines = this.basicDataService.airline;
|
||||
this.basicDataService.airline_subject.subscribe(
|
||||
data=>{
|
||||
this.airlines = data;
|
||||
}
|
||||
)
|
||||
|
||||
/**
|
||||
* 固定表头
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user