Răsfoiți Sursa

清除废代码

wangcc 2 ani în urmă
părinte
comite
925c5fbb8a
1 a modificat fișierele cu 0 adăugiri și 12 ștergeri
  1. 0 12
      src/components/amap.vue

+ 0 - 12
src/components/amap.vue

@@ -113,7 +113,6 @@ export default {
       }
     },
     '$store.state.addr.selectStreet'(val) {
-      console.log(val);
       if (val.label && val.value && val.areaId) {
         this.map.remove(this.polygon);
         this.map.setCity(val.label);
@@ -124,7 +123,6 @@ export default {
         //   townId: this.$store.state.addr.selectStreet.areaId
         // });
         // that.map.setBounds(townPolygon.getBounds(), null, null, true);
-        console.log(this.leftPage);
         if (this.leftPage === 'forest') {
           this.addForestPolygon(this.smallClassMapArr);
           this.getForestSample(this.leftPage);
@@ -323,12 +321,10 @@ export default {
       deep: true,
       immediate: true,
       handler: function (val, oldVal) {
-        console.log(val);
         let _this = this;
         if (val) {
           if (val.baseLongitude && val.baseLatitude && !val.name) {
             let lanLatArr = [val.baseLongitude, val.baseLatitude];
-            console.log(lanLatArr);
             let treeSmallLabel =
               "<div class='info-small'>" +
               "<h5 class='marker-title'>" +
@@ -451,8 +447,6 @@ export default {
       });
     },
     getDistrict(adName, mapLevel) {
-      // street\
-      console.log(adName);
       if (mapLevel === 'street') {
         mapLevel = 'district';
       }
@@ -776,7 +770,6 @@ export default {
       });
     },
     mapPolygon() {
-      console.log(this.$store.state.addr.mapLevel);
       if (this.smallClassMapArr) {
         if (this.leftPage === 'forest') {
           this.addForestPolygon(this.smallClassMapArr);
@@ -1367,7 +1360,6 @@ export default {
     },
     putPolygon(selectStreet) {
       let that = this;
-      console.log(selectStreet);
       this.putPolygonData.forEach((element) => {
         this.boundaryPolygon = new AMap.Polygon({
           map: that.map,
@@ -1408,7 +1400,6 @@ export default {
           //   name: label,
           //   mapLevel: 'street'
           // });
-          console.log(this.streetData);
           var outer = [
             new AMap.LngLat(-360, 90, true),
             new AMap.LngLat(-360, -90, true),
@@ -1436,9 +1427,7 @@ export default {
           // });
           // that.map.setBounds(townPolygon.getBounds(), null, null, true);
           townPolygon.on('click', (e) => {
-            console.log(e.lnglat.lng, e.lnglat.lat);
           });
-          console.log(this.leftPage);
           if (this.leftPage === 'forest') {
             this.addForestPolygon(this.smallClassMapArr);
             this.getForestSample(this.leftPage);
@@ -1456,7 +1445,6 @@ export default {
     getTreePlant() {
       treePlant().then((res) => {
         this.treePlant = res.rows;
-        console.log(this.treePlant);
       });
     }
   }