机场下拉框数据转换

This commit is contained in:
714943302@qq.com
2018-11-26 17:41:28 +08:00
parent 1f020ee82e
commit 8cb3f94bf4
3 changed files with 13 additions and 6 deletions
@@ -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;
}
)
/**
* 固定表头
*/