shish 2 miesięcy temu
rodzic
commit
a843c0bbc1

+ 4 - 3
ghsApp/src/admin/custom/selectCustom.vue

@@ -136,11 +136,12 @@ export default {
       }
     },
     init() {
-      if(!this.no_shop_show_model) {
-        this._list();
-      }
+        this._list()
     },
     searchFn(e) {
+        if (this.$util.isEmpty(e)){
+          return false
+        }
         this.resetList();
         this.seekVal = e;
         this._list();

+ 1 - 3
ghsApp/src/admin/custom/visit.vue

@@ -94,9 +94,7 @@ export default {
 	},
   methods: {
     init() {
-      if(!this.no_shop_show_model) {
-        this.getVisit();
-      }
+        this.getVisit()
     },
     searchFn(e) {
       this.resetList();

+ 1 - 3
ghsApp/src/admin/shop/selectShop.vue

@@ -104,9 +104,7 @@ export default {
       }
     },
     init() {
-      if(!this.no_shop_show_model) {
-        this.getShopList();
-      }
+        this.getShopList()
     },
     searchFn(e) {
         this.resetList();

+ 0 - 3
ghsApp/src/mixins/globalMixins.js

@@ -18,7 +18,6 @@ export default {
 			$util: this.$util,
 			// 全局混入,插入全局跳转函数
       pageTo: pageTo,
-      no_shop_show_model: false,
       shopAdminId: null,
       show_login_model:false,
       //零售店对应的id
@@ -236,8 +235,6 @@ export default {
         //shish 20210615
         uni.removeStorageSync('HOME_REFRESH')
 
-        this.no_shop_show_model = false
-
         getShopInfo(true)
         //获取门店信息
         this.setUserShopAll();