机场下拉框数据转换
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;
|
||||
}
|
||||
)
|
||||
/**
|
||||
* 固定表头
|
||||
*/
|
||||
|
||||
@@ -31,12 +31,12 @@
|
||||
</div>
|
||||
|
||||
<div class="second-condition mb-3 row">
|
||||
<div class="input-container mr-4">
|
||||
<!-- <div class="input-container mr-4">
|
||||
<label for="">洲/地区: </label>
|
||||
<select class="form-control">
|
||||
<option value=""></option>
|
||||
</select>
|
||||
</div>
|
||||
</div> -->
|
||||
<div class="input-container mr-4">
|
||||
<label for="countryId">国家: </label>
|
||||
<select class="form-control" [(ngModel)]="filterItems.countryId" (ngModelChange)="selectChange()" id="citry">
|
||||
@@ -48,10 +48,10 @@
|
||||
</select>
|
||||
</div>
|
||||
<div class="third-condition row">
|
||||
<label class="radio-inline custom-checkbox nowrap checkInfo mr-4">
|
||||
<!-- <label class="radio-inline custom-checkbox nowrap checkInfo mr-4">
|
||||
<input type="checkbox">
|
||||
<span>洲/地区-国家关联</span>
|
||||
</label>
|
||||
</label> -->
|
||||
<label class="radio-inline custom-checkbox nowrap checkInfo mr-4">
|
||||
<input type="checkbox">
|
||||
<span>国家-城市关联</span>
|
||||
|
||||
Reference in New Issue
Block a user