From 58bf48cea61c6c5b4381a4b8ff5b4a39eb4671eb Mon Sep 17 00:00:00 2001
From: ZZJ <10913410+zzj2100@user.noreply.gitee.com>
Date: 星期五, 10 六月 2022 09:36:03 +0800
Subject: [PATCH] 国标摄像机信息接口

---
 src/pages/analysisPower/index/App.vue |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/src/pages/analysisPower/index/App.vue b/src/pages/analysisPower/index/App.vue
index a5a1294..e5b7ce9 100644
--- a/src/pages/analysisPower/index/App.vue
+++ b/src/pages/analysisPower/index/App.vue
@@ -231,13 +231,15 @@
       return arry;
     },
     pollCycle() {
+      if (this.PollData.PollValidCount===0||!this.PollData.PollValidCount) {
+        return 0
+      }
       let sumPollingCamera = 0;
       this.PollData.CameraList.forEach(cam => {
         if (cam.run_type === 0) {
           sumPollingCamera++
         }
       })
-
       // 鎵�鏈夎疆璇㈢殑鎽勫儚鏈烘�绘暟 * 杞鏃堕棿 / 杞绠楀姏 - 1
       let ret = (sumPollingCamera * this.PollData.Config.poll_period) / this.PollData.PollValidCount - 1
       if (String(ret).indexOf(".") > 0) {

--
Gitblit v1.8.0