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