Browse Source

无JIRA任务 refactor: 同步下valueChooser系的代码

master
windy 5 years ago
parent
commit
03af1714df
  1. 2
      src/component/treevaluechooser/abstract.treevaluechooser.js
  2. 2
      src/component/valuechooser/abstract.valuechooser.js

2
src/component/treevaluechooser/abstract.treevaluechooser.js

@ -16,7 +16,7 @@ BI.AbstractTreeValueChooser = BI.inherit(BI.Widget, {
var text = v;
if (BI.isNotNull(this.items)) {
BI.some(this.items, function (i, item) {
if (item.value + "" === v) {
if (item.value === v || item.value + "" === v) {
text = item.text;
return true;
}

2
src/component/valuechooser/abstract.valuechooser.js

@ -25,7 +25,7 @@ BI.AbstractValueChooser = BI.inherit(BI.Widget, {
if (BI.isNotNull(this.items)) {
BI.some(this.items, function (i, item) {
// 把value都换成字符串
if (item.value + "" === v) {
if (item.value === v || item.value + "" === v) {
text = item.text;
return true;
}

Loading…
Cancel
Save