|
@@ -61,6 +61,25 @@ export default {
|
|
|
shopList:[]
|
|
shopList:[]
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
|
|
+ watch:{
|
|
|
|
|
+ dropdownShow: {
|
|
|
|
|
+ deep: true, // 深度监听
|
|
|
|
|
+ handler(newVal, oldVal) {
|
|
|
|
|
+ if(newVal == true && oldVal == false) { // 开启门店弹窗,请求最新门店数据
|
|
|
|
|
+ this.shopList = []
|
|
|
|
|
+ shopAll().then(res=>{
|
|
|
|
|
+ if(res.code == 1){
|
|
|
|
|
+ if (!this.$util.isEmpty(res.data)){
|
|
|
|
|
+ res.data.forEach((i) => {
|
|
|
|
|
+ this.shopList.push({id:i.id,name:i.shopName})
|
|
|
|
|
+ })
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
computed:{
|
|
computed:{
|
|
|
...mapGetters(["getMyShopInfo"])
|
|
...mapGetters(["getMyShopInfo"])
|
|
|
},
|
|
},
|