ZZJ
2022-04-20 b4495445fbfc616a2126587ce9eec205fc1cbe19
src/views/hashrate/CameraManage/CameraRules/components/LinkageCameraBox.vue
@@ -16,7 +16,7 @@
        </div>
        <div class="body">
          <div class="row">
          <div class="row" v-if="camera.analytics">
            <div class="label">处理方式:</div>
            <div
              class="button pollingBtn"
@@ -120,19 +120,21 @@
    //实时、轮询切换
    changePoll(row, index) {
      if (!this.cameraArr[index].analytics) {
        return;
      }
      //判断是新增还是更新
      console.log(this.cameraArr[index]);
      if (
        this.cameraArr[index].cameraId &&
        this.cameraArr[index].cameraId !== undefined
      ) {
        console.log(1);
        if (this.PollData.RealTimeSum < this.PollData.channelTotal) {
          if (row) {
            console.log(2);
            this.cameraArr[index].dealWay = true;
          } else {
            console.log(3);
            this.cameraArr[index].dealWay = false;
          }
          changeRunType({
@@ -188,9 +190,10 @@
        const rsp = await getCameraInfo(id);
        if (rsp.success) {
          this.cameraArr.push({
            cameraId: rsp.data.id,
            cameraName: rsp.data.name ? rsp.data.name : "",
            analytics: rsp.data.runType !== -1 ? true : false,
            dealWay: rsp.data.runType !== 1 ? true : false,
            dealWay: rsp.data.runType == 1 ? true : false,
            camearInfo: {
              resolutionWidth: rsp.data.resolutionWidth,
              resolutionHeight: rsp.data.resolutionHeight,