MrShi
2025-03-19 5965c857d575f5b4ebc6e73345c992f4f5def4a3
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()
      })