Explorar o código

预制点控制

lyq hai 1 mes
pai
achega
dba80eccef

+ 8 - 0
monitor_ui/src/api/centerMonitor/rail/rail.js

@@ -17,3 +17,11 @@ export function addRail(query) {
     data: query
   })
 }
+
+export function operatePresetPoint(query) {
+  return request({
+    url: '/center-monitor/DahuaController/operatePresetPoint',
+    method: 'get',
+    params: query
+  })
+}

+ 3 - 1
monitor_ui/src/views/centerMonitor/camera/index.vue

@@ -680,7 +680,7 @@ import {
 import PolygonDrawer from './PolygonDrawer.vue'
 import { getPresetPoints } from '@/api/centerMonitor/LabelManagement/setLabel'
 import { getTasks, getRtsp } from '@/api/centerMonitor/camera/camerachannel'
-import { getRail } from '@/api/centerMonitor/rail/rail'
+import { getRail, operatePresetPoint } from '@/api/centerMonitor/rail/rail'
 
 
 /** ----------------------------------摄像头预览结束------------------------------------- */
@@ -2057,6 +2057,8 @@ export default {
       }
     },
     getDraws(point) {
+      point.operateType = 1
+      operatePresetPoint(point)
       this.infoDraw.pointId = point.presetPointCode
       this.infoDraw.pointName = point.presetPointName
       if (this.infoDraw.channelId && this.infoDraw.taskId && this.infoDraw.pointId && this.infoDraw.pointName && this.infoDraw.type) {