浏览代码

电视墙修改

彭宇 2 年之前
父节点
当前提交
8439d5b399
共有 2 个文件被更改,包括 12 次插入12 次删除
  1. 8 8
      src/components/TVWall.vue
  2. 4 4
      src/components/TVWalls.vue

+ 8 - 8
src/components/TVWall.vue

@@ -390,12 +390,12 @@ export default {
       ]
       this.setPos()
       this.customizeTree(tvListJson);
-      if(array1.length == 1){
-        _this.realTimeVideoDialog(array1);
-      }else{
+      // if(array1.length == 1){
+      //   _this.realTimeVideoDialog(array1);
+      // }else{
         _this.ws.createCtrl(params);
         _this.playRealMonitorVideo(array)
-      }
+      // }
       setTimeout(() => {
         _this.rotation(longitude,latitude,array1)
       }, 5000)
@@ -526,12 +526,12 @@ export default {
       for (let i = 1; i < length; i++) {
         bfArray.push({"channelId": tvListJson[0].treeLabels[i].labelCode})
       }
-      if(bfArray.length == 1){
-        _this.realTimeVideoDialog([tvListJson[0].treeLabels[1].labelCode]);
-      }else{
+      // if(bfArray.length == 1){
+      //   _this.realTimeVideoDialog([tvListJson[0].treeLabels[1].labelCode]);
+      // }else{
         _this.ws.createCtrl(params);
         _this.playRealMonitorVideo(bfArray)
-      }
+      // }
     },
     setPos() {
       let target = document.getElementById(this.domId)

+ 4 - 4
src/components/TVWalls.vue

@@ -352,12 +352,12 @@ export default {
       ]
       this.setPos()
       this.customizeTree(tvListJson);
-      if(_this.stringList.length == 1){
-        _this.realTimeVideoDialog([_this.stringList[0]]);
-      }else{
+      // if(_this.stringList.length == 1){
+      //   _this.realTimeVideoDialog([_this.stringList[0]]);
+      // }else{
         _this.ws.createCtrl(params);
         _this.playRealMonitorVideo();
-      }
+      // }
       if (_this.data != undefined && _this.data != null) {
         setTimeout( _this.rotation(_this.data.longitude, _this.data.latitude, _this.stringList),5000)
       }