From 03af1714df05bc1cd0dd43779114e49e87be5910 Mon Sep 17 00:00:00 2001 From: windy <1374721899@qq.com> Date: Thu, 17 Oct 2019 12:25:06 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=A0JIRA=E4=BB=BB=E5=8A=A1=20refactor:=20?= =?UTF-8?q?=E5=90=8C=E6=AD=A5=E4=B8=8BvalueChooser=E7=B3=BB=E7=9A=84?= =?UTF-8?q?=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/component/treevaluechooser/abstract.treevaluechooser.js | 2 +- src/component/valuechooser/abstract.valuechooser.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/component/treevaluechooser/abstract.treevaluechooser.js b/src/component/treevaluechooser/abstract.treevaluechooser.js index 98c232b96..4f2c389f5 100644 --- a/src/component/treevaluechooser/abstract.treevaluechooser.js +++ b/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; } diff --git a/src/component/valuechooser/abstract.valuechooser.js b/src/component/valuechooser/abstract.valuechooser.js index ff199e76a..ac4b08ae5 100644 --- a/src/component/valuechooser/abstract.valuechooser.js +++ b/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; }