| | |
| | | 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) { |
| | |
| | | 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) { |
| | |
| | | }, |
| | | data() { |
| | | return { |
| | | switchValue: true, |
| | | search: "", |
| | | timeout: null, |
| | | taskName: [], |
| | | dataList: [], |
| | | barChart: {}, |
| | | localDataChannel: 2, |
| | | showSysInfo: false, |
| | | drawer: false, |
| | | formData: {}, |