소스 검색

数据中心

彭宇 3 년 전
부모
커밋
89a57730c1
2개의 변경된 파일28개의 추가작업 그리고 7개의 파일을 삭제
  1. 14 3
      src/views/event.vue
  2. 14 4
      src/views/forest.vue

+ 14 - 3
src/views/event.vue

@@ -738,8 +738,14 @@
                 }
               }
               //this.preview("ZgVzqsjwA1DT3G85KJ7HH0");
-              this.preview(channelCode);
+              if(channelCode!=null&&channelCode.length>0){
+                this.preview(channelCode);
+              }else{
+                this.$modal.msg("没有匹配到相对应摄像头!!!");
+              }
             })
+          }else{
+            this.$modal.msg("没有匹配到相对应摄像头!!!");
           }
         } else if (tab.name == 'point') {
           setTimeout(() => {
@@ -811,9 +817,14 @@
                 }
               }
               //this.preview("ZgVzqsjwA1DT3G85KJ7HH0");
-              this.preview(channelCode);
+              if(channelCode!=null&&channelCode.length>0){
+                this.preview(channelCode);
+              }else{
+                this.$modal.msg("没有匹配到相对应摄像头!!!");
+              }
             })
-
+          }else{
+            this.$modal.msg("没有匹配到相对应摄像头!!!");
           }
         } else if (tab.name == 'point') {
           setTimeout(() => {

+ 14 - 4
src/views/forest.vue

@@ -982,9 +982,14 @@
                   channelCode.push(res.data[i].channelCode);
                 }
               }
-              //this.preview("ZgVzqsjwA1DT3G85KJ7HH0");
-              this.preview(channelCode);
+              if(channelCode!=null&&channelCode.length>0){
+                this.preview(channelCode);
+              }else{
+                this.$modal.msg("没有匹配到相对应摄像头!!!");
+              }
             })
+          }else{
+            this.$modal.msg("没有匹配到相对应摄像头!!!");
           }
         } else if (tab.name == 'point') {
           setTimeout(() => {
@@ -1069,9 +1074,14 @@
                 }
               }
               //this.preview("ZgVzqsjwA1DT3G85KJ7HH0");
-              this.preview(channelCode);
+              if(channelCode!=null&&channelCode.length>0){
+                this.preview(channelCode);
+              }else{
+                this.$modal.msg("没有匹配到相对应摄像头!!!");
+              }
             })
-
+          }else{
+            this.$modal.msg("没有匹配到相对应摄像头!!!");
           }
         } else if (tab.name == 'point') {
           setTimeout(() => {