| | |
| | | <div class="label">处理方式:</div> |
| | | <div |
| | | class="button pollingBtn" |
| | | :class="{ active: camera.analytics && !camera.dealWay }" |
| | | :class="{ active: !camera.dealWay }" |
| | | @click="changePoll(false)" |
| | | > |
| | | 轮询 |
| | | </div> |
| | | <div |
| | | class="button realtimeBtn" |
| | | :class="{ active: camera.analytics && camera.dealWay }" |
| | | :class="{ active: camera.dealWay }" |
| | | @click="changePoll(true)" |
| | | > |
| | | 实时 |
| | |
| | | |
| | | //实时、轮询切换 |
| | | changePoll(row) { |
| | | if (!this.camera.analytics) { |
| | | return; |
| | | } |
| | | |
| | | //判断是新增还是更新 |
| | | if (this.camera.cameraId && this.camera.cameraId !== undefined) { |
| | | if (this.PollData.RealTimeSum < this.PollData.channelTotal) { |
| | |
| | | } else { |
| | | this.camera.dealWay = false; |
| | | } |
| | | debugger; |
| | | changeRunType({ |
| | | camera_ids: [this.camera.cameraId], |
| | | run_type: this.camera.dealWay ? 1 : 0, |