|
|
|
@ -104795,7 +104795,7 @@ BI.SingleSelectInsertList = BI.inherit(BI.Widget, {
|
|
|
|
|
BI.SingleSelectInsertList.superclass._init.apply(this, arguments); |
|
|
|
|
|
|
|
|
|
var self = this, o = this.options; |
|
|
|
|
this.storeValue = o.value || {}; |
|
|
|
|
this.storeValue = o.value; |
|
|
|
|
|
|
|
|
|
var assertShowValue = function () { |
|
|
|
|
BI.isKey(self._startValue) && self.storeValue.value[self.storeValue.type === BI.Selection.All ? "remove" : "pushDistinct"](self._startValue); |
|
|
|
@ -104851,14 +104851,14 @@ BI.SingleSelectInsertList = BI.inherit(BI.Widget, {
|
|
|
|
|
eventName: BI.Searcher.EVENT_START, |
|
|
|
|
action: function () { |
|
|
|
|
self._showSearcherPane(); |
|
|
|
|
self._setStartValue(""); |
|
|
|
|
self._setStartValue(); |
|
|
|
|
this.setValue(BI.deepClone(self.storeValue)); |
|
|
|
|
} |
|
|
|
|
}, { |
|
|
|
|
eventName: BI.Searcher.EVENT_STOP, |
|
|
|
|
action: function () { |
|
|
|
|
self._showAdapter(); |
|
|
|
|
self._setStartValue(""); |
|
|
|
|
self._setStartValue(); |
|
|
|
|
self.adapter.setValue(self.storeValue); |
|
|
|
|
// 需要刷新回到初始界面,否则搜索的结果不能放在最前面
|
|
|
|
|
self.adapter.populate(); |
|
|
|
@ -104880,7 +104880,7 @@ BI.SingleSelectInsertList = BI.inherit(BI.Widget, {
|
|
|
|
|
self._setStartValue(keyword); |
|
|
|
|
assertShowValue(); |
|
|
|
|
self.adapter.populate(); |
|
|
|
|
self._setStartValue(""); |
|
|
|
|
self._setStartValue(); |
|
|
|
|
self.fireEvent(BI.SingleSelectInsertList.EVENT_CHANGE); |
|
|
|
|
}); |
|
|
|
|
} else { |
|
|
|
@ -104907,7 +104907,7 @@ BI.SingleSelectInsertList = BI.inherit(BI.Widget, {
|
|
|
|
|
self.adapter.setValue(self.storeValue); |
|
|
|
|
assertShowValue(); |
|
|
|
|
self.adapter.populate(); |
|
|
|
|
self._setStartValue(""); |
|
|
|
|
self._setStartValue(); |
|
|
|
|
} else { |
|
|
|
|
self.adapter.setValue(self.storeValue); |
|
|
|
|
assertShowValue(); |
|
|
|
@ -104917,18 +104917,9 @@ BI.SingleSelectInsertList = BI.inherit(BI.Widget, {
|
|
|
|
|
} |
|
|
|
|
}, { |
|
|
|
|
eventName: BI.Searcher.EVENT_CHANGE, |
|
|
|
|
action: function (value, obj) { |
|
|
|
|
if (obj instanceof BI.MultiSelectBar) { |
|
|
|
|
self._joinAll(this.getValue(), function () { |
|
|
|
|
assertShowValue(); |
|
|
|
|
self.fireEvent(BI.SingleSelectInsertList.EVENT_CHANGE); |
|
|
|
|
}); |
|
|
|
|
} else { |
|
|
|
|
self._join(this.getValue(), function () { |
|
|
|
|
assertShowValue(); |
|
|
|
|
action: function () { |
|
|
|
|
self.storeValue = this.getValue(); |
|
|
|
|
self.fireEvent(BI.SingleSelectInsertList.EVENT_CHANGE); |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}] |
|
|
|
|
}); |
|
|
|
@ -104971,9 +104962,7 @@ BI.SingleSelectInsertList = BI.inherit(BI.Widget, {
|
|
|
|
|
this.trigger.stopEditing(); |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
_assertValue: function (val) { |
|
|
|
|
val || (val = ""); |
|
|
|
|
}, |
|
|
|
|
_assertValue: function () {}, |
|
|
|
|
|
|
|
|
|
_makeMap: function (values) { |
|
|
|
|
return BI.makeObject(values || []); |
|
|
|
@ -105081,7 +105070,7 @@ BI.SingleSelectInsertList = BI.inherit(BI.Widget, {
|
|
|
|
|
// this.trigger.adjustView();
|
|
|
|
|
}, |
|
|
|
|
setValue: function (v) { |
|
|
|
|
this.storeValue = v || ""; |
|
|
|
|
this.storeValue = v; |
|
|
|
|
this.adapter.setValue(this.storeValue); |
|
|
|
|
this.trigger.setValue(this.storeValue); |
|
|
|
|
}, |
|
|
|
|