处理登机门、行李转盘、机位、值机柜台列表数据显示转换及下拉框选择列名查找定位功能及过滤精确匹配
This commit is contained in:
@@ -60,7 +60,7 @@
|
|||||||
<td>{{i+1}}</td>
|
<td>{{i+1}}</td>
|
||||||
<td>{{carousel.carouselCode}}</td>
|
<td>{{carousel.carouselCode}}</td>
|
||||||
<td>{{carousel.carouselName}}</td>
|
<td>{{carousel.carouselName}}</td>
|
||||||
<td>{{carousel.terminalAreaCode|terminalArea}}</td>
|
<td>{{carousel.terminalAreaName}}</td>
|
||||||
<td>{{carousel.carouselStatus}}</td>
|
<td>{{carousel.carouselStatus}}</td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ export class CarouselComponent implements OnInit {
|
|||||||
public col_lists = [
|
public col_lists = [
|
||||||
{ col_code: 'carouselCode', col_chn: '行李转盘代码' },
|
{ col_code: 'carouselCode', col_chn: '行李转盘代码' },
|
||||||
{ col_code: 'carouselName', col_chn: '行李转盘名称' },
|
{ col_code: 'carouselName', col_chn: '行李转盘名称' },
|
||||||
{ col_code: 'terminalAreaCode', col_chn: '航站楼区域' },
|
{ col_code: 'terminalAreaName', col_chn: '航站楼区域' },
|
||||||
{ col_code: 'carouselStatus', col_chn: '资源状态' },
|
{ col_code: 'carouselStatus', col_chn: '资源状态' },
|
||||||
]
|
]
|
||||||
|
|
||||||
@@ -49,8 +49,16 @@ export class CarouselComponent implements OnInit {
|
|||||||
this.basicDataService.terminal_area_subject.subscribe(
|
this.basicDataService.terminal_area_subject.subscribe(
|
||||||
data => {
|
data => {
|
||||||
this.terminalAreas = data;
|
this.terminalAreas = data;
|
||||||
|
//航站楼区域数据转换处理
|
||||||
|
if(this.terminalAreas && this.terminalAreas.length > 0){
|
||||||
|
this.basicDataTransHandle();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
//航站楼区域数据转换处理
|
||||||
|
if(this.render_data){
|
||||||
|
this.basicDataTransHandle();
|
||||||
|
}
|
||||||
/**
|
/**
|
||||||
* 固定表头
|
* 固定表头
|
||||||
*/
|
*/
|
||||||
@@ -62,6 +70,16 @@ export class CarouselComponent implements OnInit {
|
|||||||
tableCont.addEventListener('scroll', scrollHandle);
|
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;
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 选中某行
|
* 选中某行
|
||||||
* @param i
|
* @param i
|
||||||
@@ -118,7 +136,6 @@ export class CarouselComponent implements OnInit {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
this.render_data = filterData.filter(item => {
|
this.render_data = filterData.filter(item => {
|
||||||
let is_satis = false;
|
let is_satis = false;
|
||||||
@@ -185,7 +202,6 @@ export class CarouselComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
if (transArray.length > 0) {
|
if (transArray.length > 0) {
|
||||||
if (transArray.toString() == this.positionArray.toString()) {
|
if (transArray.toString() == this.positionArray.toString()) {
|
||||||
this.positionArrayIndex++;
|
this.positionArrayIndex++;
|
||||||
|
|||||||
@@ -65,7 +65,7 @@
|
|||||||
<td>{{checkinDesk.checkindeskName}}</td>
|
<td>{{checkinDesk.checkindeskName}}</td>
|
||||||
<td>{{checkinDesk.checkinGroupName}}</td>
|
<td>{{checkinDesk.checkinGroupName}}</td>
|
||||||
<td>{{checkinDesk.chutName}}</td>
|
<td>{{checkinDesk.chutName}}</td>
|
||||||
<td>{{checkinDesk.terminalAreaCode|terminalArea}}</td>
|
<td>{{checkinDesk.terminalAreaName}}</td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ export class CheckinDeskComponent implements OnInit {
|
|||||||
{ col_code: 'checkindeskName', col_chn: '值机柜台名称' },
|
{ col_code: 'checkindeskName', col_chn: '值机柜台名称' },
|
||||||
{ col_code: 'checkinGroupName', col_chn: '值机岛' },
|
{ col_code: 'checkinGroupName', col_chn: '值机岛' },
|
||||||
{ col_code: 'chutName', 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(
|
this.basicDataService.terminal_area_subject.subscribe(
|
||||||
data => {
|
data => {
|
||||||
this.terminalAreas = data;
|
this.terminalAreas = data;
|
||||||
|
//航站楼区域数据转换处理
|
||||||
|
if(this.terminalAreas && this.terminalAreas.length > 0){
|
||||||
|
this.terminalAreasHandle();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
this.basicDataService.checkin_group_subject.subscribe(
|
this.basicDataService.checkin_group_subject.subscribe(
|
||||||
@@ -78,6 +82,8 @@ export class CheckinDeskComponent implements OnInit {
|
|||||||
this.basicDataTransHandle();
|
this.basicDataTransHandle();
|
||||||
//行李传送带数据转换处理
|
//行李传送带数据转换处理
|
||||||
this.chutsHandle();
|
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
|
* @param i
|
||||||
|
|||||||
@@ -61,7 +61,7 @@
|
|||||||
<td>{{i+1}}</td>
|
<td>{{i+1}}</td>
|
||||||
<td>{{gate.gateCode}}</td>
|
<td>{{gate.gateCode}}</td>
|
||||||
<td>{{gate.gateName}}</td>
|
<td>{{gate.gateName}}</td>
|
||||||
<td>{{gate.terminalAreaCode|terminalArea}}</td>
|
<td>{{gate.terminalAreaName}}</td>
|
||||||
<td>{{gate.gateStatus}}</td>
|
<td>{{gate.gateStatus}}</td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ export class GateComponent implements OnInit {
|
|||||||
public col_lists = [
|
public col_lists = [
|
||||||
{ col_code: 'gateCode', col_chn: '登机门代码' },
|
{ col_code: 'gateCode', col_chn: '登机门代码' },
|
||||||
{ col_code: 'gateName', col_chn: '登机门名称' },
|
{ col_code: 'gateName', col_chn: '登机门名称' },
|
||||||
{ col_code: 'terminalAreaCode', col_chn: '航站楼区域' },
|
{ col_code: 'terminalAreaName', col_chn: '航站楼区域' },
|
||||||
{ col_code: 'gateStatus', col_chn: '资源状态' },
|
{ col_code: 'gateStatus', col_chn: '资源状态' },
|
||||||
]
|
]
|
||||||
|
|
||||||
@@ -46,8 +46,18 @@ export class GateComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
)
|
)
|
||||||
this.basicDataService.terminal_area_subject.subscribe(
|
this.basicDataService.terminal_area_subject.subscribe(
|
||||||
data => this.terminalAreas = data
|
data => {
|
||||||
|
this.terminalAreas = data;
|
||||||
|
//航站楼区域数据转换处理
|
||||||
|
if(this.terminalAreas && this.terminalAreas.length > 0){
|
||||||
|
this.basicDataTransHandle();
|
||||||
|
}
|
||||||
|
}
|
||||||
)
|
)
|
||||||
|
//航站楼区域数据转换处理
|
||||||
|
if(this.render_data){
|
||||||
|
this.basicDataTransHandle();
|
||||||
|
}
|
||||||
/**
|
/**
|
||||||
* 固定表头
|
* 固定表头
|
||||||
*/
|
*/
|
||||||
@@ -59,6 +69,15 @@ export class GateComponent implements OnInit {
|
|||||||
tableCont.addEventListener('scroll', scrollHandle);
|
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;
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 选中某行
|
* 选中某行
|
||||||
|
|||||||
@@ -75,7 +75,7 @@
|
|||||||
<td>{{stand.standName}}</td>
|
<td>{{stand.standName}}</td>
|
||||||
<td>{{stand.standType}}</td>
|
<td>{{stand.standType}}</td>
|
||||||
<td>{{stand.standStatus}}</td>
|
<td>{{stand.standStatus}}</td>
|
||||||
<td>{{stand.terminalAreaCode|terminalArea}}</td>
|
<td>{{stand.terminalAreaName}}</td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ export class StandComponent implements OnInit {
|
|||||||
{ col_code: 'standName', col_chn: '机位名称' },
|
{ col_code: 'standName', col_chn: '机位名称' },
|
||||||
{ col_code: 'standType', col_chn: '机位类型' },
|
{ col_code: 'standType', col_chn: '机位类型' },
|
||||||
{ col_code: 'standStatus', 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(
|
this.basicDataService.terminal_area_subject.subscribe(
|
||||||
data => {
|
data => {
|
||||||
this.terminalAreas = 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);
|
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() {
|
inputEnter() {
|
||||||
if (this.FLT_POS === 1) {
|
if (this.FLT_POS === 1) {
|
||||||
@@ -119,7 +137,6 @@ export class StandComponent implements OnInit {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
this.render_data = filterData.filter(item => {
|
this.render_data = filterData.filter(item => {
|
||||||
let is_satis = false;
|
let is_satis = false;
|
||||||
@@ -186,7 +203,6 @@ export class StandComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
if (transArray.length > 0) {
|
if (transArray.length > 0) {
|
||||||
if (transArray.toString() == this.positionArray.toString()) {
|
if (transArray.toString() == this.positionArray.toString()) {
|
||||||
this.positionArrayIndex++;
|
this.positionArrayIndex++;
|
||||||
|
|||||||
Reference in New Issue
Block a user