Browse Source

feat 情报板附近相机 增加离线判断

wangqin
qingzhengli 8 months ago
parent
commit
36e1911ab2
  1. 5
      ruoyi-ui/src/views/JiHeExpressway/components/CameraShower/index.vue

5
ruoyi-ui/src/views/JiHeExpressway/components/CameraShower/index.vue

@ -118,7 +118,9 @@ export default {
},
methods: {
controlClick: throttle(function (type) {
controlCamera(this.selectedCamera.camId, type, false);
if (this.selectedCamera.deviceState != "0")
controlCamera(this.selectedCamera.camId, type, false);
else this.$message.info("设备离线, 无法操作")
}, 150),
onClose() {
this.$emit("update:visible", false)
@ -138,6 +140,7 @@ export default {
const deviceInfo = (await getDeviceInfo(this.selectedCamera.camId))?.[0] || {};
const childType = deviceInfo.childType;
this.$set(this.selectedCamera, 'childType', childType);
this.$set(this.selectedCamera, 'deviceState', deviceInfo.deviceState);
let cmr = this.selectedCamera;
this.cameraInfo = [
{ title: "道路名称", value: cmr.deptName },

Loading…
Cancel
Save