处理登机门、行李转盘、机位、值机柜台列表数据显示转换及下拉框选择列名查找定位功能及过滤精确匹配
This commit is contained in:
@@ -18,7 +18,7 @@ export class StandComponent implements OnInit {
|
||||
{ col_code: 'standName', col_chn: '机位名称' },
|
||||
{ col_code: 'standType', col_chn: '机位类型' },
|
||||
{ col_code: 'standStatus', col_chn: '资源状态' },
|
||||
{ col_code: 'terminalAreaCode', col_chn: '航站楼区域' },
|
||||
{ col_code: 'terminalAreaName', col_chn: '航站楼区域' },
|
||||
]
|
||||
|
||||
// 搜索条件
|
||||
@@ -51,8 +51,16 @@ export class StandComponent implements OnInit {
|
||||
this.basicDataService.terminal_area_subject.subscribe(
|
||||
data => {
|
||||
this.terminalAreas = data;
|
||||
//航站楼区域数据转换处理
|
||||
if(this.terminalAreas && this.terminalAreas.length > 0){
|
||||
this.basicDataTransHandle();
|
||||
}
|
||||
}
|
||||
)
|
||||
//航站楼区域数据转换处理
|
||||
if(this.render_data){
|
||||
this.basicDataTransHandle();
|
||||
}
|
||||
/**
|
||||
* 固定表头
|
||||
*/
|
||||
@@ -64,6 +72,16 @@ export class StandComponent implements OnInit {
|
||||
tableCont.addEventListener('scroll', scrollHandle);
|
||||
}
|
||||
|
||||
//航站楼区域数据转换处理
|
||||
basicDataTransHandle() {
|
||||
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;
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
//输入框回车事件
|
||||
inputEnter() {
|
||||
if (this.FLT_POS === 1) {
|
||||
@@ -119,7 +137,6 @@ export class StandComponent implements OnInit {
|
||||
return false;
|
||||
}
|
||||
})
|
||||
|
||||
} else {
|
||||
this.render_data = filterData.filter(item => {
|
||||
let is_satis = false;
|
||||
@@ -186,7 +203,6 @@ export class StandComponent implements OnInit {
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
if (transArray.length > 0) {
|
||||
if (transArray.toString() == this.positionArray.toString()) {
|
||||
this.positionArrayIndex++;
|
||||
|
||||
Reference in New Issue
Block a user