智慧农业后台管理页面
xiebin
2022-08-02 2c8f7d06ec1694667e0d03a76b36eceed5f3bdbb
src/views/land/getMapDataInThere.vue
@@ -18,6 +18,12 @@
import MapInThere from "@/components/map/mainInThere.vue"
export default {
    name: "getMapData",
    props: {
      currentPolygons: {
        type: Array,
        default: []
      }
    },
    components: {
        MapInThere,
    },
@@ -38,6 +44,16 @@
                this.isCheck = false
            }
        },
      currentPolygons: {
          immediate: true,
        handler (newData, oldData) {
            console.log(newData, 5656)
            if (newData.length > 0) {
              this.draw(newData)
            }
        },
      }
    },
    data () {
        return {
@@ -64,6 +80,8 @@
    methods: {
        draw (usePolygons) {
          console.log(usePolygons, 456)
            let arr = []
            usePolygons.forEach(item => {