基础数据列表显示处理
This commit is contained in:
@@ -67,16 +67,12 @@ export class AircraftComponent implements OnInit {
|
||||
this.aircraftTypes = data;
|
||||
}
|
||||
)
|
||||
if(this.render_data){
|
||||
//机型数据转换处理
|
||||
this.render_data.forEach(item => {
|
||||
let aircraftTypesLinkIndex = this.aircraftTypes.findIndex(val => val.aircraftTypeCode === item['aircraftTypeCode']);
|
||||
item['aircraftTypeName'] = this.aircraftTypes[aircraftTypesLinkIndex].aircraftTypeName;
|
||||
})
|
||||
this.basicDataTransHandle();
|
||||
//航空公司数据转换处理
|
||||
this.render_data.forEach(item => {
|
||||
let airlinesLinkIndex = this.airlines.findIndex(val => val.airlineCode === item['airlineCode']);
|
||||
item['airlineName'] = this.airlines[airlinesLinkIndex].airlineName;
|
||||
})
|
||||
this.airlinesHandle();
|
||||
}
|
||||
/**
|
||||
* 固定表头
|
||||
*/
|
||||
|
||||
@@ -66,10 +66,9 @@ export class AirportComponent implements OnInit {
|
||||
data => this.airportgroups = data
|
||||
)
|
||||
//城市数据转换处理
|
||||
this.render_data.forEach(item => {
|
||||
let citysLinkIndex = this.citys.findIndex(val => val.cityId === item['cityId']);
|
||||
item['cityNameChn'] = this.citys[citysLinkIndex].cityNameChn;
|
||||
})
|
||||
if(this.render_data){
|
||||
this.basicDataTransHandle();
|
||||
}
|
||||
/**
|
||||
* 固定表头
|
||||
*/
|
||||
|
||||
@@ -73,15 +73,13 @@ export class CheckinDeskComponent implements OnInit {
|
||||
this.chuts = data;
|
||||
}
|
||||
)
|
||||
this.render_data.forEach(item => {//值机岛数据转换处理
|
||||
let checkinGroupsLinkIndex = this.checkinGroups.findIndex(val => val.checkinGroupCode === item['checkinGroupCode']);
|
||||
item['checkinGroupName'] = this.checkinGroups[checkinGroupsLinkIndex].checkinGroupName;
|
||||
})
|
||||
if(this.render_data){
|
||||
//值机岛列表数据转换
|
||||
this.basicDataTransHandle();
|
||||
//行李传送带数据转换处理
|
||||
this.render_data.forEach(item => {
|
||||
let chutsLinkIndex = this.chuts.findIndex(val => val.chutCode === item['chutCode']);
|
||||
item['chutName'] = this.chuts[chutsLinkIndex].chutName;
|
||||
})
|
||||
this.chutsHandle();
|
||||
}
|
||||
|
||||
/**
|
||||
* 固定表头
|
||||
*/
|
||||
|
||||
@@ -53,10 +53,10 @@ export class CityComponent implements OnInit {
|
||||
}
|
||||
}
|
||||
)
|
||||
this.render_data.forEach(item => {//国家数据转换处理
|
||||
let countryLinkIndex = this.countrys.findIndex(val => val.countryId === item['countryId']);
|
||||
item['countryNameChn'] = this.countrys[countryLinkIndex].countryNameChn;
|
||||
})
|
||||
if(this.render_data){
|
||||
//国家列表数据转换
|
||||
this.basicDataTransHandle();
|
||||
}
|
||||
/**
|
||||
* 固定表头
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user