diff --git a/bi/widget.js b/bi/widget.js index 65d1aa25a..2d540f509 100644 --- a/bi/widget.js +++ b/bi/widget.js @@ -17421,7 +17421,7 @@ BI.shortcut('bi.all_value_chooser_pane', BI.AllValueChooserPane);BI.AbstractTree function expandSelectedValue(selectedValues, parents, notSelectedValue) { var next = selectedValues; //去掉点击的节点之后的结果集 - BI.each(parents, function (i, v) { + BI.some(parents, function (i, v) { var t = next[v]; if (t == null) { if (BI.isEmpty(next)) { @@ -17435,8 +17435,9 @@ BI.shortcut('bi.all_value_chooser_pane', BI.AllValueChooserPane);BI.AbstractTree }); next = next[v]; } else { - next = {}; - next[v] = {}; + return true; + // next = {}; + // next[v] = {}; } } else { next = t; diff --git a/docs/widget.js b/docs/widget.js index 65d1aa25a..2d540f509 100644 --- a/docs/widget.js +++ b/docs/widget.js @@ -17421,7 +17421,7 @@ BI.shortcut('bi.all_value_chooser_pane', BI.AllValueChooserPane);BI.AbstractTree function expandSelectedValue(selectedValues, parents, notSelectedValue) { var next = selectedValues; //去掉点击的节点之后的结果集 - BI.each(parents, function (i, v) { + BI.some(parents, function (i, v) { var t = next[v]; if (t == null) { if (BI.isEmpty(next)) { @@ -17435,8 +17435,9 @@ BI.shortcut('bi.all_value_chooser_pane', BI.AllValueChooserPane);BI.AbstractTree }); next = next[v]; } else { - next = {}; - next[v] = {}; + return true; + // next = {}; + // next[v] = {}; } } else { next = t; diff --git a/src/component/treevaluechooser/abstract.treevaluechooser.js b/src/component/treevaluechooser/abstract.treevaluechooser.js index b600f60d6..4da592491 100644 --- a/src/component/treevaluechooser/abstract.treevaluechooser.js +++ b/src/component/treevaluechooser/abstract.treevaluechooser.js @@ -182,7 +182,7 @@ BI.AbstractTreeValueChooser = BI.inherit(BI.Widget, { function expandSelectedValue(selectedValues, parents, notSelectedValue) { var next = selectedValues; //去掉点击的节点之后的结果集 - BI.each(parents, function (i, v) { + BI.some(parents, function (i, v) { var t = next[v]; if (t == null) { if (BI.isEmpty(next)) { @@ -196,8 +196,9 @@ BI.AbstractTreeValueChooser = BI.inherit(BI.Widget, { }); next = next[v]; } else { - next = {}; - next[v] = {}; + return true; + // next = {}; + // next[v] = {}; } } else { next = t;