From 4c03db2f0d6b4320e670b770f4c1e252809303a3 Mon Sep 17 00:00:00 2001
From: fuliqi <fuliqi@qq.com>
Date: 星期三, 18 九月 2024 01:00:51 +0800
Subject: [PATCH] 大屏数据对接2

---
 src/views/screen/index.vue |   60 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++---
 1 files changed, 57 insertions(+), 3 deletions(-)

diff --git a/src/views/screen/index.vue b/src/views/screen/index.vue
index de0e889..a36e321 100644
--- a/src/views/screen/index.vue
+++ b/src/views/screen/index.vue
@@ -36,7 +36,7 @@
             <div class="statistics-container">
               <div class="DrawLine-content">
                 <!-- <div style="width: 100%; height: 100%" ref="myDrawLine"></div> -->
-                <lineChart :workOrderRegion = workOrderRegion></lineChart>
+                <lineChart :workOrderRegion=workOrderRegion></lineChart>
               </div>
             </div>
           </div>
@@ -44,7 +44,7 @@
       </div>
 
       <div class="map-container" ref="isMap">
-        <mapApp></mapApp>
+        <mapApp @clickMap="getDeptId" :geoCoordinates=scoreData></mapApp>
         <div class="btn-container">
           <img src="@/assets/images/btn-bg.png" class="bg-img"/>
           <div class="btn-list" v-model="activerBtnType">
@@ -192,7 +192,8 @@
   getNormalRate,
   checkFace,
   checkCar,
-  checkVideo
+  checkVideo,
+  checkScore
 } from "@/api/newpage";
 
 export default {
@@ -207,6 +208,50 @@
       faceList: [],
       workOrderData: [],
       workOrderRegion: [],
+      scoreData: {
+          鑷祦浜曞尯: [
+            {
+              value: 0,
+              name: '寰楀垎'
+            }
+          ],
+          楂樻柊鍖�: [
+            {
+              value: 0,
+              name: '寰楀垎'
+            }
+          ],
+          澶у畨鍖�: [
+            {
+              value: 0,
+              name: '寰楀垎'
+            }
+          ],
+          娌挎哗鍖�: [
+            {
+              value: 0,
+              name: '寰楀垎'
+            }
+          ],
+          璐′簳鍖�: [
+            {
+              value: 0,
+              name: '寰楀垎'
+            }
+          ],
+          鑽e幙: [
+            {
+              value: 0,
+              name: '寰楀垎'
+            }
+          ],
+          瀵岄『鍘�: [
+            {
+              value: 0,
+              name: '寰楀垎'
+            }
+          ]
+        },
       // 璁惧鏁版嵁
       facilityData: {
         video: [],
@@ -308,6 +353,14 @@
         })
         .catch((err) => {
         });
+      checkScore(this.activerBtnType, this.deptId)
+        .then((res) => {
+          if(res.data && Object.keys(res.data).length > 0){
+            this.scoreData = res.data;
+          }
+        })
+        .catch((err) => {
+        });
     },
     returnPath() {
       this.$router.push("/index");
@@ -340,6 +393,7 @@
       item2.color = '#ff7b72'
       item2.title = '鏈鐞嗗伐鍗曟暟'
       this.statistics.push(item2)
+      console.log( this.statistics)
     },
 
     videoData() {

--
Gitblit v1.8.0