From 7c40e28b5287efad97e4a158522b620811febba4 Mon Sep 17 00:00:00 2001
From: fangyuan <527392886@qq.com>
Date: 星期四, 15 十二月 2022 16:42:12 +0800
Subject: [PATCH] 地图组件及趋势分析页面修改
---
src/components/map/index.vue | 8 +++++---
src/views/intelligentPatrol/trendAnalysis/index.vue | 4 ++--
2 files changed, 7 insertions(+), 5 deletions(-)
diff --git a/src/components/map/index.vue b/src/components/map/index.vue
index 2311dae..a39ac2e 100644
--- a/src/components/map/index.vue
+++ b/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({
diff --git a/src/views/intelligentPatrol/trendAnalysis/index.vue b/src/views/intelligentPatrol/trendAnalysis/index.vue
index ec296df..11608c0 100644
--- a/src/views/intelligentPatrol/trendAnalysis/index.vue
+++ b/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: {
--
Gitblit v1.8.0