qinhouyu 1 年之前
父节点
当前提交
19c90c4515
共有 2 个文件被更改,包括 9 次插入3 次删除
  1. 8 2
      src/components/TVWall.vue
  2. 1 1
      src/views/forest.vue

+ 8 - 2
src/components/TVWall.vue

@@ -394,7 +394,7 @@ export default {
           'ctrlCode': 'ctrl1',
           'ctrlCode': 'ctrl1',
           'ctrlProperty': {
           'ctrlProperty': {
             'displayMode': 1,
             'displayMode': 1,
-            'splitNum': (array1.length == 1 ? 1 : 4),
+            'splitNum': 4,
             'channelList': [
             'channelList': [
               {
               {
                 'channelId': ''
                 'channelId': ''
@@ -405,6 +405,9 @@ export default {
           'domId': 'dom1'
           'domId': 'dom1'
         }
         }
       ]
       ]
+      if(array1 != undefined && array1 != null ){
+        params.ctrlProperty.splitNum = (array1.length == 1 ? 1 : 4)
+      }
       this.setPos()
       this.setPos()
       this.customizeTree(tvListJson);
       this.customizeTree(tvListJson);
       // if(array1.length == 1){
       // if(array1.length == 1){
@@ -543,7 +546,7 @@ export default {
           'ctrlCode': 'ctrl1',
           'ctrlCode': 'ctrl1',
           'ctrlProperty': {
           'ctrlProperty': {
             'displayMode': 1,
             'displayMode': 1,
-            "splitNum": (bfArray.length == 1 ? 1 : 4),
+            "splitNum": 4,
             'channelList': [
             'channelList': [
               {
               {
                 'channelId': ''
                 'channelId': ''
@@ -554,6 +557,9 @@ export default {
           'domId': 'dom1'
           'domId': 'dom1'
         }
         }
       ]
       ]
+      if (bfArray != undefined && bfArray != null) {
+        params[0].ctrlProperty.splitNum = (bfArray.length == 1 ? 1 : 4)
+      }
       this.setPos()
       this.setPos()
       this.customizeTree(tvListJson);
       this.customizeTree(tvListJson);
       let length = tvListJson[0].treeLabels.length > 4 ? 5 : tvListJson[0].treeLabels.length;
       let length = tvListJson[0].treeLabels.length > 4 ? 5 : tvListJson[0].treeLabels.length;

+ 1 - 1
src/views/forest.vue

@@ -1221,7 +1221,7 @@
         getBaseInfo().then(res => {
         getBaseInfo().then(res => {
           if (res.code == 200) {
           if (res.code == 200) {
             if (res.msg == '暂无特色信息') {
             if (res.msg == '暂无特色信息') {
-              this.forestInfo = '暂无特色信息!'
+              this.forestInfo = '暂无基本情况!'
             } else {
             } else {
               this.forestInfo = res.data.baseinfo //基本情况
               this.forestInfo = res.data.baseinfo //基本情况
             }
             }