基础数据类型转换处理
This commit is contained in:
@@ -72,7 +72,9 @@ export class CityComponent implements OnInit {
|
||||
basicDataTransHandle() {
|
||||
this.render_data.forEach(item => {
|
||||
let countryLinkIndex = this.countrys.findIndex(val => val.countryId === item['countryId']);
|
||||
item['countryNameChn'] = this.countrys[countryLinkIndex].countryNameChn;
|
||||
if(this.countrys[countryLinkIndex]){
|
||||
item['countryNameChn'] = this.countrys[countryLinkIndex].countryNameChn;
|
||||
}
|
||||
})
|
||||
}
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user