Browse Source

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

Merge in DEC/fineui from ~CLAIRE.TANG/d-fineui:release/11.0 to release/11.0

* commit '2d063eb6a144d6e639de3cdb892ab35710573e2f':
  BI-115904 fix: 【来源内测BUG】展开下拉树子节点,会出现重复数据 同步
research/test
Claire.Tang-唐锦霞 2 years ago
parent
commit
a1a2587fe0
  1. 5
      src/case/ztree/1.asynctree.js

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

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

Loading…
Cancel
Save