From 0dd273d72cf159a47006a63eb8ac85a1c9abea47 Mon Sep 17 00:00:00 2001
From: zhanghua <314079846@qq.com>
Date: 星期二, 13 十二月 2022 21:12:55 +0800
Subject: [PATCH] 地图

---
 src/views/intelligentPatrol/studyJudge/index.vue |   20 +++++++++++++++-----
 1 files changed, 15 insertions(+), 5 deletions(-)

diff --git a/src/views/intelligentPatrol/studyJudge/index.vue b/src/views/intelligentPatrol/studyJudge/index.vue
index 03bad9f..c71e937 100644
--- a/src/views/intelligentPatrol/studyJudge/index.vue
+++ b/src/views/intelligentPatrol/studyJudge/index.vue
@@ -41,6 +41,9 @@
           </div>
         </div>
         <div class="sjm-content-center">
+          <div class="map">
+            <MyMap></MyMap>
+          </div>
           <!-- <iframe src="https://183.245.159.161:8282/OneMap/index.html#/OneMap?code=2&clientVersion=&skin=white&locale=zh&otherAuthor=allowable"></iframe> -->
         </div>
         <div class="sjm-content-right">
@@ -185,8 +188,10 @@
 import { validateCarNum } from "@/utils/validate";
 import MyDispatch from "@/components/dispatch";
 
+import MyMap from "@/components/map";
+
 export default {
-  components: { MyDispatch },
+  components: { MyDispatch, MyMap },
   created() {
     this.getInspectionData();
     this.initEventParams();
@@ -221,8 +226,8 @@
   },
   mounted() {
     this.timer = setInterval(() => {
-      setTimeout(this.getInspectionData, 0)
-    }, 1000*10)
+      setTimeout(this.getInspectionData, 0);
+    }, 1000 * 10);
   },
   data() {
     const validateCarNumber = (rule, value, callback) => {
@@ -237,7 +242,7 @@
       }
     };
     return {
-      timer:null,
+      timer: null,
       countData: {
         study: 0,
         review: 0,
@@ -569,7 +574,7 @@
   beforeDestroy() {
     clearInterval(this.timer);
     this.timer = null;
-  }
+  },
 };
 </script>
 
@@ -658,4 +663,9 @@
     color: #4b9bb7;
   }
 }
+
+.map {
+  height: 488px;
+  min-width: 460px;
+}
 </style>

--
Gitblit v1.8.0