机场-城市、列表所在城市数据处理及选择列名、过滤、查找定位

This commit is contained in:
714943302@qq.com
2018-11-27 11:51:38 +08:00
parent 63f995b7d7
commit a48b40710d
2 changed files with 6 additions and 6 deletions
@@ -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 {