Browse Source

BI-88786 fix: null值显示问题

es6
Zhenfei.Li 3 years ago
parent
commit
12ed13c28a
  1. 2
      src/case/ztree/0.treeview.js
  2. 2
      src/widget/multitree/trigger/searcher.multi.tree.js

2
src/case/ztree/0.treeview.js

@ -338,7 +338,7 @@ BI.TreeView = BI.inherit(BI.Pane, {
n.value = BI.isUndefined(n.value) ? n.text : n.value;
n.text = BI.isUndefined(n.text) ? n.value : n.text;
if (n.text === null) {
n.text = "(null)";
n.text = "";
}
if (BI.isNull(n.title)) {
n.title = n.text;

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

@ -156,7 +156,7 @@ BI.MultiTreeSearcher = BI.inherit(BI.Widget, {
BI.each(names, function (idx, name) {
index++;
var childNodes = getChildrenNode(ob[name]);
text += (name === "null" ? "(null)" : (o.valueFormatter(name + "") || name)) + (childNodes === "" ? "" : (":" + childNodes)) + (index === size ? "" : ",");
text += (name === "null" ? "" : (o.valueFormatter(name + "") || name)) + (childNodes === "" ? "" : (":" + childNodes)) + (index === size ? "" : ",");
if (childNodes === "") {
count++;
}

Loading…
Cancel
Save