guy 7 years ago
parent
commit
b34ccaabd0
  1. 13
      bi/case.js
  2. 13
      docs/case.js
  3. 13
      src/case/tree/tree.display.js

13
bi/case.js

@ -12033,6 +12033,19 @@ BI.DisplayTree = BI.inherit(BI.TreeView, {
return setting; 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) { initTree: function (nodes, setting) {
var setting = setting || this._configSetting(); var setting = setting || this._configSetting();
this.nodes = $.fn.zTree.init(this.tree.element, setting, nodes); this.nodes = $.fn.zTree.init(this.tree.element, setting, nodes);

13
docs/case.js

@ -12033,6 +12033,19 @@ BI.DisplayTree = BI.inherit(BI.TreeView, {
return setting; 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) { initTree: function (nodes, setting) {
var setting = setting || this._configSetting(); var setting = setting || this._configSetting();
this.nodes = $.fn.zTree.init(this.tree.element, setting, nodes); this.nodes = $.fn.zTree.init(this.tree.element, setting, nodes);

13
src/case/tree/tree.display.js

@ -44,6 +44,19 @@ BI.DisplayTree = BI.inherit(BI.TreeView, {
return setting; 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) { initTree: function (nodes, setting) {
var setting = setting || this._configSetting(); var setting = setting || this._configSetting();
this.nodes = $.fn.zTree.init(this.tree.element, setting, nodes); this.nodes = $.fn.zTree.init(this.tree.element, setting, nodes);

Loading…
Cancel
Save