doum
2025-09-08 55ba702c1df240929e68df3b42fa9cb0607378b8
admin/src/views/operation/site.vue
@@ -92,7 +92,6 @@
  },
  methods: {
    changeMap(e, row) {
      console.log(e);
      updateById({ ...row, electronicFence: JSON.stringify(e) }).then(res => {
        if (res) {
          Message.success('设置成功')
@@ -104,9 +103,9 @@
      this.$refs.MapRef.isShowModal = true
      this.$nextTick(() => {
        this.$refs.MapRef.row = row
        // if (row.electronicFence) {
        //   this.$refs.MapRef.polygons = JSON.parse(row.electronicFence)
        // }
        if (row.electronicFence) {
          this.$refs.MapRef.polygons = JSON.parse(row.electronicFence)
        }
        this.$refs.MapRef.initMap()
      })