机场下拉框数据转换
This commit is contained in:
@@ -52,7 +52,7 @@
|
||||
<!-- <option value="GZ">广州</option>
|
||||
<option value="SH">上海</option>
|
||||
<option value="BJ">北京</option> -->
|
||||
<option *ngFor="let item of airports" [value]="item.cityId">{{item.cityId}}</option>
|
||||
<option *ngFor="let item of citys" [value]="item.cityNameChn">{{item.cityNameChn}}</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -25,7 +25,7 @@ public filterItems = {
|
||||
airportGroupId:'',
|
||||
cityId:'',
|
||||
}
|
||||
|
||||
citys : Array<any>; //城市
|
||||
airports : Array<any>;
|
||||
public row_state: any = { renderFlight: {} };
|
||||
public render_data: Array<object> = []; //显示数据,即需要显示的数据
|
||||
@@ -39,6 +39,13 @@ ngOnInit() {
|
||||
this.render_data = this.airports;
|
||||
}
|
||||
)
|
||||
//城市
|
||||
this.citys = this.basicDataService.city;
|
||||
this.basicDataService.city_subject.subscribe(
|
||||
data=>{
|
||||
this.citys = data;
|
||||
}
|
||||
)
|
||||
/**
|
||||
* 固定表头
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user