Browse Source

BI-65448 fix: 点击查看已选不需要刷新计数

es6
windy 4 years ago
parent
commit
6c78bf6846
  1. 8
      src/widget/multiselect/multiselect.combo.js
  2. 8
      src/widget/multiselect/multiselect.combo.nobar.js
  3. 8
      src/widget/multiselect/multiselect.insert.combo.js
  4. 8
      src/widget/multiselect/multiselect.insert.combo.nobar.js

8
src/widget/multiselect/multiselect.combo.js

@ -189,7 +189,7 @@ BI.MultiSelectCombo = BI.inherit(BI.Single, {
this.combo.on(BI.Combo.EVENT_BEFORE_POPUPVIEW, function () {
this.setValue(self.storeValue);
BI.nextTick(function () {
self.populate();
self._populate();
});
});
// 当退出的时候如果还在处理请求,则等请求结束后再对外发确定事件
@ -421,6 +421,10 @@ BI.MultiSelectCombo = BI.inherit(BI.Single, {
this.popup.setStartValue(value);
},
_populate: function () {
this.combo.populate.apply(this.combo, arguments);
},
setValue: function (v) {
this.storeValue = v || {};
this._assertValue(this.storeValue);
@ -433,7 +437,7 @@ BI.MultiSelectCombo = BI.inherit(BI.Single, {
},
populate: function () {
this.combo.populate.apply(this.combo, arguments);
this._populate.apply(this, arguments);
this.numberCounter.populateSwitcher.apply(this.numberCounter, arguments);
}
});

8
src/widget/multiselect/multiselect.combo.nobar.js

@ -178,7 +178,7 @@ BI.MultiSelectNoBarCombo = BI.inherit(BI.Single, {
this.combo.on(BI.Combo.EVENT_BEFORE_POPUPVIEW, function () {
this.setValue(self.storeValue);
BI.nextTick(function () {
self.populate();
self._populate();
});
});
// 当退出的时候如果还在处理请求,则等请求结束后再对外发确定事件
@ -414,6 +414,10 @@ BI.MultiSelectNoBarCombo = BI.inherit(BI.Single, {
this.popup.setStartValue(value);
},
_populate: function () {
this.combo.populate.apply(this.combo, arguments);
},
setValue: function (v) {
this.storeValue = {
type: BI.Selection.Multi,
@ -428,7 +432,7 @@ BI.MultiSelectNoBarCombo = BI.inherit(BI.Single, {
},
populate: function () {
this.combo.populate.apply(this.combo, arguments);
this._populate.apply(this, arguments);
this.numberCounter.populateSwitcher.apply(this.numberCounter, arguments);
}
});

8
src/widget/multiselect/multiselect.insert.combo.js

@ -185,7 +185,7 @@ BI.MultiSelectInsertCombo = BI.inherit(BI.Single, {
this.combo.on(BI.Combo.EVENT_BEFORE_POPUPVIEW, function () {
this.setValue(self.storeValue);
BI.nextTick(function () {
self.populate();
self._populate();
});
});
// 当退出的时候如果还在处理请求,则等请求结束后再对外发确定事件
@ -439,6 +439,10 @@ BI.MultiSelectInsertCombo = BI.inherit(BI.Single, {
this.popup.setStartValue(value);
},
_populate: function () {
this.combo.populate.apply(this.combo, arguments);
},
setValue: function (v) {
this.storeValue = v || {};
this._assertValue(this.storeValue);
@ -451,7 +455,7 @@ BI.MultiSelectInsertCombo = BI.inherit(BI.Single, {
},
populate: function () {
this.combo.populate.apply(this.combo, arguments);
this._populate.apply(this, arguments);
this.numberCounter.populateSwitcher.apply(this.numberCounter, arguments);
}
});

8
src/widget/multiselect/multiselect.insert.combo.nobar.js

@ -180,7 +180,7 @@ BI.MultiSelectInsertNoBarCombo = BI.inherit(BI.Single, {
this.combo.on(BI.Combo.EVENT_BEFORE_POPUPVIEW, function () {
this.setValue(self.storeValue);
BI.nextTick(function () {
self.populate();
self._populate();
});
});
// 当退出的时候如果还在处理请求,则等请求结束后再对外发确定事件
@ -434,6 +434,10 @@ BI.MultiSelectInsertNoBarCombo = BI.inherit(BI.Single, {
this.popup.setStartValue(value);
},
_populate: function () {
this.combo.populate.apply(this.combo, arguments);
},
setValue: function (v) {
this.storeValue = {
type: BI.Selection.Multi,
@ -448,7 +452,7 @@ BI.MultiSelectInsertNoBarCombo = BI.inherit(BI.Single, {
},
populate: function () {
this.combo.populate.apply(this.combo, arguments);
this._populate.apply(this, arguments);
this.numberCounter.populateSwitcher.apply(this.numberCounter, arguments);
}
});

Loading…
Cancel
Save