基础数据类型转换处理
This commit is contained in:
@@ -84,7 +84,9 @@ export class AirportComponent implements OnInit {
|
||||
basicDataTransHandle() {
|
||||
this.render_data.forEach(item => {
|
||||
let citysLinkIndex = this.citys.findIndex(val => val.cityId === item['cityId']);
|
||||
item['cityNameChn'] = this.citys[citysLinkIndex].cityNameChn;
|
||||
if(this.citys[citysLinkIndex]){
|
||||
item['cityNameChn'] = this.citys[citysLinkIndex].cityNameChn;
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user