zhangzengfei
2022-03-23 d8944c4764c3fc4b7baf6b5c1586cf17c88b0bb1
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: {},