接口数据对接

This commit is contained in:
714943302@qq.com
2018-11-21 18:25:07 +08:00
parent afa2130c8d
commit 742d78e887
12 changed files with 669 additions and 1352 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="inputerInfo">
</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>
@@ -22,7 +22,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" (click)="clearFiter()">刷新</button>
</div>
</div>
@@ -37,7 +37,7 @@
</div>
<div class="input-container mr-4">
<label for="">国家:&nbsp;&nbsp;</label>
<select class="form-control" [(ngModel)]="filterItems.ZY" (ngModelChange)="selectChange()">
<select class="form-control" [(ngModel)]="citys" (ngModelChange)="selectChange()" id="citry">
<option value=""></option>
<option value="ZG">中国</option>
<option value="MG">美国</option>
@@ -64,22 +64,21 @@
<thead>
<tr>
<th>序号</th>
<!-- <th>城市代码</th>
<th>城市代码</th>
<th>城市中文名</th>
<th>城市英文名</th>
<th>所在国家</th> -->
<th *ngFor="let airline_col of city_lists">{{airline_col.COL_CN}}</th>
<th>所在国家</th>
<!-- <th *ngFor="let airline_col of city_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 city of citys;let i = index">
<td>{{i+1}}</td>
<!-- <td>{{airline_col.cityCode}}</td>
<td>{{airline_col.cityNameChn}}</td>
<td>{{airline_col.cityNameEng}}</td>
<td>{{airline_col.countryId}}</td> -->
<td *ngFor="let airline_col of city_lists" [ngStyle]="{'background-color':getColor(airline_col.COL_CODE)}">{{airline_row['renderFlight'][airline_col.COL_CODE]}}</td>
<td>{{city.cityCode}}</td>
<td>{{city.cityNameChn}}</td>
<td>{{city.cityNameEng}}</td>
<td>{{city.countryId}}</td>
<!-- <td *ngFor="let airline_col of city_lists" [ngStyle]="{'background-color':getColor(airline_col.COL_CODE)}">{{airline_row['renderFlight'][airline_col.COL_CODE]}}</td> -->
</tr>
</tbody>
</table>