处理登机门、行李转盘、机位、值机柜台列表数据显示转换及下拉框选择列名查找定位功能及过滤精确匹配
This commit is contained in:
@@ -65,7 +65,7 @@
|
||||
<td>{{checkinDesk.checkindeskName}}</td>
|
||||
<td>{{checkinDesk.checkinGroupName}}</td>
|
||||
<td>{{checkinDesk.chutName}}</td>
|
||||
<td>{{checkinDesk.terminalAreaCode|terminalArea}}</td>
|
||||
<td>{{checkinDesk.terminalAreaName}}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
@@ -17,7 +17,7 @@ export class CheckinDeskComponent implements OnInit {
|
||||
{ col_code: 'checkindeskName', col_chn: '值机柜台名称' },
|
||||
{ col_code: 'checkinGroupName', col_chn: '值机岛' },
|
||||
{ col_code: 'chutName', col_chn: '行李传送带' },
|
||||
{ col_code: 'terminalAreaCode', col_chn: '航站楼区域' },
|
||||
{ col_code: 'terminalAreaName', col_chn: '航站楼区域' },
|
||||
]
|
||||
|
||||
// 搜索条件
|
||||
@@ -61,6 +61,10 @@ export class CheckinDeskComponent implements OnInit {
|
||||
this.basicDataService.terminal_area_subject.subscribe(
|
||||
data => {
|
||||
this.terminalAreas = data;
|
||||
//航站楼区域数据转换处理
|
||||
if(this.terminalAreas && this.terminalAreas.length > 0){
|
||||
this.terminalAreasHandle();
|
||||
}
|
||||
}
|
||||
)
|
||||
this.basicDataService.checkin_group_subject.subscribe(
|
||||
@@ -78,6 +82,8 @@ export class CheckinDeskComponent implements OnInit {
|
||||
this.basicDataTransHandle();
|
||||
//行李传送带数据转换处理
|
||||
this.chutsHandle();
|
||||
//航站楼区域数据转换处理
|
||||
this.terminalAreasHandle();
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -111,6 +117,16 @@ export class CheckinDeskComponent implements OnInit {
|
||||
})
|
||||
}
|
||||
|
||||
//航站楼区域数据转换处理
|
||||
terminalAreasHandle() {
|
||||
this.render_data.forEach(item => {
|
||||
let terminalAreasLinkIndex = this.terminalAreas.findIndex(val => val.terminalAreaCode === item['terminalAreaCode']);
|
||||
if(this.terminalAreas[terminalAreasLinkIndex]){
|
||||
item['terminalAreaName'] = this.terminalAreas[terminalAreasLinkIndex].terminalAreaName;
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* 选中某行
|
||||
* @param i
|
||||
|
||||
Reference in New Issue
Block a user