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 {