登机门选择列名数据绑定及查找定位数据过滤筛选

This commit is contained in:
714943302@qq.com
2018-11-23 11:58:10 +08:00
parent b9a432a11e
commit 08df98693f
2 changed files with 11 additions and 7 deletions
@@ -3,8 +3,13 @@
<div class="search-filter mb-3">
<div class="first-condition row">
<div class="line-operator-left input-container mb-3 col-xlg-8 col-mlg-8 col-xl-8 col-lg-10">
<select class="mr-4 form-control" name="" id="">
<select class="mr-4 form-control" [(ngModel)]="SEL_COL" name="" id="">
<option value="">选择列名</option>
<option value="gateCode">登机门代码</option>
<option value="gateName">登机门名称</option>
<option value="terminalAreaCode">航站楼区域</option>
<option value="gateStatus">资源状态</option>
<!-- <option *ngFor="let items of gates" [value]="items.titleInfo">{{items.titleInfo}}</option> -->
</select>
<label class="radio-inline custom-radio nowrap mr-4">
<input type="radio" [(ngModel)]="FLT_POS" [value]="1" name="filter-position">
@@ -45,7 +50,7 @@
<div id="table-container" class="table-container">
<table id="table" class="table table-bordered table-striped">
<thead>
<tr>
<tr id="titleInfo">
<th>序号</th>
<th>登机门代码</th>
<th>登机门名称</th>
@@ -55,9 +60,8 @@
</tr>
</thead>
<tbody>
<tr *ngFor="let gate of render_data;let i = index">
<!-- <tr *ngFor="let gate of render_data;let i = index" (click)="selectRow(gate)"
[ngClass]="{'selected':row_state===gate}"> -->
<tr *ngFor="let gate of render_data;let i = index" (click)="selectRow(gate)"
[ngClass]="{'selected':row_state===gate}">
<td>{{i+1}}</td>
<td>{{gate.gateCode}}</td>
<td>{{gate.gateName}}</td>
@@ -53,9 +53,9 @@ ngOnInit() {
* 选中某行
* @param i
*/
/* selectRow(i) {
selectRow(i) {
this.row_state = i;
} */
}
//输入框回车事件
inputEnter() {