Ver código fonte

优化花王城市

lurunzhen 2 meses atrás
pai
commit
8602b23ac3
1 arquivos alterados com 6 adições e 0 exclusões
  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 = [];