| | |
| | | <!-- 机巢监控 --> |
| | | <template> |
| | | <CommonTitle title="视频监控" /> |
| | | <CommonTitle title="直播监控" /> |
| | | <div :style="{ marginLeft: pxToRem(14) }"> |
| | | <div class="machine-monitor"> |
| | | <LiveVideo :videoUrl="airPortUrl" /> |
| | |
| | | (newValue) => { |
| | | CurrentSn.value = Object.keys(newValue)[0]; |
| | | const currentDevice = newValue[CurrentSn.value]; |
| | | if (currentDevice.mode_code > 0) { |
| | | if (currentDevice && currentDevice?.mode_code > 0) { |
| | | isCurrentSn.value = true; |
| | | } else if (currentDevice.mode_code === 14) { |
| | | } else if (currentDevice && currentDevice?.mode_code === 14) { |
| | | isCurrentSn.value = false; |
| | | } else { |
| | | isCurrentSn.value = false; |