qinhouyu 1 rok pred
rodič
commit
19c90c4515
2 zmenil súbory, kde vykonal 9 pridanie a 3 odobranie
  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',
           'ctrlProperty': {
             'displayMode': 1,
-            'splitNum': (array1.length == 1 ? 1 : 4),
+            'splitNum': 4,
             'channelList': [
               {
                 'channelId': ''
@@ -405,6 +405,9 @@ export default {
           'domId': 'dom1'
         }
       ]
+      if(array1 != undefined && array1 != null ){
+        params.ctrlProperty.splitNum = (array1.length == 1 ? 1 : 4)
+      }
       this.setPos()
       this.customizeTree(tvListJson);
       // if(array1.length == 1){
@@ -543,7 +546,7 @@ export default {
           'ctrlCode': 'ctrl1',
           'ctrlProperty': {
             'displayMode': 1,
-            "splitNum": (bfArray.length == 1 ? 1 : 4),
+            "splitNum": 4,
             'channelList': [
               {
                 'channelId': ''
@@ -554,6 +557,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;

+ 1 - 1
src/views/forest.vue

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