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 | 10 +++------- 1 files changed, 3 insertions(+), 7 deletions(-) diff --git a/src/pages/analysisPower/index/App.vue b/src/pages/analysisPower/index/App.vue index 1dc3b94..e5b7ce9 100644 --- a/src/pages/analysisPower/index/App.vue +++ b/src/pages/analysisPower/index/App.vue @@ -198,14 +198,10 @@ import { changeRunType, updatePollEnable, updatePollPeriod, updateChannelCount } from "@/api/pollConfig"; import Sysinfo from "@/components/subComponents/SystemInfo" -// import SliderVedio from '@/components/camera/slider-vedio' -// import eChartsBar from '@/components/subComponents/eChartsBar' export default { name: "PollSeting", components: { Sysinfo, - // SliderVedio, - // eChartsBar }, filters: { cameraType(type) { @@ -235,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) { @@ -267,13 +265,11 @@ }, data() { return { - switchValue: true, search: "", timeout: null, taskName: [], dataList: [], barChart: {}, - localDataChannel: 2, showSysInfo: false, drawer: false, formData: {}, -- Gitblit v1.8.0