fangyuan
2022-12-15 7c40e28b5287efad97e4a158522b620811febba4
地图组件及趋势分析页面修改
2个文件已修改
12 ■■■■■ 已修改文件
src/components/map/index.vue 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/intelligentPatrol/trendAnalysis/index.vue 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/map/index.vue
@@ -12,6 +12,7 @@
    };
  },
  created() {
    debugger
    // if (this.point) {
    //   this._point = this.point;
    // }
@@ -22,10 +23,11 @@
  methods: {
    locationMap() {
      const that = this;
      debugger
      setTimeout(() => {
        console.log("_zoom---", that._zoom);
        console.log("_point---", JSON.stringify(that._point));
        that.map.setZoomAndCenter(that._zoom, [that._point.x, that._point.y]);
        // console.log("_zoom---", that.zoom);
        // console.log("_point---", JSON.stringify(that.point));
        that.map.setZoomAndCenter(that._zoom, [that.point.x, that.point.y]);
        if (that.mark) {
          // 创建一个 Marker 实例:
          var marker = new AMap.Marker({
src/views/intelligentPatrol/trendAnalysis/index.vue
@@ -79,9 +79,9 @@
      highFlag: true,
      echarts: null,
      pointName: null,
      point: null,
      point: { x: "119.27179890", y: "28.59027084" },
      mark: null,
      zoom: null,
      zoom: 15,
    }
  },
  methods: {