فهرست منبع

优化花王城市

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 = [];