Bladeren bron

no message

linwenxin 1 jaar geleden
bovenliggende
commit
1b6256a169
1 gewijzigde bestanden met toevoegingen van 17 en 12 verwijderingen
  1. 17 12
      src/views/bigViews/dataView1/components/mapdata.vue

+ 17 - 12
src/views/bigViews/dataView1/components/mapdata.vue

@@ -402,20 +402,25 @@ export default {
                 }
               } else {
                 // 商户
-                that.isSelectBool = params.name
-                that.pageNum = 1
-                that.total = 0
-                that.pagedatalist()
-                bigGetLarge11({
-                  // area: that.isSelectBool,
-                  city: that.userInfo.city,
-                  province: that.userInfo.province,
-                }).then(res => {
-                  that.cityInfo = res.data
-                })
+                if (!!cityColors[params.name]) {
+                  that.isSelectBool = params.name
+                  that.pageNum = 1
+                  that.total = 0
+                  that.pagedatalist()
+                  bigGetLarge11({
+                    // area: that.isSelectBool,
+                    city: that.userInfo.city,
+                    province: that.userInfo.province,
+                  }).then(res => {
+                    that.cityInfo = res.data
+                  })
+                }
               }
             }
-          } else {
+          }
+          if (!cityColors[params.name]) {
+            that.guanbitanchuang()
+            that.guanbitanchuang2()
           }
         });
       });