Sfoglia il codice sorgente

优化花王城市

lurunzhen 2 settimane fa
parent
commit
8602b23ac3
1 ha cambiato i file con 6 aggiunte e 0 eliminazioni
  1. 6 0
      src/views/goods/selectCity.vue

+ 6 - 0
src/views/goods/selectCity.vue

@@ -230,6 +230,12 @@ export default {
             }
             let filterCity = this.selectedCitys.filter(item => item.channel != channel);
             this.selectedCitys = filterCity.concat(this.citys.map(city => { return { cityId: city.id, city: city.cityName, channel: channel, province: city.province } }))
+           
+            if(this.activeTab == '花王'){ 
+                let that=this;
+                this.selectedCitys  =this.selectedCitys.filter(e => that.ckhuawangcity(e.cityId));
+                
+            }
         },
         selectAllNo() {
             this.selectedCitys = [];