增加-机场集团、国家、机型组、航空集团下拉框数据对接
This commit is contained in:
@@ -30,11 +30,13 @@ export class CityComponent implements OnInit {
|
||||
countryId: '',
|
||||
}
|
||||
|
||||
countrys: Array<any>; //国家
|
||||
citys: Array<any>;
|
||||
public row_state: any = { renderFlight: {} };
|
||||
public render_data: Array<object> = []; //显示数据,即需要显示的数据
|
||||
|
||||
ngOnInit() {
|
||||
this.countrys = this.basicDataService.country;
|
||||
this.citys = this.basicDataService.city;
|
||||
this.render_data = this.basicDataService.city;
|
||||
this.basicDataService.city_subject.subscribe(
|
||||
@@ -43,6 +45,9 @@ export class CityComponent implements OnInit {
|
||||
this.render_data = data;
|
||||
}
|
||||
)
|
||||
this.basicDataService.country_subject.subscribe(
|
||||
data => this.countrys = data
|
||||
)
|
||||
/**
|
||||
* 固定表头
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user