From d8944c4764c3fc4b7baf6b5c1586cf17c88b0bb1 Mon Sep 17 00:00:00 2001
From: zhangzengfei <zhangzengfei@smartai.com>
Date: 星期三, 23 三月 2022 22:38:20 +0800
Subject: [PATCH] 修改ztree复选框默认为父子联动

---
 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