From 5bd33c98871fb62a0f1c5a59108f37423a23a0e6 Mon Sep 17 00:00:00 2001 From: windy <1374721899@qq.com> Date: Tue, 2 May 2017 14:37:34 +0800 Subject: [PATCH] formula combo --- bi/case.js | 2 +- docs/case.js | 2 +- src/case/combo/formulacombo/trigger.formulacombo.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bi/case.js b/bi/case.js index 4916f30f9a..8ec3cc70b8 100644 --- a/bi/case.js +++ b/bi/case.js @@ -4023,7 +4023,7 @@ BI.FormulaComboTrigger = BI.inherit(BI.Widget, { var str = item.match(fieldRegx); if (BI.isNotEmptyArray(str)) { var id = str[0].substring(2, item.length - 1); - var item = BI.find(self.options.items, function (i, item) { + var item = BI.find(BI.flatten(self.options.items), function (i, item) { return id === item.value; }); formulaString = formulaString + item.text; diff --git a/docs/case.js b/docs/case.js index 4916f30f9a..8ec3cc70b8 100644 --- a/docs/case.js +++ b/docs/case.js @@ -4023,7 +4023,7 @@ BI.FormulaComboTrigger = BI.inherit(BI.Widget, { var str = item.match(fieldRegx); if (BI.isNotEmptyArray(str)) { var id = str[0].substring(2, item.length - 1); - var item = BI.find(self.options.items, function (i, item) { + var item = BI.find(BI.flatten(self.options.items), function (i, item) { return id === item.value; }); formulaString = formulaString + item.text; diff --git a/src/case/combo/formulacombo/trigger.formulacombo.js b/src/case/combo/formulacombo/trigger.formulacombo.js index 79ebc72d51..276a9d46ab 100644 --- a/src/case/combo/formulacombo/trigger.formulacombo.js +++ b/src/case/combo/formulacombo/trigger.formulacombo.js @@ -36,7 +36,7 @@ BI.FormulaComboTrigger = BI.inherit(BI.Widget, { var str = item.match(fieldRegx); if (BI.isNotEmptyArray(str)) { var id = str[0].substring(2, item.length - 1); - var item = BI.find(self.options.items, function (i, item) { + var item = BI.find(BI.flatten(self.options.items), function (i, item) { return id === item.value; }); formulaString = formulaString + item.text;