飞机-机型数据转换信息处理
This commit is contained in:
@@ -11,8 +11,8 @@
|
||||
<option value="maxTakeoffWeight">最大起飞重量</option>
|
||||
<option value="maxAirbridges">最大廊桥数</option>
|
||||
<option value="aircraftOwnerCode">机主航空公司</option>
|
||||
<option value="airlineCode">航空公司</option>
|
||||
<option value="aircraftTypeCode">机型</option>
|
||||
<option value="airlineName">航空公司</option>
|
||||
<option value="aircraftTypeName">机型</option>
|
||||
</select>
|
||||
<label class="radio-inline custom-radio nowrap mr-4">
|
||||
<input type="radio" [(ngModel)]="FLT_POS" [value]="1" name="filter-position">
|
||||
@@ -28,7 +28,7 @@
|
||||
<!-- <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>
|
||||
<!-- <button type="button" class="btn btn-info mr-3">刷新</button> -->
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -37,14 +37,14 @@
|
||||
<label for="airlineCode">航空公司: </label>
|
||||
<select class="form-control" [(ngModel)]="filterItems.airlineCode" (ngModelChange)="selectChange()" id="airlineCompany">
|
||||
<option value=""></option>
|
||||
<option *ngFor="let item of airlines" [value]="item.airlineName">{{item.airlineName}}</option>
|
||||
<option *ngFor="let item of airlines" [value]="item.airlineCode">{{item.airlineName}}</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="input-container mr-4">
|
||||
<label for="aircraftTypeCode">机型: </label>
|
||||
<select class="form-control" [(ngModel)]="filterItems.aircraftTypeCode" (ngModelChange)="selectChange()" id="jx">
|
||||
<option value=""></option>
|
||||
<option *ngFor="let item of aircraftTypes" [value]="item.aircraftTypeName">{{item.aircraftTypeName}}</option>
|
||||
<option *ngFor="let item of aircraftTypes" [value]="item.aircraftTypeCode">{{item.aircraftTypeName}}</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
@@ -77,8 +77,8 @@
|
||||
<td>{{aircraft.maxTakeoffWeight}}</td>
|
||||
<td>{{aircraft.maxAirbridges}}</td>
|
||||
<td>{{aircraft.aircraftOwnerCode}}</td>
|
||||
<td>{{aircraft.airlineCode}}</td>
|
||||
<td>{{aircraft.aircraftTypeCode}}</td>
|
||||
<td>{{aircraft.airlineName}}</td>
|
||||
<td>{{aircraft.aircraftTypeName}}</td>
|
||||
<!-- <td *ngFor="let airline_col of aircraft_lists" [ngStyle]="{'background-color':getColor(airline_col.COL_CODE)}">{{airline_row['renderFlight'][airline_col.COL_CODE]}}</td> -->
|
||||
</tr>
|
||||
</tbody>
|
||||
|
||||
@@ -76,7 +76,7 @@ basicDataTransHandle() {
|
||||
this.render_data.forEach(item => {
|
||||
//机型数据转换处理
|
||||
let aircraftTypesLinkIndex = this.aircraftTypes.findIndex(val => val.aircraftTypeCode === item['aircraftTypeCode']);
|
||||
item['aircraftTypeCode'] = this.aircraftTypes[aircraftTypesLinkIndex].aircraftTypeName;
|
||||
item['aircraftTypeName'] = this.aircraftTypes[aircraftTypesLinkIndex].aircraftTypeName;
|
||||
})
|
||||
}
|
||||
|
||||
@@ -84,7 +84,7 @@ basicDataAirlinesHandle() {
|
||||
this.render_data.forEach(item => {
|
||||
//航空公司数据处理
|
||||
let airlinesLinkIndex = this.airlines.findIndex(val => val.airlineCode === item['airlineCode']);
|
||||
item['airlineCode'] = this.airlines[airlinesLinkIndex].airlineName;
|
||||
item['airlineName'] = this.airlines[airlinesLinkIndex].airlineName;
|
||||
})
|
||||
}
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user