Selaa lähdekoodia

事件流程确认后不可有误报、重复;短连接遮罩层;摄像头厂家判断

wang_xy 2 vuotta sitten
vanhempi
commit
eaadbfd6ff
1 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. 2 2
      src/components/eventLocation.vue

+ 2 - 2
src/components/eventLocation.vue

@@ -547,7 +547,7 @@ export default {
     },
     /** 预览按钮操作 */
     preview(cameraParam) {
-      if (cameraParam.type == '大华') {
+      if (cameraParam.type == '1') {
         getDahuaVideoServer().then(newResponse => {
           console.log(newResponse)
           this.ws.detectConnectQt().then(res => {
@@ -577,7 +577,7 @@ export default {
             }
           })
         })
-      } else if (cameraParam.type == '海康') {
+      } else if (cameraParam.type == '0') {
         let that = this
         that.cameraVisible = true
         getHaiKangVideoServer({ cameraCode: cameraParam.code }).then(newResponse => {