From f89ef8b13813f7ae6a85b388da368dde9c4f62d4 Mon Sep 17 00:00:00 2001 From: windy <1374721899@qq.com> Date: Fri, 25 Sep 2020 15:45:33 +0800 Subject: [PATCH] =?UTF-8?q?BI-73804=20fix:=20=E5=85=A8=E9=80=89=E4=B8=8D?= =?UTF-8?q?=E4=BD=BF=E7=94=A8assist=E7=9B=B4=E6=8E=A5=E4=BB=8Eitems?= =?UTF-8?q?=E5=8F=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/component/allvaluechooser/combo.allvaluechooser.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/component/allvaluechooser/combo.allvaluechooser.js b/src/component/allvaluechooser/combo.allvaluechooser.js index 8c170867af..803b04ac8d 100644 --- a/src/component/allvaluechooser/combo.allvaluechooser.js +++ b/src/component/allvaluechooser/combo.allvaluechooser.js @@ -53,10 +53,11 @@ BI.AllValueChooserCombo = BI.inherit(BI.AbstractAllValueChooser, { getValue: function () { var val = this.combo.getValue() || {}; - if (val.type === BI.Selection.All) { - return val.assist; + if (val.type === BI.Selection.Multi) { + return val.value || []; } - return val.value || []; + + return BI.difference(BI.map(this.items, "value"), val.value || []); }, populate: function (items) {