机位-航站楼区域数据显示处理
This commit is contained in:
@@ -38,6 +38,9 @@ ngOnInit() {
|
||||
data=>{
|
||||
this.stands = data;
|
||||
this.render_data = this.stands;
|
||||
if(this.terminalAreas && this.terminalAreas.length>0){//所属航站楼区域数据转换处理
|
||||
this.terminalAreasHandle();
|
||||
}
|
||||
}
|
||||
)
|
||||
//所属航站楼区域
|
||||
@@ -58,6 +61,14 @@ 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;
|
||||
})
|
||||
}
|
||||
|
||||
//输入框回车事件
|
||||
inputEnter() {
|
||||
if (this.FLT_POS === 1) {
|
||||
|
||||
Reference in New Issue
Block a user