From 117aa3c2249d32c337b8e234d116e5465798d484 Mon Sep 17 00:00:00 2001 From: jjLv <1981429112@qq.com> Date: Wed, 22 Jan 2025 15:53:05 +0800 Subject: [PATCH] =?UTF-8?q?feat(videoDeviceMgmt):=20=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E7=9B=91=E6=8E=A7=E8=B0=83=E8=AF=95=E9=A1=B5=E9=9D=A2=E7=9A=84?= =?UTF-8?q?=E6=8E=A7=E5=88=B6=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在 control 方法中实现了对不同操作指令的处理 - 添加了对上下左右移动、变焦、焦点调节、灯光控制、拍照和录像等动作的支持 - 优化了控制指令的打印输出,便于调试 --- .../videoDeviceMgmt/monitoringAndDebug.vue | 41 +++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/src/views/deviceManagement/videoDeviceMgmt/monitoringAndDebug.vue b/src/views/deviceManagement/videoDeviceMgmt/monitoringAndDebug.vue index 183f4b51..36736536 100644 --- a/src/views/deviceManagement/videoDeviceMgmt/monitoringAndDebug.vue +++ b/src/views/deviceManagement/videoDeviceMgmt/monitoringAndDebug.vue @@ -180,6 +180,47 @@ export default { methods: { control(action) { console.log('Control action:', action) + switch (action) { + case 'up': + console.log('Up') + break + case 'down': + console.log('Down') + break + case 'left': + console.log('Left') + break + case 'right': + console.log('Right') + break + case 'zoomIn': + console.log('Zoom In') + break + case 'zoomOut': + console.log('Zoom Out') + break + case 'focusIn': + console.log('Focus In') + break + case 'focusOut': + console.log('Focus Out') + break + case 'lightUp': + console.log('Light Up') + break + case 'lightDown': + console.log('Light Down') + break + case 'capture': + console.log('Capture') + break + case 'record': + console.log('Record') + break + default: + console.log('Unknown action:', action) + + } }, toggleCloud() { console.log('Toggle cloud platform')