| | |
| | | </div> |
| | | |
| | | <div class="body"> |
| | | <div class="row"> |
| | | <div class="row" v-if="camera.analytics"> |
| | | <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)" |
| | | > |
| | | 实时 |
| | |
| | | <div class="label">分辨率:</div> |
| | | <div class="data"> |
| | | {{ |
| | | camera.camearInfo.resolution_width == 0 || |
| | | camera.camearInfo.resolution_height == 0 |
| | | camera.camearInfo.resolutionWidth == 0 || |
| | | camera.camearInfo.resolutionHeight == 0 || |
| | | !camera.camearInfo.resolutionHeight || |
| | | !camera.camearInfo.resolutionWidth |
| | | ? "本机分辨率" |
| | | : `${camera.camearInfo.resolution_width} * ${camera.camearInfo.resolution_height}` |
| | | : `${camera.camearInfo.resolutionWidth} * ${camera.camearInfo.resolutionHeight}` |
| | | }} |
| | | </div> |
| | | </div> |
| | | </div> |
| | | |
| | | <div class="footer"> |
| | | <div class="button addModel">添加到模板</div> |
| | | <!-- <div class="button addModel">添加到模板</div> --> |
| | | <div class="button addRule" @click="addRule">添加新场景</div> |
| | | </div> |
| | | </div> |
| | |
| | | |
| | | //实时、轮询切换 |
| | | 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, |
| | |
| | | |
| | | .footer { |
| | | box-sizing: border-box; |
| | | padding: 10px; |
| | | padding: 5px; |
| | | display: flex; |
| | | justify-content: center; |
| | | align-items: center; |
| | | |
| | | .addModel { |