机位-航站楼区域数据显示处理
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
<option value="standName">机位名称</option>
|
||||
<option value="standType">机位类型</option>
|
||||
<option value="standStatus">资源状态</option>
|
||||
<option value="terminalAreaCode">航站楼区域</option>
|
||||
<option value="terminalAreaName">航站楼区域</option>
|
||||
</select>
|
||||
<label class="radio-inline custom-radio nowrap mr-4">
|
||||
<input type="radio" [(ngModel)]="FLT_POS" [value]="1" name="filter-position">
|
||||
@@ -24,7 +24,7 @@
|
||||
<div class="line-operator-right mb-3 col-xlg-4 col-mlg-4 col-xl-4 col-lg-1">
|
||||
<!-- <button type="button" class="btn btn-info mr-3">机位编辑</button>
|
||||
<button type="button" class="btn btn-info mr-3">打印</button> -->
|
||||
<button type="button" class="btn btn-info mr-3">刷新</button>
|
||||
<!-- <button type="button" class="btn btn-info mr-3">刷新</button> -->
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
<label for="terminalAreaCode">所属航站楼区域: </label>
|
||||
<select class="form-control" [(ngModel)]="filterItems.terminalAreaCode" (ngModelChange)="selectChange()" id="qy">
|
||||
<option value=""></option>
|
||||
<option *ngFor="let items of terminalAreas" [value]="items.terminalAreaName">{{items.terminalAreaName}}</option>
|
||||
<option *ngFor="let items of terminalAreas" [value]="items.terminalAreaCode">{{items.terminalAreaName}}</option>
|
||||
<!-- <option value="GH">国内区域</option>
|
||||
<option value="CH">国际区域</option>
|
||||
<option value="QH">其他区域</option> -->
|
||||
@@ -84,7 +84,7 @@
|
||||
<td>{{stand.standName}}</td>
|
||||
<td>{{stand.standType}}</td>
|
||||
<td>{{stand.standStatus}}</td>
|
||||
<td>{{stand.terminalAreaCode}}</td>
|
||||
<td>{{stand.terminalAreaName}}</td>
|
||||
<!-- <td *ngFor="let airline_col of stand_lists" [ngStyle]="{'background-color':getColor(airline_col.COL_CODE)}">{{airline_row['renderFlight'][airline_col.COL_CODE]}}</td> -->
|
||||
</tr>
|
||||
</tbody>
|
||||
|
||||
@@ -38,6 +38,9 @@ ngOnInit() {
|
||||
data=>{
|
||||
this.stands = data;
|
||||
this.render_data = this.stands;
|
||||
if(this.terminalAreas && this.terminalAreas.length>0){//所属航站楼区域数据转换处理
|
||||
this.terminalAreasHandle();
|
||||
}
|
||||
}
|
||||
)
|
||||
//所属航站楼区域
|
||||
@@ -58,6 +61,14 @@ ngOnInit() {
|
||||
tableCont.addEventListener('scroll',scrollHandle);
|
||||
}
|
||||
|
||||
//所属航站楼区域数据转换处理
|
||||
terminalAreasHandle() {
|
||||
this.render_data.forEach(item => {
|
||||
let terminalAreasLinkIndex = this.terminalAreas.findIndex(val => val.terminalAreaCode === item['terminalAreaCode']);
|
||||
item['terminalAreaName'] = this.terminalAreas[terminalAreasLinkIndex].terminalAreaName;
|
||||
})
|
||||
}
|
||||
|
||||
//输入框回车事件
|
||||
inputEnter() {
|
||||
if (this.FLT_POS === 1) {
|
||||
|
||||
Reference in New Issue
Block a user