值机柜台-值机岛、行李转送带、航站楼区域数据显示处理
This commit is contained in:
@@ -40,6 +40,15 @@ ngOnInit() {
|
||||
data=>{
|
||||
this.checkinDesks = data;
|
||||
this.render_data = this.checkinDesks;
|
||||
if(this.terminalAreas && this.terminalAreas.length>0){//所属航站楼区域数据转换处理
|
||||
this.terminalAreasHandle();
|
||||
}
|
||||
if(this.checkinGroups && this.checkinGroups.length>0){//值机岛数据转换处理
|
||||
this.checkinGroupsHandle();
|
||||
}
|
||||
if(this.checkinGroups && this.checkinGroups.length>0){//行李传送带数据转换处理
|
||||
this.chutsHandle();
|
||||
}
|
||||
}
|
||||
)
|
||||
//所属航站楼区域
|
||||
@@ -74,6 +83,36 @@ ngOnInit() {
|
||||
tableCont.addEventListener('scroll',scrollHandle);
|
||||
}
|
||||
|
||||
//所属航站楼区域数据转换处理
|
||||
terminalAreasHandle() {
|
||||
this.render_data.forEach(item => {
|
||||
let terminalAreasLinkIndex = this.terminalAreas.findIndex(val => val.terminalAreaCode === item['terminalAreaCode']);
|
||||
item['terminalAreaName'] = this.terminalAreas[terminalAreasLinkIndex].terminalAreaName;
|
||||
})
|
||||
}
|
||||
|
||||
//值机岛数据转换处理
|
||||
checkinGroupsHandle() {
|
||||
this.render_data.forEach(item => {
|
||||
let checkinGroupsLinkIndex = this.checkinGroups.findIndex(val => val.checkinGroupCode === item['checkinGroupCode']);
|
||||
let checkinGroups = this.checkinGroups[checkinGroupsLinkIndex].checkinGroupName
|
||||
if(checkinGroups !=null){
|
||||
item['checkinGroupName'] = checkinGroups;
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
//行李传送带数据转换处理
|
||||
chutsHandle() {
|
||||
this.render_data.forEach(item => {
|
||||
let chutsLinkIndex = this.chuts.findIndex(val => val.chutCode === item['chutCode']);
|
||||
let chuts = this.chuts[chutsLinkIndex].chutName
|
||||
if(chuts !=null && chuts !=""){
|
||||
item['chutName'] = chuts;
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* 选中某行
|
||||
* @param i
|
||||
|
||||
Reference in New Issue
Block a user