From b34ccaabd01d128de8be9ebbf4fd926ce6d15314 Mon Sep 17 00:00:00 2001 From: guy Date: Tue, 18 Jul 2017 10:53:07 +0800 Subject: [PATCH] add --- bi/case.js | 13 +++++++++++++ docs/case.js | 13 +++++++++++++ src/case/tree/tree.display.js | 13 +++++++++++++ 3 files changed, 39 insertions(+) diff --git a/bi/case.js b/bi/case.js index ca2452851..1f5a3faf1 100644 --- a/bi/case.js +++ b/bi/case.js @@ -12033,6 +12033,19 @@ BI.DisplayTree = BI.inherit(BI.TreeView, { return setting; }, + _dealWidthNodes: function (nodes) { + nodes = BI.DisplayTree.superclass._dealWidthNodes.apply(this, arguments); + var self = this, o = this.options; + BI.each(nodes, function (i, node) { + if (node.count > 0) { + node.text = node.value + "(" + BI.i18nText("BI-Basic_Altogether") + node.count + BI.i18nText("BI-Basic_Count") + ")"; + } else { + node.text = node.value; + } + }); + return nodes; + }, + initTree: function (nodes, setting) { var setting = setting || this._configSetting(); this.nodes = $.fn.zTree.init(this.tree.element, setting, nodes); diff --git a/docs/case.js b/docs/case.js index ca2452851..1f5a3faf1 100644 --- a/docs/case.js +++ b/docs/case.js @@ -12033,6 +12033,19 @@ BI.DisplayTree = BI.inherit(BI.TreeView, { return setting; }, + _dealWidthNodes: function (nodes) { + nodes = BI.DisplayTree.superclass._dealWidthNodes.apply(this, arguments); + var self = this, o = this.options; + BI.each(nodes, function (i, node) { + if (node.count > 0) { + node.text = node.value + "(" + BI.i18nText("BI-Basic_Altogether") + node.count + BI.i18nText("BI-Basic_Count") + ")"; + } else { + node.text = node.value; + } + }); + return nodes; + }, + initTree: function (nodes, setting) { var setting = setting || this._configSetting(); this.nodes = $.fn.zTree.init(this.tree.element, setting, nodes); diff --git a/src/case/tree/tree.display.js b/src/case/tree/tree.display.js index d88b3ee72..030a9041d 100644 --- a/src/case/tree/tree.display.js +++ b/src/case/tree/tree.display.js @@ -44,6 +44,19 @@ BI.DisplayTree = BI.inherit(BI.TreeView, { return setting; }, + _dealWidthNodes: function (nodes) { + nodes = BI.DisplayTree.superclass._dealWidthNodes.apply(this, arguments); + var self = this, o = this.options; + BI.each(nodes, function (i, node) { + if (node.count > 0) { + node.text = node.value + "(" + BI.i18nText("BI-Basic_Altogether") + node.count + BI.i18nText("BI-Basic_Count") + ")"; + } else { + node.text = node.value; + } + }); + return nodes; + }, + initTree: function (nodes, setting) { var setting = setting || this._configSetting(); this.nodes = $.fn.zTree.init(this.tree.element, setting, nodes);