|
|
@ -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 }, |
|
|
|