机场-城市、列表所在城市数据处理及选择列名、过滤、查找定位
This commit is contained in:
@@ -64,7 +64,7 @@ ngOnInit() {
|
||||
basicDataTransHandle() {
|
||||
this.render_data.forEach(item => {
|
||||
let citysLinkIndex = this.citys.findIndex(val => val.cityId === item['cityId']);
|
||||
item['cityId'] = this.citys[citysLinkIndex].cityNameChn;
|
||||
item['cityName'] = this.citys[citysLinkIndex].cityNameChn;
|
||||
})
|
||||
}
|
||||
|
||||
@@ -92,7 +92,7 @@ selectChange() {
|
||||
let is_satis = true;
|
||||
for (const key in this.filterItems) {
|
||||
if (this.filterItems.hasOwnProperty(key) && this.filterItems[key]) {
|
||||
if (item[key] === this.filterItems[key]) {
|
||||
if (item[key] === +this.filterItems[key] || item[key] === this.filterItems[key]) {
|
||||
is_satis = true;
|
||||
continue;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user