Browse Source

BI-31378 value校验的时候assist也要校验一下

es6
windy 6 years ago
parent
commit
98a488435b
  1. 21
      dist/bundle.js
  2. 22
      dist/bundle.min.js
  3. 21
      dist/fineui.js
  4. 22
      dist/fineui.min.js
  5. 21
      dist/fineui_without_jquery_polyfill.js
  6. 2
      dist/utils.min.js
  7. 21
      dist/widget.js
  8. 5
      src/widget/multiselect/multiselect.combo.js
  9. 6
      src/widget/multiselect/multiselect.insert.combo.js
  10. 5
      src/widget/multiselect/multiselect.insert.combo.nobar.js
  11. 5
      src/widget/searchmultitextvaluecombo/multitextvalue.combo.search.js

21
dist/bundle.js vendored

@ -66864,6 +66864,7 @@ BI.MultiSelectCombo = BI.inherit(BI.Single, {
BI.each(items, function (i, v) {
if (BI.isNotNull(map[v])) {
change = true;
self.storeValue.assist && self.storeValue.assist.push(map[v]);
delete map[v];
}
});
@ -66876,9 +66877,11 @@ BI.MultiSelectCombo = BI.inherit(BI.Single, {
var newItems = [];
BI.each(items, function (i, item) {
if (BI.isNotNull(selectedMap[items[i]])) {
self.storeValue.assist && self.storeValue.assist.push(selectedMap[items[i]]);
delete selectedMap[items[i]];
}
if (BI.isNull(notSelectedMap[items[i]])) {
BI.remove(self.storeValue.assist, item);
newItems.push(item);
}
});
@ -66932,6 +66935,7 @@ BI.MultiSelectCombo = BI.inherit(BI.Single, {
BI.each(res.value, function (i, v) {
if (!map[v]) {
self.storeValue.value.push(v);
BI.remove(self.storeValue.assist, v);
map[v] = v;
}
});
@ -66939,6 +66943,7 @@ BI.MultiSelectCombo = BI.inherit(BI.Single, {
BI.each(res.assist, function (i, v) {
if (BI.isNotNull(map[v])) {
change = true;
self.storeValue.assist && self.storeValue.assist.push(map[v]);
delete map[v];
}
});
@ -67262,6 +67267,7 @@ BI.MultiSelectInsertCombo = BI.inherit(BI.Single, {
BI.each(items, function (i, v) {
if (BI.isNotNull(map[v])) {
change = true;
self.storeValue.assist && self.storeValue.assist.push(map[v]);
delete map[v];
}
});
@ -67274,9 +67280,11 @@ BI.MultiSelectInsertCombo = BI.inherit(BI.Single, {
var newItems = [];
BI.each(items, function (i, item) {
if (BI.isNotNull(selectedMap[items[i]])) {
self.storeValue.assist && self.storeValue.assist.push(selectedMap[items[i]]);
delete selectedMap[items[i]];
}
if (BI.isNull(notSelectedMap[items[i]])) {
BI.remove(self.storeValue.assist, item);
newItems.push(item);
}
});
@ -67307,6 +67315,8 @@ BI.MultiSelectInsertCombo = BI.inherit(BI.Single, {
BI.each(res.value, function (i, v) {
if (!map[v]) {
self.storeValue.value.push(v);
// value更新的时候assist也需要更新
BI.remove(self.storeValue.assist, v);
map[v] = v;
}
});
@ -67314,6 +67324,7 @@ BI.MultiSelectInsertCombo = BI.inherit(BI.Single, {
BI.each(res.assist, function (i, v) {
if (BI.isNotNull(map[v])) {
change = true;
self.storeValue.assist && self.storeValue.assist.push(map[v]);
delete map[v];
}
});
@ -67648,6 +67659,7 @@ BI.MultiSelectInsertNoBarCombo = BI.inherit(BI.Single, {
BI.each(items, function (i, v) {
if (BI.isNotNull(map[v])) {
change = true;
self.storeValue.assist && self.storeValue.assist.push(map[v]);
delete map[v];
}
});
@ -67660,9 +67672,11 @@ BI.MultiSelectInsertNoBarCombo = BI.inherit(BI.Single, {
var newItems = [];
BI.each(items, function (i, item) {
if (BI.isNotNull(selectedMap[items[i]])) {
self.storeValue.assist && self.storeValue.assist.push(selectedMap[items[i]]);
delete selectedMap[items[i]];
}
if (BI.isNull(notSelectedMap[items[i]])) {
BI.remove(self.storeValue.assist, item);
newItems.push(item);
}
});
@ -67693,6 +67707,7 @@ BI.MultiSelectInsertNoBarCombo = BI.inherit(BI.Single, {
BI.each(res.value, function (i, v) {
if (!map[v]) {
self.storeValue.value.push(v);
BI.remove(self.storeValue.assist, v);
map[v] = v;
}
});
@ -67700,6 +67715,7 @@ BI.MultiSelectInsertNoBarCombo = BI.inherit(BI.Single, {
BI.each(res.assist, function (i, v) {
if (BI.isNotNull(map[v])) {
change = true;
self.storeValue.assist && self.storeValue.assist.push(map[v]);
delete map[v];
}
});
@ -72835,6 +72851,7 @@ BI.SearchMultiTextValueCombo = BI.inherit(BI.Single, {
BI.each(items, function (i, v) {
if (BI.isNotNull(map[v])) {
change = true;
self.storeValue.assist && self.storeValue.assist.push(map[v]);
delete map[v];
}
});
@ -72847,9 +72864,11 @@ BI.SearchMultiTextValueCombo = BI.inherit(BI.Single, {
var newItems = [];
BI.each(items, function (i, item) {
if (BI.isNotNull(selectedMap[items[i]])) {
self.storeValue.assist && self.storeValue.assist.push(selectedMap[items[i]]);
delete selectedMap[items[i]];
}
if (BI.isNull(notSelectedMap[items[i]])) {
BI.remove(self.storeValue.assist, item);
newItems.push(item);
}
});
@ -72905,6 +72924,7 @@ BI.SearchMultiTextValueCombo = BI.inherit(BI.Single, {
BI.each(res.value, function (i, v) {
if (!map[v]) {
self.storeValue.value.push(v);
BI.remove(self.storeValue.assist, v);
map[v] = v;
}
});
@ -72912,6 +72932,7 @@ BI.SearchMultiTextValueCombo = BI.inherit(BI.Single, {
BI.each(res.assist, function (i, v) {
if (BI.isNotNull(map[v])) {
change = true;
self.storeValue.assist && self.storeValue.assist.push(map[v]);
delete map[v];
}
});

22
dist/bundle.min.js vendored

File diff suppressed because one or more lines are too long

21
dist/fineui.js vendored

@ -67106,6 +67106,7 @@ BI.MultiSelectCombo = BI.inherit(BI.Single, {
BI.each(items, function (i, v) {
if (BI.isNotNull(map[v])) {
change = true;
self.storeValue.assist && self.storeValue.assist.push(map[v]);
delete map[v];
}
});
@ -67118,9 +67119,11 @@ BI.MultiSelectCombo = BI.inherit(BI.Single, {
var newItems = [];
BI.each(items, function (i, item) {
if (BI.isNotNull(selectedMap[items[i]])) {
self.storeValue.assist && self.storeValue.assist.push(selectedMap[items[i]]);
delete selectedMap[items[i]];
}
if (BI.isNull(notSelectedMap[items[i]])) {
BI.remove(self.storeValue.assist, item);
newItems.push(item);
}
});
@ -67174,6 +67177,7 @@ BI.MultiSelectCombo = BI.inherit(BI.Single, {
BI.each(res.value, function (i, v) {
if (!map[v]) {
self.storeValue.value.push(v);
BI.remove(self.storeValue.assist, v);
map[v] = v;
}
});
@ -67181,6 +67185,7 @@ BI.MultiSelectCombo = BI.inherit(BI.Single, {
BI.each(res.assist, function (i, v) {
if (BI.isNotNull(map[v])) {
change = true;
self.storeValue.assist && self.storeValue.assist.push(map[v]);
delete map[v];
}
});
@ -67504,6 +67509,7 @@ BI.MultiSelectInsertCombo = BI.inherit(BI.Single, {
BI.each(items, function (i, v) {
if (BI.isNotNull(map[v])) {
change = true;
self.storeValue.assist && self.storeValue.assist.push(map[v]);
delete map[v];
}
});
@ -67516,9 +67522,11 @@ BI.MultiSelectInsertCombo = BI.inherit(BI.Single, {
var newItems = [];
BI.each(items, function (i, item) {
if (BI.isNotNull(selectedMap[items[i]])) {
self.storeValue.assist && self.storeValue.assist.push(selectedMap[items[i]]);
delete selectedMap[items[i]];
}
if (BI.isNull(notSelectedMap[items[i]])) {
BI.remove(self.storeValue.assist, item);
newItems.push(item);
}
});
@ -67549,6 +67557,8 @@ BI.MultiSelectInsertCombo = BI.inherit(BI.Single, {
BI.each(res.value, function (i, v) {
if (!map[v]) {
self.storeValue.value.push(v);
// value更新的时候assist也需要更新
BI.remove(self.storeValue.assist, v);
map[v] = v;
}
});
@ -67556,6 +67566,7 @@ BI.MultiSelectInsertCombo = BI.inherit(BI.Single, {
BI.each(res.assist, function (i, v) {
if (BI.isNotNull(map[v])) {
change = true;
self.storeValue.assist && self.storeValue.assist.push(map[v]);
delete map[v];
}
});
@ -67890,6 +67901,7 @@ BI.MultiSelectInsertNoBarCombo = BI.inherit(BI.Single, {
BI.each(items, function (i, v) {
if (BI.isNotNull(map[v])) {
change = true;
self.storeValue.assist && self.storeValue.assist.push(map[v]);
delete map[v];
}
});
@ -67902,9 +67914,11 @@ BI.MultiSelectInsertNoBarCombo = BI.inherit(BI.Single, {
var newItems = [];
BI.each(items, function (i, item) {
if (BI.isNotNull(selectedMap[items[i]])) {
self.storeValue.assist && self.storeValue.assist.push(selectedMap[items[i]]);
delete selectedMap[items[i]];
}
if (BI.isNull(notSelectedMap[items[i]])) {
BI.remove(self.storeValue.assist, item);
newItems.push(item);
}
});
@ -67935,6 +67949,7 @@ BI.MultiSelectInsertNoBarCombo = BI.inherit(BI.Single, {
BI.each(res.value, function (i, v) {
if (!map[v]) {
self.storeValue.value.push(v);
BI.remove(self.storeValue.assist, v);
map[v] = v;
}
});
@ -67942,6 +67957,7 @@ BI.MultiSelectInsertNoBarCombo = BI.inherit(BI.Single, {
BI.each(res.assist, function (i, v) {
if (BI.isNotNull(map[v])) {
change = true;
self.storeValue.assist && self.storeValue.assist.push(map[v]);
delete map[v];
}
});
@ -73077,6 +73093,7 @@ BI.SearchMultiTextValueCombo = BI.inherit(BI.Single, {
BI.each(items, function (i, v) {
if (BI.isNotNull(map[v])) {
change = true;
self.storeValue.assist && self.storeValue.assist.push(map[v]);
delete map[v];
}
});
@ -73089,9 +73106,11 @@ BI.SearchMultiTextValueCombo = BI.inherit(BI.Single, {
var newItems = [];
BI.each(items, function (i, item) {
if (BI.isNotNull(selectedMap[items[i]])) {
self.storeValue.assist && self.storeValue.assist.push(selectedMap[items[i]]);
delete selectedMap[items[i]];
}
if (BI.isNull(notSelectedMap[items[i]])) {
BI.remove(self.storeValue.assist, item);
newItems.push(item);
}
});
@ -73147,6 +73166,7 @@ BI.SearchMultiTextValueCombo = BI.inherit(BI.Single, {
BI.each(res.value, function (i, v) {
if (!map[v]) {
self.storeValue.value.push(v);
BI.remove(self.storeValue.assist, v);
map[v] = v;
}
});
@ -73154,6 +73174,7 @@ BI.SearchMultiTextValueCombo = BI.inherit(BI.Single, {
BI.each(res.assist, function (i, v) {
if (BI.isNotNull(map[v])) {
change = true;
self.storeValue.assist && self.storeValue.assist.push(map[v]);
delete map[v];
}
});

22
dist/fineui.min.js vendored

File diff suppressed because one or more lines are too long

21
dist/fineui_without_jquery_polyfill.js vendored

@ -49992,6 +49992,7 @@ BI.MultiSelectCombo = BI.inherit(BI.Single, {
BI.each(items, function (i, v) {
if (BI.isNotNull(map[v])) {
change = true;
self.storeValue.assist && self.storeValue.assist.push(map[v]);
delete map[v];
}
});
@ -50004,9 +50005,11 @@ BI.MultiSelectCombo = BI.inherit(BI.Single, {
var newItems = [];
BI.each(items, function (i, item) {
if (BI.isNotNull(selectedMap[items[i]])) {
self.storeValue.assist && self.storeValue.assist.push(selectedMap[items[i]]);
delete selectedMap[items[i]];
}
if (BI.isNull(notSelectedMap[items[i]])) {
BI.remove(self.storeValue.assist, item);
newItems.push(item);
}
});
@ -50060,6 +50063,7 @@ BI.MultiSelectCombo = BI.inherit(BI.Single, {
BI.each(res.value, function (i, v) {
if (!map[v]) {
self.storeValue.value.push(v);
BI.remove(self.storeValue.assist, v);
map[v] = v;
}
});
@ -50067,6 +50071,7 @@ BI.MultiSelectCombo = BI.inherit(BI.Single, {
BI.each(res.assist, function (i, v) {
if (BI.isNotNull(map[v])) {
change = true;
self.storeValue.assist && self.storeValue.assist.push(map[v]);
delete map[v];
}
});
@ -50390,6 +50395,7 @@ BI.MultiSelectInsertCombo = BI.inherit(BI.Single, {
BI.each(items, function (i, v) {
if (BI.isNotNull(map[v])) {
change = true;
self.storeValue.assist && self.storeValue.assist.push(map[v]);
delete map[v];
}
});
@ -50402,9 +50408,11 @@ BI.MultiSelectInsertCombo = BI.inherit(BI.Single, {
var newItems = [];
BI.each(items, function (i, item) {
if (BI.isNotNull(selectedMap[items[i]])) {
self.storeValue.assist && self.storeValue.assist.push(selectedMap[items[i]]);
delete selectedMap[items[i]];
}
if (BI.isNull(notSelectedMap[items[i]])) {
BI.remove(self.storeValue.assist, item);
newItems.push(item);
}
});
@ -50435,6 +50443,8 @@ BI.MultiSelectInsertCombo = BI.inherit(BI.Single, {
BI.each(res.value, function (i, v) {
if (!map[v]) {
self.storeValue.value.push(v);
// value更新的时候assist也需要更新
BI.remove(self.storeValue.assist, v);
map[v] = v;
}
});
@ -50442,6 +50452,7 @@ BI.MultiSelectInsertCombo = BI.inherit(BI.Single, {
BI.each(res.assist, function (i, v) {
if (BI.isNotNull(map[v])) {
change = true;
self.storeValue.assist && self.storeValue.assist.push(map[v]);
delete map[v];
}
});
@ -50776,6 +50787,7 @@ BI.MultiSelectInsertNoBarCombo = BI.inherit(BI.Single, {
BI.each(items, function (i, v) {
if (BI.isNotNull(map[v])) {
change = true;
self.storeValue.assist && self.storeValue.assist.push(map[v]);
delete map[v];
}
});
@ -50788,9 +50800,11 @@ BI.MultiSelectInsertNoBarCombo = BI.inherit(BI.Single, {
var newItems = [];
BI.each(items, function (i, item) {
if (BI.isNotNull(selectedMap[items[i]])) {
self.storeValue.assist && self.storeValue.assist.push(selectedMap[items[i]]);
delete selectedMap[items[i]];
}
if (BI.isNull(notSelectedMap[items[i]])) {
BI.remove(self.storeValue.assist, item);
newItems.push(item);
}
});
@ -50821,6 +50835,7 @@ BI.MultiSelectInsertNoBarCombo = BI.inherit(BI.Single, {
BI.each(res.value, function (i, v) {
if (!map[v]) {
self.storeValue.value.push(v);
BI.remove(self.storeValue.assist, v);
map[v] = v;
}
});
@ -50828,6 +50843,7 @@ BI.MultiSelectInsertNoBarCombo = BI.inherit(BI.Single, {
BI.each(res.assist, function (i, v) {
if (BI.isNotNull(map[v])) {
change = true;
self.storeValue.assist && self.storeValue.assist.push(map[v]);
delete map[v];
}
});
@ -55963,6 +55979,7 @@ BI.SearchMultiTextValueCombo = BI.inherit(BI.Single, {
BI.each(items, function (i, v) {
if (BI.isNotNull(map[v])) {
change = true;
self.storeValue.assist && self.storeValue.assist.push(map[v]);
delete map[v];
}
});
@ -55975,9 +55992,11 @@ BI.SearchMultiTextValueCombo = BI.inherit(BI.Single, {
var newItems = [];
BI.each(items, function (i, item) {
if (BI.isNotNull(selectedMap[items[i]])) {
self.storeValue.assist && self.storeValue.assist.push(selectedMap[items[i]]);
delete selectedMap[items[i]];
}
if (BI.isNull(notSelectedMap[items[i]])) {
BI.remove(self.storeValue.assist, item);
newItems.push(item);
}
});
@ -56033,6 +56052,7 @@ BI.SearchMultiTextValueCombo = BI.inherit(BI.Single, {
BI.each(res.value, function (i, v) {
if (!map[v]) {
self.storeValue.value.push(v);
BI.remove(self.storeValue.assist, v);
map[v] = v;
}
});
@ -56040,6 +56060,7 @@ BI.SearchMultiTextValueCombo = BI.inherit(BI.Single, {
BI.each(res.assist, function (i, v) {
if (BI.isNotNull(map[v])) {
change = true;
self.storeValue.assist && self.storeValue.assist.push(map[v]);
delete map[v];
}
});

2
dist/utils.min.js vendored

File diff suppressed because one or more lines are too long

21
dist/widget.js vendored

@ -8420,6 +8420,7 @@ BI.MultiSelectCombo = BI.inherit(BI.Single, {
BI.each(items, function (i, v) {
if (BI.isNotNull(map[v])) {
change = true;
self.storeValue.assist && self.storeValue.assist.push(map[v]);
delete map[v];
}
});
@ -8432,9 +8433,11 @@ BI.MultiSelectCombo = BI.inherit(BI.Single, {
var newItems = [];
BI.each(items, function (i, item) {
if (BI.isNotNull(selectedMap[items[i]])) {
self.storeValue.assist && self.storeValue.assist.push(selectedMap[items[i]]);
delete selectedMap[items[i]];
}
if (BI.isNull(notSelectedMap[items[i]])) {
BI.remove(self.storeValue.assist, item);
newItems.push(item);
}
});
@ -8488,6 +8491,7 @@ BI.MultiSelectCombo = BI.inherit(BI.Single, {
BI.each(res.value, function (i, v) {
if (!map[v]) {
self.storeValue.value.push(v);
BI.remove(self.storeValue.assist, v);
map[v] = v;
}
});
@ -8495,6 +8499,7 @@ BI.MultiSelectCombo = BI.inherit(BI.Single, {
BI.each(res.assist, function (i, v) {
if (BI.isNotNull(map[v])) {
change = true;
self.storeValue.assist && self.storeValue.assist.push(map[v]);
delete map[v];
}
});
@ -8818,6 +8823,7 @@ BI.MultiSelectInsertCombo = BI.inherit(BI.Single, {
BI.each(items, function (i, v) {
if (BI.isNotNull(map[v])) {
change = true;
self.storeValue.assist && self.storeValue.assist.push(map[v]);
delete map[v];
}
});
@ -8830,9 +8836,11 @@ BI.MultiSelectInsertCombo = BI.inherit(BI.Single, {
var newItems = [];
BI.each(items, function (i, item) {
if (BI.isNotNull(selectedMap[items[i]])) {
self.storeValue.assist && self.storeValue.assist.push(selectedMap[items[i]]);
delete selectedMap[items[i]];
}
if (BI.isNull(notSelectedMap[items[i]])) {
BI.remove(self.storeValue.assist, item);
newItems.push(item);
}
});
@ -8863,6 +8871,8 @@ BI.MultiSelectInsertCombo = BI.inherit(BI.Single, {
BI.each(res.value, function (i, v) {
if (!map[v]) {
self.storeValue.value.push(v);
// value更新的时候assist也需要更新
BI.remove(self.storeValue.assist, v);
map[v] = v;
}
});
@ -8870,6 +8880,7 @@ BI.MultiSelectInsertCombo = BI.inherit(BI.Single, {
BI.each(res.assist, function (i, v) {
if (BI.isNotNull(map[v])) {
change = true;
self.storeValue.assist && self.storeValue.assist.push(map[v]);
delete map[v];
}
});
@ -9204,6 +9215,7 @@ BI.MultiSelectInsertNoBarCombo = BI.inherit(BI.Single, {
BI.each(items, function (i, v) {
if (BI.isNotNull(map[v])) {
change = true;
self.storeValue.assist && self.storeValue.assist.push(map[v]);
delete map[v];
}
});
@ -9216,9 +9228,11 @@ BI.MultiSelectInsertNoBarCombo = BI.inherit(BI.Single, {
var newItems = [];
BI.each(items, function (i, item) {
if (BI.isNotNull(selectedMap[items[i]])) {
self.storeValue.assist && self.storeValue.assist.push(selectedMap[items[i]]);
delete selectedMap[items[i]];
}
if (BI.isNull(notSelectedMap[items[i]])) {
BI.remove(self.storeValue.assist, item);
newItems.push(item);
}
});
@ -9249,6 +9263,7 @@ BI.MultiSelectInsertNoBarCombo = BI.inherit(BI.Single, {
BI.each(res.value, function (i, v) {
if (!map[v]) {
self.storeValue.value.push(v);
BI.remove(self.storeValue.assist, v);
map[v] = v;
}
});
@ -9256,6 +9271,7 @@ BI.MultiSelectInsertNoBarCombo = BI.inherit(BI.Single, {
BI.each(res.assist, function (i, v) {
if (BI.isNotNull(map[v])) {
change = true;
self.storeValue.assist && self.storeValue.assist.push(map[v]);
delete map[v];
}
});
@ -14391,6 +14407,7 @@ BI.SearchMultiTextValueCombo = BI.inherit(BI.Single, {
BI.each(items, function (i, v) {
if (BI.isNotNull(map[v])) {
change = true;
self.storeValue.assist && self.storeValue.assist.push(map[v]);
delete map[v];
}
});
@ -14403,9 +14420,11 @@ BI.SearchMultiTextValueCombo = BI.inherit(BI.Single, {
var newItems = [];
BI.each(items, function (i, item) {
if (BI.isNotNull(selectedMap[items[i]])) {
self.storeValue.assist && self.storeValue.assist.push(selectedMap[items[i]]);
delete selectedMap[items[i]];
}
if (BI.isNull(notSelectedMap[items[i]])) {
BI.remove(self.storeValue.assist, item);
newItems.push(item);
}
});
@ -14461,6 +14480,7 @@ BI.SearchMultiTextValueCombo = BI.inherit(BI.Single, {
BI.each(res.value, function (i, v) {
if (!map[v]) {
self.storeValue.value.push(v);
BI.remove(self.storeValue.assist, v);
map[v] = v;
}
});
@ -14468,6 +14488,7 @@ BI.SearchMultiTextValueCombo = BI.inherit(BI.Single, {
BI.each(res.assist, function (i, v) {
if (BI.isNotNull(map[v])) {
change = true;
self.storeValue.assist && self.storeValue.assist.push(map[v]);
delete map[v];
}
});

5
src/widget/multiselect/multiselect.combo.js

@ -271,6 +271,7 @@ BI.MultiSelectCombo = BI.inherit(BI.Single, {
BI.each(items, function (i, v) {
if (BI.isNotNull(map[v])) {
change = true;
self.storeValue.assist && self.storeValue.assist.push(map[v]);
delete map[v];
}
});
@ -283,9 +284,11 @@ BI.MultiSelectCombo = BI.inherit(BI.Single, {
var newItems = [];
BI.each(items, function (i, item) {
if (BI.isNotNull(selectedMap[items[i]])) {
self.storeValue.assist && self.storeValue.assist.push(selectedMap[items[i]]);
delete selectedMap[items[i]];
}
if (BI.isNull(notSelectedMap[items[i]])) {
BI.remove(self.storeValue.assist, item);
newItems.push(item);
}
});
@ -339,6 +342,7 @@ BI.MultiSelectCombo = BI.inherit(BI.Single, {
BI.each(res.value, function (i, v) {
if (!map[v]) {
self.storeValue.value.push(v);
BI.remove(self.storeValue.assist, v);
map[v] = v;
}
});
@ -346,6 +350,7 @@ BI.MultiSelectCombo = BI.inherit(BI.Single, {
BI.each(res.assist, function (i, v) {
if (BI.isNotNull(map[v])) {
change = true;
self.storeValue.assist && self.storeValue.assist.push(map[v]);
delete map[v];
}
});

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

@ -283,6 +283,7 @@ BI.MultiSelectInsertCombo = BI.inherit(BI.Single, {
BI.each(items, function (i, v) {
if (BI.isNotNull(map[v])) {
change = true;
self.storeValue.assist && self.storeValue.assist.push(map[v]);
delete map[v];
}
});
@ -295,9 +296,11 @@ BI.MultiSelectInsertCombo = BI.inherit(BI.Single, {
var newItems = [];
BI.each(items, function (i, item) {
if (BI.isNotNull(selectedMap[items[i]])) {
self.storeValue.assist && self.storeValue.assist.push(selectedMap[items[i]]);
delete selectedMap[items[i]];
}
if (BI.isNull(notSelectedMap[items[i]])) {
BI.remove(self.storeValue.assist, item);
newItems.push(item);
}
});
@ -328,6 +331,8 @@ BI.MultiSelectInsertCombo = BI.inherit(BI.Single, {
BI.each(res.value, function (i, v) {
if (!map[v]) {
self.storeValue.value.push(v);
// value更新的时候assist也需要更新
BI.remove(self.storeValue.assist, v);
map[v] = v;
}
});
@ -335,6 +340,7 @@ BI.MultiSelectInsertCombo = BI.inherit(BI.Single, {
BI.each(res.assist, function (i, v) {
if (BI.isNotNull(map[v])) {
change = true;
self.storeValue.assist && self.storeValue.assist.push(map[v]);
delete map[v];
}
});

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

@ -295,6 +295,7 @@ BI.MultiSelectInsertNoBarCombo = BI.inherit(BI.Single, {
BI.each(items, function (i, v) {
if (BI.isNotNull(map[v])) {
change = true;
self.storeValue.assist && self.storeValue.assist.push(map[v]);
delete map[v];
}
});
@ -307,9 +308,11 @@ BI.MultiSelectInsertNoBarCombo = BI.inherit(BI.Single, {
var newItems = [];
BI.each(items, function (i, item) {
if (BI.isNotNull(selectedMap[items[i]])) {
self.storeValue.assist && self.storeValue.assist.push(selectedMap[items[i]]);
delete selectedMap[items[i]];
}
if (BI.isNull(notSelectedMap[items[i]])) {
BI.remove(self.storeValue.assist, item);
newItems.push(item);
}
});
@ -340,6 +343,7 @@ BI.MultiSelectInsertNoBarCombo = BI.inherit(BI.Single, {
BI.each(res.value, function (i, v) {
if (!map[v]) {
self.storeValue.value.push(v);
BI.remove(self.storeValue.assist, v);
map[v] = v;
}
});
@ -347,6 +351,7 @@ BI.MultiSelectInsertNoBarCombo = BI.inherit(BI.Single, {
BI.each(res.assist, function (i, v) {
if (BI.isNotNull(map[v])) {
change = true;
self.storeValue.assist && self.storeValue.assist.push(map[v]);
delete map[v];
}
});

5
src/widget/searchmultitextvaluecombo/multitextvalue.combo.search.js

@ -282,6 +282,7 @@ BI.SearchMultiTextValueCombo = BI.inherit(BI.Single, {
BI.each(items, function (i, v) {
if (BI.isNotNull(map[v])) {
change = true;
self.storeValue.assist && self.storeValue.assist.push(map[v]);
delete map[v];
}
});
@ -294,9 +295,11 @@ BI.SearchMultiTextValueCombo = BI.inherit(BI.Single, {
var newItems = [];
BI.each(items, function (i, item) {
if (BI.isNotNull(selectedMap[items[i]])) {
self.storeValue.assist && self.storeValue.assist.push(selectedMap[items[i]]);
delete selectedMap[items[i]];
}
if (BI.isNull(notSelectedMap[items[i]])) {
BI.remove(self.storeValue.assist, item);
newItems.push(item);
}
});
@ -352,6 +355,7 @@ BI.SearchMultiTextValueCombo = BI.inherit(BI.Single, {
BI.each(res.value, function (i, v) {
if (!map[v]) {
self.storeValue.value.push(v);
BI.remove(self.storeValue.assist, v);
map[v] = v;
}
});
@ -359,6 +363,7 @@ BI.SearchMultiTextValueCombo = BI.inherit(BI.Single, {
BI.each(res.assist, function (i, v) {
if (BI.isNotNull(map[v])) {
change = true;
self.storeValue.assist && self.storeValue.assist.push(map[v]);
delete map[v];
}
});

Loading…
Cancel
Save