增加-机场集团、国家、机型组、航空集团下拉框数据对接
This commit is contained in:
@@ -37,12 +37,14 @@ export class AirportComponent implements OnInit {
|
||||
cityId: '',
|
||||
}
|
||||
|
||||
airportgroups: Array<any>; //机场集团
|
||||
citys: Array<any>; //城市
|
||||
airports: Array<any>;
|
||||
public row_state: any = { renderFlight: {} };
|
||||
public render_data: Array<object> = []; //显示数据,即需要显示的数据
|
||||
|
||||
ngOnInit() {
|
||||
this.airportgroups = this.basicDataService.airportgroup;
|
||||
this.citys = this.basicDataService.city;
|
||||
this.airports = this.basicDataService.airport;
|
||||
this.render_data = this.basicDataService.airport;
|
||||
@@ -53,9 +55,10 @@ export class AirportComponent implements OnInit {
|
||||
}
|
||||
)
|
||||
this.basicDataService.city_subject.subscribe(
|
||||
data => {
|
||||
this.citys = data;
|
||||
}
|
||||
data => this.citys = data
|
||||
)
|
||||
this.basicDataService.airportgroup_subject.subscribe(
|
||||
data => this.airportgroups = data
|
||||
)
|
||||
/**
|
||||
* 固定表头
|
||||
|
||||
Reference in New Issue
Block a user