From 81c9b1f75b80fade52653243b914ccb2677b4a8f Mon Sep 17 00:00:00 2001 From: ZZJ <zzjdsg2300@163.com> Date: 星期二, 22 三月 2022 18:34:17 +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