处理登机门、行李转盘、机位、值机柜台列表数据显示转换及下拉框选择列名查找定位功能及过滤精确匹配

This commit is contained in:
714943302@qq.com
2018-12-12 11:15:54 +08:00
parent e9845dd9bd
commit 3333a9f480
8 changed files with 80 additions and 13 deletions
@@ -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