Browse Source

BI-92467 fix:下拉树控件父节点下有空值,勾选空值,过滤条件显示应该为 父结点值:;

es6
Tangjinxia 3 years ago
parent
commit
5276ec0e06
  1. 2
      src/widget/multitree/trigger/searcher.multi.tree.js

2
src/widget/multitree/trigger/searcher.multi.tree.js

@ -136,7 +136,7 @@ BI.MultiTreeSearcher = BI.inherit(BI.Widget, {
var names = BI.Func.getSortedResult(BI.keys(value));
BI.each(names, function (idx, name) {
var childNodes = getChildrenNode(value[name]);
text += (name === "null" ? "" : (o.valueFormatter(name + "") || name)) + (childNodes === "" ? "" : (":" + childNodes)) + "; ";
text += (name === "null" ? "" : (o.valueFormatter(name + "") || name)) + (childNodes === "" ? (BI.isEmptyObject(value[name]) ? "" : ":") : (":" + childNodes)) + "; ";
if (childNodes === "") {
count++;
}

Loading…
Cancel
Save