Browse Source

BI-73804 fix: 全选不使用assist直接从items取

es6
windy 4 years ago
parent
commit
f89ef8b138
  1. 7
      src/component/allvaluechooser/combo.allvaluechooser.js

7
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) {

Loading…
Cancel
Save