|
|
@ -1742,7 +1742,7 @@ BI.TreeView = BI.inherit(BI.Pane, { |
|
|
|
this._buildTree(map, path); |
|
|
|
this._buildTree(map, path); |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
var storeValues = BI.deepClone(this.options.paras.selectedValues); |
|
|
|
var storeValues = BI.deepClone(this.selectedValues); |
|
|
|
var treeNode = this._getTree(storeValues, path); |
|
|
|
var treeNode = this._getTree(storeValues, path); |
|
|
|
this._addTreeNode(map, parent, this._getNodeValue(node), treeNode); |
|
|
|
this._addTreeNode(map, parent, this._getNodeValue(node), treeNode); |
|
|
|
}, |
|
|
|
}, |
|
|
@ -1946,14 +1946,13 @@ BI.TreeView = BI.inherit(BI.Pane, { |
|
|
|
|
|
|
|
|
|
|
|
//设置树节点的状态
|
|
|
|
//设置树节点的状态
|
|
|
|
setValue: function (value, param) { |
|
|
|
setValue: function (value, param) { |
|
|
|
this.setSelectedValue(value); |
|
|
|
|
|
|
|
this.checkAll(false); |
|
|
|
this.checkAll(false); |
|
|
|
this.updateValue(value, param); |
|
|
|
this.updateValue(value, param); |
|
|
|
this.refresh(); |
|
|
|
this.refresh(); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
setSelectedValue: function (value) { |
|
|
|
setSelectedValue: function (value) { |
|
|
|
this.options.paras.selectedValues = BI.deepClone(value) || {}; |
|
|
|
this.options.paras.selectedValues = value || {}; |
|
|
|
this.selectedValues = BI.deepClone(value) || {}; |
|
|
|
this.selectedValues = BI.deepClone(value) || {}; |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
@ -2249,7 +2248,7 @@ BI.PartTree = BI.inherit(BI.AsyncTree, { |
|
|
|
_selectTreeNode: function (treeId, treeNode) { |
|
|
|
_selectTreeNode: function (treeId, treeNode) { |
|
|
|
var self = this, o = this.options; |
|
|
|
var self = this, o = this.options; |
|
|
|
var parentValues = BI.deepClone(treeNode.parentValues || self._getParentValues(treeNode)); |
|
|
|
var parentValues = BI.deepClone(treeNode.parentValues || self._getParentValues(treeNode)); |
|
|
|
var name = this._getNodeValue(treeNode) |
|
|
|
var name = this._getNodeValue(treeNode); |
|
|
|
// var values = parentValues.concat([name]);
|
|
|
|
// var values = parentValues.concat([name]);
|
|
|
|
if (treeNode.checked === true) { |
|
|
|
if (treeNode.checked === true) { |
|
|
|
BI.AsyncTree.superclass._selectTreeNode.apply(self, arguments); |
|
|
|
BI.AsyncTree.superclass._selectTreeNode.apply(self, arguments); |
|
|
|