From d02a6f68e357c913371bbdd6c6bcd14075473c43 Mon Sep 17 00:00:00 2001 From: bb_pan Date: Fri, 24 Jan 2025 10:37:21 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BF=9C=E8=BF=91=E7=84=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../videoDeviceMgmt/monitoringAndDebug.vue | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/src/views/deviceManagement/videoDeviceMgmt/monitoringAndDebug.vue b/src/views/deviceManagement/videoDeviceMgmt/monitoringAndDebug.vue index 2d60b20b..9ee36589 100644 --- a/src/views/deviceManagement/videoDeviceMgmt/monitoringAndDebug.vue +++ b/src/views/deviceManagement/videoDeviceMgmt/monitoringAndDebug.vue @@ -251,9 +251,11 @@ export default { break case 'focusIn': console.log('Focus In') + this.handleFocusNear() break case 'focusOut': console.log('Focus Out') + this.handleFocusFar() break case 'lightUp': console.log('Light Up') @@ -419,6 +421,22 @@ export default { this.requestPost('PTZ/C_PTZ_ZoomOutPicture?token=' + this.qxToken, params, (rv) => {}) this.handleStopZoom() }, + // 聚焦-近 + handleFocusNear() { + const params = { + puid: this.row.puId, + idx: this.ballIndex, + } + this.requestPost('PTZ/C_PTZ_MakeFocusNear?token=' + this.qxToken, params, (rv) => {}) + }, + // 聚焦-远 + handleFocusFar() { + const params = { + puid: this.row.puId, + idx: this.ballIndex, + } + this.requestPost('PTZ/C_PTZ_MakeFocusFar?token=' + this.qxToken, params, (rv) => {}) + }, // 更新水印 async updateWaterMark() { try {