From feaf0a9778879ef211c5587a513ba4cbdabb52d0 Mon Sep 17 00:00:00 2001 From: ZZJ <10913410+zzj2100@user.noreply.gitee.com> Date: 星期四, 23 六月 2022 17:42:58 +0800 Subject: [PATCH] bug修复 --- 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