|
|
@ -1,6 +1,6 @@ |
|
|
|
/** |
|
|
|
/** |
|
|
|
* guy |
|
|
|
* guy |
|
|
|
* 同步树 |
|
|
|
* 异步树 |
|
|
|
* @class BI.AsyncTree |
|
|
|
* @class BI.AsyncTree |
|
|
|
* @extends BI.TreeView |
|
|
|
* @extends BI.TreeView |
|
|
|
*/ |
|
|
|
*/ |
|
|
@ -194,7 +194,8 @@ BI.AsyncTree = BI.inherit(BI.TreeView, { |
|
|
|
|
|
|
|
|
|
|
|
// 展开节点会将halfCheck置为false以开启自动计算半选, 所以第一次展开节点的时候需要在置为false之前获取配置
|
|
|
|
// 展开节点会将halfCheck置为false以开启自动计算半选, 所以第一次展开节点的时候需要在置为false之前获取配置
|
|
|
|
var checkState = treeNode.getCheckStatus(); |
|
|
|
var checkState = treeNode.getCheckStatus(); |
|
|
|
if (!treeNode.children) { |
|
|
|
if (!treeNode.children && !treeNode.requested) { |
|
|
|
|
|
|
|
treeNode.requested = true; |
|
|
|
setTimeout(function () { |
|
|
|
setTimeout(function () { |
|
|
|
getNodes({ |
|
|
|
getNodes({ |
|
|
|
times: 1, |
|
|
|
times: 1, |
|
|
|