|
@ -54,7 +54,8 @@ export default { |
|
|
}, |
|
|
}, |
|
|
props: { |
|
|
props: { |
|
|
visible: Boolean, |
|
|
visible: Boolean, |
|
|
deviceId: String |
|
|
deviceId: String, |
|
|
|
|
|
dialogData: Object |
|
|
}, |
|
|
}, |
|
|
data() { |
|
|
data() { |
|
|
return { |
|
|
return { |
|
@ -103,7 +104,9 @@ export default { |
|
|
}, |
|
|
}, |
|
|
methods: { |
|
|
methods: { |
|
|
controlClick: throttle(function (type) { |
|
|
controlClick: throttle(function (type) { |
|
|
|
|
|
if (this.dialogData.deviceState != "0") |
|
|
controlCamera(this.deviceId, type) |
|
|
controlCamera(this.deviceId, type) |
|
|
|
|
|
else this.$message.info("设备离线, 无法操作") |
|
|
}, 150), |
|
|
}, 150), |
|
|
async handleSwitcherChange(value, data) { |
|
|
async handleSwitcherChange(value, data) { |
|
|
let str = data.state ? "关闭" : "开启"; |
|
|
let str = data.state ? "关闭" : "开启"; |
|
|