Kaynağa Gözat

2025-12-05 10:51:12 全是bug

王哲 1 hafta önce
ebeveyn
işleme
5760f7c990

+ 27 - 0
monitor_ui/src/api/business/ai/rail.js

@@ -0,0 +1,27 @@
+import request from '@/utils/request'
+
+// 查询
+export function getRail(query) {
+  return request({
+    url: '/center-monitor/channelRail/get',
+    method: 'get',
+    params: query
+  })
+}
+
+// 新增
+export function addRail(query) {
+  return request({
+    url: '/center-monitor/channelRail/save',
+    method: 'post',
+    data: query
+  })
+}
+
+export function operatePresetPoint(query) {
+  return request({
+    url: '/center-monitor/DahuaController/operatePresetPoint',
+    method: 'get',
+    params: query
+  })
+}

Dosya farkı çok büyük olduğundan ihmal edildi
+ 794 - 701
monitor_ui/src/views/business/ai/algorithmtask/PolygonDrawer.vue


Dosya farkı çok büyük olduğundan ihmal edildi
+ 1009 - 0
monitor_ui/src/views/business/ai/algorithmtask/PolygonDrawer0.vue


Dosya farkı çok büyük olduğundan ihmal edildi
+ 1009 - 0
monitor_ui/src/views/business/ai/algorithmtask/PolygonDrawer5.vue


+ 5 - 2
monitor_ui/src/views/business/ai/algorithmtask/index.vue

@@ -649,7 +649,8 @@ export default {
     },
     // 绘制围栏
     drawFence(row) {
-      this.infoDraw = {channelName: row.channelName, channelId: row.channelCode, pointId: "", pointName: "", taskId: this.form.id, type: "0"};
+      console.log(row)
+      this.infoDraw = {channelName: row.channelName, channelId: row.channelCode, pointId: null, pointName: "", taskId: this.form.id, type: "0"};
       if (this.$refs.tree.getNode(row.channelCode).parent.data.url) {
         this.infoDraw.url = this.$refs.tree.getNode(row.channelCode).parent.data.url
       }
@@ -657,7 +658,9 @@ export default {
         if (response.data.code == 1000) {
           this.presetPoints = response.data.data.presetPoints
           this.openDraw = true
-          this.$refs.PolygonDrawer.clearCanvas()
+          this.$nextTick(()=>{
+            this.$refs.PolygonDrawer.clearCanvas()
+          })
         }
       })
       getRtsp(row.channelCode).then(response => {