Browse Source

Pull request #1717: REPORT-46068 同步下拉树展开前使用重新计算的合并后的值

Merge in VISUAL/fineui from ~TELLER/fineui:bugfix to master

* commit '4e7b82f2c3a99a375ea15e093cc0cc99c41f9aac':
  fix: 统一一下处理
  REPORT-46068 fix: 同步下拉树展开前使用重新计算的合并后的值
es6
Teller 4 years ago
parent
commit
596bf65fbc
  1. 11
      src/component/treevaluechooser/abstract.treevaluechooser.js

11
src/component/treevaluechooser/abstract.treevaluechooser.js

@ -37,10 +37,19 @@ BI.AbstractTreeValueChooser = BI.inherit(BI.Widget, {
if (!this.items) { if (!this.items) {
o.itemsCreator({}, function (items) { o.itemsCreator({}, function (items) {
self._initData(items); self._initData(items);
call(); join();
}); });
} else { } else {
join();
}
// 重新计算合并selectedValues
function join() {
self._reqAdjustTreeNode(options, function (joinedValue) {
options.selectedValues = joinedValue;
call(); call();
});
} }
function call() { function call() {

Loading…
Cancel
Save