智慧农业后台管理页面
guoshilong
2022-11-08 082613d446e29e4ec1c16bfaa52345106a498b23
src/views/land/getMapDataInThere.vue
@@ -19,10 +19,11 @@
export default {
    name: "getMapData",
    props: {
      currentPolygons: {
        type: Array,
        default: []
      }
        currentPolygons: {
            type: Array,
            // eslint-disable-next-line vue/require-valid-default-prop
            default: []
        }
    },
    components: {
        MapInThere,
@@ -44,16 +45,16 @@
                this.isCheck = false
            }
        },
      currentPolygons: {
          immediate: true,
        handler (newData, oldData) {
            console.log(newData, 5656)
            if (newData.length > 0) {
        currentPolygons: {
            immediate: true,
            handler (newData, oldData) {
                // console.log(newData, 5656)
                if (newData.length > 0) {
              this.draw(newData)
            }
        },
      }
                    this.draw(newData)
                }
            },
        }
    },
    data () {
        return {
@@ -63,9 +64,10 @@
            animateEnter: "animated fadeIn",
            animateLeave: "animated fadeOut",
            //未输入动画效果
            animateName: "custom-classes-transition",
            animateEnter: "animated fadeInDown",
            animateLeave: "animated fadeOut",
            openTitle: "路径1",
            MapDataShow: false,
            fromView: false,
@@ -80,7 +82,7 @@
    methods: {
        draw (usePolygons) {
          console.log(usePolygons, 456)
            console.log(usePolygons, 456)
            let arr = []
@@ -349,7 +351,8 @@
.list-leave {
    opacity: 1;
}
​ .list-enter-active,
.list-enter-active,
.list-leave-active {
    transition: all 0.3s;
}