From a2d430479667247b782dc2dc47cc3695cf8a7c28 Mon Sep 17 00:00:00 2001
From: zhanghua <314079846@qq.com>
Date: 星期二, 13 十二月 2022 16:46:48 +0800
Subject: [PATCH] 视频巡查优化

---
 src/views/intelligentPatrol/studyJudge/index.vue |   14 +++++++++++++-
 1 files changed, 13 insertions(+), 1 deletions(-)

diff --git a/src/views/intelligentPatrol/studyJudge/index.vue b/src/views/intelligentPatrol/studyJudge/index.vue
index 35d74c5..03bad9f 100644
--- a/src/views/intelligentPatrol/studyJudge/index.vue
+++ b/src/views/intelligentPatrol/studyJudge/index.vue
@@ -40,7 +40,9 @@
             <img :src="item" />
           </div>
         </div>
-        <div class="sjm-content-center">鍦板浘瀹瑰櫒</div>
+        <div class="sjm-content-center">
+          <!-- <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">
           <div class="card-box">
             <div class="card-header">
@@ -217,6 +219,11 @@
       })
       .catch((err) => this.$message.error(err));
   },
+  mounted() {
+    this.timer = setInterval(() => {
+      setTimeout(this.getInspectionData, 0)
+    }, 1000*10)
+  },
   data() {
     const validateCarNumber = (rule, value, callback) => {
       if (value) {
@@ -230,6 +237,7 @@
       }
     };
     return {
+      timer:null,
       countData: {
         study: 0,
         review: 0,
@@ -558,6 +566,10 @@
       return y + "-" + m + "-" + d + " " + h + ":" + minute + ":" + second;
     },
   },
+  beforeDestroy() {
+    clearInterval(this.timer);
+    this.timer = null;
+  }
 };
 </script>
 

--
Gitblit v1.8.0