航空公司接口数据对接

This commit is contained in:
714943302@qq.com
2018-11-21 18:18:50 +08:00
parent 06bd27b9b4
commit 4b14981b36
2 changed files with 70 additions and 272 deletions
@@ -14,7 +14,7 @@
<input type="radio" [(ngModel)]="FLT_POS" [value]="2" name="filter-position">
<span>查找定位</span>
</label>
<input class="form-control" [(ngModel)]="SEARCH" type="text" (keyup.enter) = "inputEnter()">
<input class="form-control" [(ngModel)]="SEARCH" type="text" (keyup.enter) = "inputEnter()" id="gl">
</div>
<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>
@@ -28,21 +28,17 @@
<div class="second-condition mb-3 row">
<div class="input-container mr-4">
<label for="">航空集团:&nbsp;&nbsp;</label>
<select [(ngModel)]="filterItems.JT" class="form-control" (ngModelChange)="selectChange()">
<label for="airlineName">航空集团:&nbsp;&nbsp;</label>
<select class="form-control" [(ngModel)]="filterItems.airlineName" (ngModelChange)="selectChange()" id="handkong">
<option value=""></option>
<option value="GH">国内航空集团</option>
<option value="CH">国际航空集团</option>
<option value="QH">其他航空集团</option>
<option *ngFor="let item of airlines" [value]="item.airlineName" >{{item.airlineName}}</option>
</select>
</div>
<div class="input-container mr-4">
<label for="">航班代理:&nbsp;&nbsp;</label>
<select [(ngModel)]="filterItems.HZ" class="form-control" (ngModelChange)="selectChange()">
<label for="briefNameChn">航班代理:&nbsp;&nbsp;</label>
<select class="form-control" (ngModelChange)="selectChange()" [(ngModel)]="filterItems.briefNameChn" id="hb">
<option value=""></option>
<option value="GZ">广州</option>
<option value="XG">香港华明</option>
<option value="QT">其他城市</option>
<option *ngFor="let items of airlines" [value]="items.briefNameChn">{{items.briefNameChn}}</option>
</select>
</div>
</div>
@@ -54,7 +50,7 @@
<thead>
<tr>
<th>序号</th>
<!-- <th>航空公司代码</th>
<th>航空公司代码</th>
<th>航空公司中文名</th>
<th>中文简称</th>
<th>航空公司英文名</th>
@@ -62,24 +58,23 @@
<th>IATA码</th>
<th>CAA码</th>
<th>ICAO码</th>
<th>上级母公司</th> -->
<th *ngFor="let airline_col of airline_lists">{{airline_col.COL_CN}}</th>
<th>上级母公司</th>
<!-- <th *ngFor="let airline_col of airline_lists">{{airline_col.COL_CN}}</th> -->
</tr>
</thead>
<tbody>
<tr *ngFor="let airline_row of render_data;let i = index" (click)="selectRow(airline_row)"
[ngClass]="{'selected':row_state['renderFlight']===airline_row['renderFlight']}">
<tr *ngFor="let airline of render_data;let i = index">
<td>{{i+1}}</td>
<!-- <td>{{airline_col.airlineCode}}</td>
<td>{{airline_col.airlineName}}</td>
<td>{{airline_col.briefNameChn}}</td>
<td>{{airline_col.airlineNameEng}}</td>
<td>{{airline_col.briefNameEng}}</td>
<td>{{airline_col.airlineCodeIata}}</td>
<td>{{airline_col.airlineCodeCaa}}</td>
<td>{{airline_col.airlineCodeIcao}}</td>
<td>{{airline_col.parentAirlineId}}</td> -->
<td *ngFor="let airline_col of airline_lists" [ngStyle]="{'background-color':getColor(airline_col.COL_CODE)}">{{airline_row['renderFlight'][airline_col.COL_CODE]}}</td>
<td>{{airline.airlineCode}}</td>
<td>{{airline.airlineName}}</td>
<td>{{airline.briefNameChn}}</td>
<td>{{airline.airlineNameEng}}</td>
<td>{{airline.briefNameEng}}</td>
<td>{{airline.airlineCodeIata}}</td>
<td>{{airline.airlineCodeCaa}}</td>
<td>{{airline.airlineCodeIcao}}</td>
<td>{{airline.parentAirlineId}}</td>
<!-- <td *ngFor="let airline_col of airline_lists" [ngStyle]="{'background-color':getColor(airline_col.COL_CODE)}">{{airline_row['renderFlight'][airline_col.COL_CODE]}}</td> -->
</tr>
</tbody>
</table>