Browse Source

Pull request #3197: BI-115904 fix: 【来源内测BUG】展开下拉树子节点,会出现重复数据

Merge in VISUAL/fineui from ~DAILER/fineui:master to master

* commit '7a5fa1c1ff1ffab2f1551084d44595ece9f53229':
  BI-115904 fix: 【来源内测BUG】展开下拉树子节点,会出现重复数据
es6
Dailer-刘荣歆 2 years ago
parent
commit
317d7240b0
  1. 5
      src/case/ztree/1.asynctree.js

5
src/case/ztree/1.asynctree.js

@ -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,

Loading…
Cancel
Save