瀏覽代碼

优化花王城市

lurunzhen 2 月之前
父節點
當前提交
8602b23ac3
共有 1 個文件被更改,包括 6 次插入0 次删除
  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 = [];