Browse Source

Pull request #2970: KERNEL-12341 fix: 下拉树控件搜索顺序与正常状态保持一致

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

* commit '8fa9d6b1f5d42de13e554b8415021c92d576d99a':
  KERNEL-12341 fix: 下拉树控件搜索顺序与正常状态保持一致
es6
Dailer 2 years ago
parent
commit
c90fe2a3eb
  1. 1
      src/widget/multilayerselecttree/multilayerselecttree.trigger.js
  2. 1
      src/widget/multilayersingletree/multilayersingletree.trigger.js

1
src/widget/multilayerselecttree/multilayerselecttree.trigger.js

@ -161,6 +161,7 @@ BI.MultiLayerSelectTreeTrigger = BI.inherit(BI.Trigger, {
result.push(node); result.push(node);
result = result.concat(self._getChildren(node)); result = result.concat(self._getChildren(node));
}); });
queue.reverse();
while (BI.isNotEmptyArray(queue)) { while (BI.isNotEmptyArray(queue)) {
var node = queue.pop(); var node = queue.pop();
var pNode = this.tree.search(this.tree.getRoot(), node.pId, "id"); var pNode = this.tree.search(this.tree.getRoot(), node.pId, "id");

1
src/widget/multilayersingletree/multilayersingletree.trigger.js

@ -170,6 +170,7 @@ BI.MultiLayerSingleTreeTrigger = BI.inherit(BI.Trigger, {
result.push(node); result.push(node);
result = result.concat(self._getChildren(node)); result = result.concat(self._getChildren(node));
}); });
queue.reverse();
while (BI.isNotEmptyArray(queue)) { while (BI.isNotEmptyArray(queue)) {
var node = queue.pop(); var node = queue.pop();
var pNode = this.tree.search(this.tree.getRoot(), node.pId, "id"); var pNode = this.tree.search(this.tree.getRoot(), node.pId, "id");

Loading…
Cancel
Save