机位优化及查找定位精确筛选

This commit is contained in:
714943302@qq.com
2018-11-19 09:59:36 +08:00
parent 81ebd5728e
commit c7fa745eb9
3 changed files with 261 additions and 423 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) = "inputFliter()">
<input class="form-control" [(ngModel)]="SEARCH" type="text" (keyup.enter) = "inputEnter()">
</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>
@@ -26,7 +26,7 @@
<div class="second-condition mb-3 row">
<div class="input-container mr-4">
<label for="">所属航站楼区域:&nbsp;&nbsp;</label>
<select class="form-control" [(ngModel)]="filterItems.ZY" (ngModelChange)="inputFliter()">
<select class="form-control" [(ngModel)]="filterItems.ZY" (ngModelChange)="selectChange()">
<option value=""></option>
<option value="GH">国内区域</option>
<option value="CH">国际区域</option>
@@ -35,7 +35,7 @@
</div>
<div class="input-container mr-4">
<label for="">机位类型:&nbsp;&nbsp;</label>
<select class="form-control" [(ngModel)]="filterItems.HZ" (ngModelChange)="inputFliter()">
<select class="form-control" [(ngModel)]="filterItems.HZ" (ngModelChange)="selectChange()">
<option value=""></option>
<option value="YJW">远机位</option>
<option value="JJW">近机位</option>
@@ -45,7 +45,7 @@
</div>
<div class="input-container mr-4">
<label for="">资源状态:&nbsp;&nbsp;</label>
<select class="form-control" [(ngModel)]="filterItems.ZYZT" (ngModelChange)="inputFliter()">
<select class="form-control" [(ngModel)]="filterItems.ZYZT" (ngModelChange)="selectChange()">
<option value=""></option>
<option value="K">可用</option>
<option value="R">不可用</option>
@@ -55,18 +55,28 @@
</div>
<div class="airline-table">
<div class="table-container">
<table class="table table-bordered table-striped">
<div id="table-container" class="table-container">
<table id="table" class="table table-bordered table-striped">
<thead>
<tr>
<th>序号</th>
<!-- <th>机位代码</th>
<th>机位名称</th>
<th>机位类型</th>
<th>资源状态</th>
<th>航站楼区域</th> -->
<th *ngFor="let airline_col of stand_lists">{{airline_col.COL_CN}}</th>
</tr>
</thead>
<tbody>
<tr *ngFor="let airline_row of render_data;let i = index" (click)="selectRow(i)"
[ngClass]="{'active':row_state===i}">
<tr *ngFor="let airline_row of render_data;let i = index" (click)="selectRow(airline_row)"
[ngClass]="{'selected':row_state['renderFlight']===airline_row['renderFlight']}">
<td>{{i+1}}</td>
<!-- <td>{{airline_col.standCode}}</td>
<td>{{airline_col.standName}}</td>
<td>{{airline_col.standType}}</td>
<td>{{airline_col.standStatus}}</td>
<td>{{airline_col.terminalAreaCode}}</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>