机位选择列名数据绑定及查找定位数据过滤筛选
This commit is contained in:
@@ -5,6 +5,11 @@
|
||||
<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" [(ngModel)]="SEL_COL" name="" id="">
|
||||
<option value="">选择列名</option>
|
||||
<option value="standCode">机位代码</option>
|
||||
<option value="standName">机位名称</option>
|
||||
<option value="standType">机位类型</option>
|
||||
<option value="standStatus">资源状态</option>
|
||||
<option value="terminalAreaCode">航站楼区域</option>
|
||||
</select>
|
||||
<label class="radio-inline custom-radio nowrap mr-4">
|
||||
<input type="radio" [(ngModel)]="FLT_POS" [value]="1" name="filter-position">
|
||||
@@ -72,7 +77,8 @@
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr *ngFor="let stand of render_data;let i = index">
|
||||
<tr *ngFor="let stand of render_data;let i = index" (click)="selectRow(stand)"
|
||||
[ngClass]="{'selected':row_state===stand}">
|
||||
<td>{{i+1}}</td>
|
||||
<td>{{stand.standCode}}</td>
|
||||
<td>{{stand.standName}}</td>
|
||||
|
||||
@@ -60,6 +60,14 @@ inputEnter() {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 选中某行
|
||||
* @param i
|
||||
*/
|
||||
selectRow(i) {
|
||||
this.row_state = i;
|
||||
}
|
||||
|
||||
//下拉框选择筛选
|
||||
selectChange() {
|
||||
this.return_data = this.stands.filter(item=>{
|
||||
|
||||
Reference in New Issue
Block a user