|
@@ -394,7 +394,7 @@
|
|
'ctrlCode': 'ctrl1',
|
|
'ctrlCode': 'ctrl1',
|
|
'ctrlProperty': {
|
|
'ctrlProperty': {
|
|
'displayMode': 1,
|
|
'displayMode': 1,
|
|
- 'splitNum': (array1.length == 1 ? 1 : 4),
|
|
|
|
|
|
+ 'splitNum': 4,
|
|
'channelList': [{
|
|
'channelList': [{
|
|
'channelId': ''
|
|
'channelId': ''
|
|
}]
|
|
}]
|
|
@@ -402,6 +402,9 @@
|
|
'visible': true,
|
|
'visible': true,
|
|
'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){
|
|
@@ -531,7 +534,7 @@
|
|
},
|
|
},
|
|
|
|
|
|
create(tvListJson, bfArray) { // 调用创建控件接口
|
|
create(tvListJson, bfArray) { // 调用创建控件接口
|
|
- // debugger
|
|
|
|
|
|
+ debugger
|
|
let _this = this
|
|
let _this = this
|
|
const params = [{
|
|
const params = [{
|
|
'ctrlType': 'realMonitorUI',
|
|
'ctrlType': 'realMonitorUI',
|
|
@@ -539,7 +542,7 @@
|
|
'ctrlProperty': {
|
|
'ctrlProperty': {
|
|
'displayMode': 1,
|
|
'displayMode': 1,
|
|
/*以下为新增字段*/
|
|
/*以下为新增字段*/
|
|
- "splitNum": (bfArray.length == 1 ? 1 : 4),
|
|
|
|
|
|
+ "splitNum": 4,
|
|
/*以上为新增字段*/
|
|
/*以上为新增字段*/
|
|
'channelList': [{
|
|
'channelList': [{
|
|
'channelId': ''
|
|
'channelId': ''
|
|
@@ -548,6 +551,9 @@
|
|
'visible': true,
|
|
'visible': true,
|
|
'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;
|