智慧农业后台管理页面
guoshilong
2022-07-29 81e2e31406a7ca549e4d48c7ebfcbcbbe0f304fa
src/views/land/getMapDataInThere.vue
@@ -63,8 +63,20 @@
    },
    methods: {
        draw (usePolygons) {
            this.$store.commit("setpolygon", usePolygons) //用vuex传最终数据
            this.doThat(usePolygons)
            let arr = []
            usePolygons.forEach(item => {
                arr.push({
                    lng: item.split(' ')[0],
                    lat: item.split(' ')[1]
                })
            })
            console.log(arr, 23)
            this.$store.commit("setpolygon", arr) //用vuex传最终数据
            this.doThat(arr)
        },
        doThat (val) {
            this.checkDom("getMapDataRefs", (dom) => {