Przeglądaj źródła

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

wang_xy 2 lat temu
rodzic
commit
3bf5f54dff

+ 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 => {

+ 2 - 2
src/views/eventdetailsdialog.vue

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

+ 2 - 2
src/views/firespread.vue

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

+ 2 - 2
src/views/monitor.vue

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