机场数据、下拉框数据绑定值

This commit is contained in:
714943302@qq.com
2018-11-23 17:58:45 +08:00
parent 52b316a230
commit 1f020ee82e
11 changed files with 65 additions and 12 deletions
@@ -37,7 +37,7 @@
<label for="airlineCode">航空公司:&nbsp;&nbsp;</label>
<select class="form-control" [(ngModel)]="filterItems.airlineCode" (ngModelChange)="selectChange()" id="airlineCompany">
<option value=""></option>
<option *ngFor="let item of aircrafts" [value]="item.airlineCode">{{item.airlineCode}}</option>
<option *ngFor="let item of airlines" [value]="item.airlineName">{{item.airlineName}}</option>
<!-- <option value="GH">海南航空公司</option>
<option value="CH">国外航空公司</option> -->
</select>
@@ -25,7 +25,7 @@ public filterItems = {
airlineCode:'',
aircraftTypeCode:'',
}
airlines : Array<any>; //航空公司
aircrafts : Array<any>;
public row_state: any = { renderFlight: {} };
public render_data: Array<object> = []; //显示数据,即需要显示的数据
@@ -39,6 +39,14 @@ ngOnInit() {
this.render_data = this.aircrafts;
}
)
//航空公司
this.airlines = this.basicDataService.airline;
this.basicDataService.airline_subject.subscribe(
data=>{
this.airlines = data;
}
)
/**
* 固定表头
*/
@@ -32,7 +32,7 @@
<label for="terminalAreaCode">所属航站楼区域:&nbsp;&nbsp;</label>
<select class="form-control" [(ngModel)]="filterItems.terminalAreaCode" (ngModelChange)="selectChange()" id="qy">
<option value=""></option>
<option *ngFor="let item of carousels" [value]="item.terminalAreaCode" >{{item.terminalAreaCode}}</option>
<option *ngFor="let item of terminalAreas" [value]="item.terminalAreaName" >{{item.terminalAreaName}}</option>
<!-- <option value="GH">国内区域</option>
<option value="CH">国际区域</option>
<option value="QT">其他区域</option> -->
@@ -25,6 +25,7 @@ public filterItems = {
terminalAreaCode:'',
carouselStatus:'',
}
terminalAreas:Array<any>; //所属航站楼区域
carousels:Array<any>;
public row_state: any = { renderFlight: {} };
public render_data: Array<object> = []; //显示数据,即需要显示的数据
@@ -37,6 +38,13 @@ ngOnInit() {
this.render_data = this.carousels;
}
)
//所属航站楼区域
this.terminalAreas = this.basicDataService.terminal_area;
this.basicDataService.terminal_area_subject.subscribe(
data=>{
this.terminalAreas = data;
}
)
/**
* 固定表头
*/
@@ -33,7 +33,7 @@
<label for="terminalAreaCode">所属航站楼区域:&nbsp;&nbsp;</label>
<select class="form-control" [(ngModel)]="filterItems.terminalAreaCode" (ngModelChange)="selectChange()" id="qy">
<option value=""></option>
<option *ngFor="let items of checkinDesks" [value]="items.terminalAreaCode">{{items.terminalAreaCode}}</option>
<option *ngFor="let items of terminalAreas" [value]="items.terminalAreaName">{{items.terminalAreaName}}</option>
<!-- <option value="GH">国内区域</option>
<option value="CH">国外区域</option>
<option value="QH">其他区域</option> -->
@@ -43,7 +43,7 @@
<label for="checkinGroupCode">值机岛:&nbsp;&nbsp;</label>
<select class="form-control" [(ngModel)]="filterItems.checkinGroupCode" (ngModelChange)="selectChange()" id="zjd">
<option value=""></option>
<option *ngFor="let items of checkinDesks" [value]="items.checkinGroupCode">{{items.checkinGroupCode}}</option>
<option *ngFor="let items of checkinGroups" [value]="items.checkinGroupName">{{items.checkinGroupName}}</option>
<!-- <option value="A">A岛</option>
<option value="B">B岛</option>
<option value="C">C岛</option> -->
@@ -53,7 +53,7 @@
<label for="chutCode">行李传送带:&nbsp;&nbsp;</label>
<select class="form-control" [(ngModel)]="filterItems.chutCode" (ngModelChange)="selectChange()" id="xl">
<option value=""></option>
<option *ngFor="let items of checkinDesks" [value]="items.chutCode">{{items.chutCode}}</option>
<option *ngFor="let items of chuts" [value]="items.chutName">{{items.chutName}}</option>
<!-- <option value="X">X行李</option>
<option value="Z">Z行李</option>
<option value="Y">Y行李</option> -->
@@ -27,6 +27,9 @@ public filterItems = {
chutCode:'',
}
checkinGroups : Array<any>; //值机岛
terminalAreas : Array<any>; //所属航站楼区域
chuts : Array<any>; //行李传送带
checkinDesks : Array<any>;
public row_state: any = { renderFlight: {} };
public render_data: Array<object> = []; //显示数据,即需要显示的数据
@@ -39,6 +42,27 @@ ngOnInit() {
this.render_data = this.checkinDesks;
}
)
//所属航站楼区域
this.terminalAreas = this.basicDataService.terminal_area;
this.basicDataService.terminal_area_subject.subscribe(
data=>{
this.terminalAreas = data;
}
)
//值机岛
this.checkinGroups = this.basicDataService.checkin_group;
this.basicDataService.checkin_group_subject.subscribe(
data=>{
this.checkinGroups = data;
}
)
//行李传送带
this.chuts = this.basicDataService.chut;
this.basicDataService.chut_subject.subscribe(
data=>{
this.chuts = data;
}
)
/**
* 固定表头
*/
@@ -35,15 +35,13 @@
<label for="">洲/地区:&nbsp;&nbsp;</label>
<select class="form-control">
<option value=""></option>
<option value="GH">非洲</option>
<option value="CH">亚洲</option>
</select>
</div>
<div class="input-container mr-4">
<label for="countryId">国家:&nbsp;&nbsp;</label>
<select class="form-control" [(ngModel)]="filterItems.countryId" (ngModelChange)="selectChange()" id="citry">
<option value=""></option>
<option *ngFor="let item of citys" [value]="item.cityId">{{item.countryId}}</option>
<option *ngFor="let item of citys" [value]="item.countryId">{{item.countryId}}</option>
<!-- <option value="ZG">中国</option>
<option value="MG">美国</option>
<option value="YG">英国</option> -->
@@ -33,7 +33,7 @@
<label for="terminalAreaCode">所属航站楼区域:&nbsp;&nbsp;</label>
<select class="form-control" [(ngModel)]="filterItems.terminalAreaCode" (ngModelChange)="selectChange()" id="qy">
<option value=""></option>
<option *ngFor="let items of gates" [value]="items.terminalAreaCode">{{items.terminalAreaCode}}</option>
<option *ngFor="let items of terminalAreas" [value]="items.terminalAreaName">{{items.terminalAreaName}}</option>
</select>
</div>
<div class="input-container mr-4">
@@ -25,7 +25,7 @@ public filterItems = {
terminalAreaCode:'',
gateStatus:'',
}
terminalAreas : Array<any>; //所属航站楼区域
gates : Array<any>;
public row_state: any = { renderFlight: {} };
public render_data: Array<object> = []; //显示数据,即需要显示的数据
@@ -38,6 +38,13 @@ ngOnInit() {
this.render_data = this.gates;
}
)
//所属航站楼区域
this.terminalAreas = this.basicDataService.terminal_area;
this.basicDataService.terminal_area_subject.subscribe(
data=>{
this.terminalAreas = data;
}
)
/**
* 固定表头
*/
@@ -33,7 +33,7 @@
<label for="terminalAreaCode">所属航站楼区域:&nbsp;&nbsp;</label>
<select class="form-control" [(ngModel)]="filterItems.terminalAreaCode" (ngModelChange)="selectChange()" id="qy">
<option value=""></option>
<option *ngFor="let items of stands" [value]="items.terminalAreaCode">{{items.terminalAreaCode}}</option>
<option *ngFor="let items of terminalAreas" [value]="items.terminalAreaName">{{items.terminalAreaName}}</option>
<!-- <option value="GH">国内区域</option>
<option value="CH">国际区域</option>
<option value="QH">其他区域</option> -->
@@ -27,6 +27,7 @@ public filterItems = {
standStatus:'',
}
terminalAreas : Array<any>; //所属航站楼区域
stands : Array<any>;
public row_state: any = { renderFlight: {} };
public render_data: Array<object> = []; //显示数据,即需要显示的数据
@@ -39,6 +40,13 @@ ngOnInit() {
this.render_data = this.stands;
}
)
//所属航站楼区域
this.terminalAreas = this.basicDataService.terminal_area;
this.basicDataService.terminal_area_subject.subscribe(
data=>{
this.terminalAreas = data;
}
)
/**
* 固定表头
*/