From 12ed13c28ab663ec83266fba6f2e79ce138927d8 Mon Sep 17 00:00:00 2001 From: "Zhenfei.Li" Date: Wed, 23 Jun 2021 15:53:56 +0800 Subject: [PATCH] =?UTF-8?q?BI-88786=20fix:=20null=E5=80=BC=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/case/ztree/0.treeview.js | 2 +- src/widget/multitree/trigger/searcher.multi.tree.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/case/ztree/0.treeview.js b/src/case/ztree/0.treeview.js index 850f9104c..f67c9291b 100644 --- a/src/case/ztree/0.treeview.js +++ b/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; diff --git a/src/widget/multitree/trigger/searcher.multi.tree.js b/src/widget/multitree/trigger/searcher.multi.tree.js index 3f9347348..65738cd2d 100644 --- a/src/widget/multitree/trigger/searcher.multi.tree.js +++ b/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++; }