Browse Source

电视墙bug修复

王通 1 năm trước cách đây
mục cha
commit
769d3dcc5a
1 tập tin đã thay đổi với 8 bổ sung2 xóa
  1. 8 2
      src/components/TVWall.vue

+ 8 - 2
src/components/TVWall.vue

@@ -386,7 +386,7 @@ export default {
           'ctrlCode': 'ctrl1',
           'ctrlProperty': {
             'displayMode': 1,
-            'splitNum': (array.length==1?1:4),
+            'splitNum': 4,
             'channelList': [
               {
                 'channelId': ''
@@ -397,6 +397,9 @@ export default {
           'domId': 'dom1'
         }
       ]
+      if(array1 != undefined && array1 != null ){
+        params.ctrlProperty.splitNum = (array1.length == 1 ? 1 : 4)
+      }
       this.setPos()
       this.customizeTree(tvListJson);
       _this.ws.createCtrl(params);
@@ -530,7 +533,7 @@ export default {
           'ctrlCode': 'ctrl1',
           'ctrlProperty': {
             'displayMode': 1,
-            'splitNum': (bfArray.length==1?1:4),
+            'splitNum': 4,
             'channelList': [
               {
                 'channelId': ''
@@ -541,6 +544,9 @@ export default {
           'domId': 'dom1'
         }
       ]
+      if (bfArray != undefined && bfArray != null) {
+        params[0].ctrlProperty.splitNum = (bfArray.length == 1 ? 1 : 4)
+      }
       this.setPos()
       this.customizeTree(tvListJson);
       let length = tvListJson[0].treeLabels.length > 4 ? 5 : tvListJson[0].treeLabels.length;