Browse Source

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

master
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 () { getValue: function () {
var val = this.combo.getValue() || {}; var val = this.combo.getValue() || {};
if (val.type === BI.Selection.All) { if (val.type === BI.Selection.Multi) {
return val.assist;
}
return val.value || []; return val.value || [];
}
return BI.difference(BI.map(this.items, "value"), val.value || []);
}, },
populate: function (items) { populate: function (items) {

Loading…
Cancel
Save