选择列名数据绑定加载及查找定位数据过滤筛选
This commit is contained in:
@@ -38,7 +38,8 @@
|
|||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr *ngFor="let chut of render_data;let i = index">
|
<tr *ngFor="let chut of render_data;let i = index" (click)="selectRow(chut)"
|
||||||
|
[ngClass]="{'selected':row_state===chut}">
|
||||||
<td>{{i+1}}</td>
|
<td>{{i+1}}</td>
|
||||||
<td>{{chut.chutCode}}</td>
|
<td>{{chut.chutCode}}</td>
|
||||||
<td>{{chut.chutName}}</td>
|
<td>{{chut.chutName}}</td>
|
||||||
|
|||||||
@@ -48,6 +48,14 @@ ngOnInit() {
|
|||||||
tableCont.addEventListener('scroll',scrollHandle);
|
tableCont.addEventListener('scroll',scrollHandle);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 选中某行
|
||||||
|
* @param i
|
||||||
|
*/
|
||||||
|
selectRow(i) {
|
||||||
|
this.row_state = i;
|
||||||
|
}
|
||||||
|
|
||||||
//输入框回车事件
|
//输入框回车事件
|
||||||
inputEnter() {
|
inputEnter() {
|
||||||
if (this.FLT_POS === 1) {
|
if (this.FLT_POS === 1) {
|
||||||
|
|||||||
@@ -21,7 +21,7 @@
|
|||||||
<div class="line-operator-right mb-3 col-xlg-4 col-mlg-4 col-xl-4 col-lg-1">
|
<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>
|
<!-- <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>
|
<button type="button" class="btn btn-info mr-3">刷新</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -38,7 +38,8 @@
|
|||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr *ngFor="let terminalArea of render_data;let i = index">
|
<tr *ngFor="let terminalArea of render_data;let i = index" (click)="selectRow(terminalArea)"
|
||||||
|
[ngClass]="{'selected':row_state===terminalArea}">
|
||||||
<td>{{i+1}}</td>
|
<td>{{i+1}}</td>
|
||||||
<td>{{terminalArea.terminalAreaCode}}</td>
|
<td>{{terminalArea.terminalAreaCode}}</td>
|
||||||
<td>{{terminalArea.terminalAreaName}}</td>
|
<td>{{terminalArea.terminalAreaName}}</td>
|
||||||
|
|||||||
@@ -48,6 +48,14 @@ ngOnInit() {
|
|||||||
tableCont.addEventListener('scroll',scrollHandle);
|
tableCont.addEventListener('scroll',scrollHandle);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 选中某行
|
||||||
|
* @param i
|
||||||
|
*/
|
||||||
|
selectRow(i) {
|
||||||
|
this.row_state = i;
|
||||||
|
}
|
||||||
|
|
||||||
//输入框回车事件
|
//输入框回车事件
|
||||||
inputEnter() {
|
inputEnter() {
|
||||||
if (this.FLT_POS === 1) {
|
if (this.FLT_POS === 1) {
|
||||||
|
|||||||
Reference in New Issue
Block a user