From e021467d2a07b37b4b3a8eb5252198a5a371426a Mon Sep 17 00:00:00 2001
From: fangyuan <527392886@qq.com>
Date: 星期三, 14 十二月 2022 17:21:43 +0800
Subject: [PATCH] 趋势分析页面修改

---
 src/views/intelligentPatrol/trendAnalysis/index.vue |   15 ++++++++++++---
 1 files changed, 12 insertions(+), 3 deletions(-)

diff --git a/src/views/intelligentPatrol/trendAnalysis/index.vue b/src/views/intelligentPatrol/trendAnalysis/index.vue
index 17bde54..53778b5 100644
--- a/src/views/intelligentPatrol/trendAnalysis/index.vue
+++ b/src/views/intelligentPatrol/trendAnalysis/index.vue
@@ -37,7 +37,7 @@
     <div class="trend-main">
 
       <div class="map">
-            <MyMap></MyMap>
+            <MyMap :point="point" :zoom="zoom" :mark="mark"></MyMap>
       </div>
       <div class="trend-main-echarts" id="echarts">
 
@@ -78,7 +78,10 @@
       trendAnalysisList: [],
       highFlag: true,
       echarts: null,
-      pointName: null
+      pointName: null,
+      point: null,
+      mark: null,
+      zoom: null,
     }
   },
   methods: {
@@ -121,7 +124,13 @@
 
     pointClick(data) {
       this.pointName = data.name;
-      basecase.getPointTrendAnalysisData({ id: data.id })
+      this.point = {
+            x: data.latitude,
+            y: data.longitude,
+          };
+      this.zoom = 19;
+      this.mark = { title: data.address };
+      basecase.getPointTrendAnalysisData({ longitude: data.longitude,latitude: data.latitude })
           .then(res => {
             const countList = res.map(item => +item.count);
             this.renderEchart(countList);

--
Gitblit v1.8.0