|
|
@ -10973,6 +10973,7 @@ BI.MultiSelectList = BI.inherit(BI.Widget, { |
|
|
|
|
|
|
|
|
|
|
|
var assertShowValue = function () { |
|
|
|
var assertShowValue = function () { |
|
|
|
BI.isKey(self._startValue) && self.storeValue.value[self.storeValue.type === BI.Selection.All ? "remove" : "pushDistinct"](self._startValue); |
|
|
|
BI.isKey(self._startValue) && self.storeValue.value[self.storeValue.type === BI.Selection.All ? "remove" : "pushDistinct"](self._startValue); |
|
|
|
|
|
|
|
self.trigger.setValue(self.storeValue); |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
this.adapter = BI.createWidget({ |
|
|
|
this.adapter = BI.createWidget({ |
|
|
@ -11032,6 +11033,8 @@ BI.MultiSelectList = BI.inherit(BI.Widget, { |
|
|
|
self._showAdapter(); |
|
|
|
self._showAdapter(); |
|
|
|
self._setStartValue(""); |
|
|
|
self._setStartValue(""); |
|
|
|
self.adapter.setValue(self.storeValue); |
|
|
|
self.adapter.setValue(self.storeValue); |
|
|
|
|
|
|
|
//需要刷新回到初始界面,否则搜索的结果不能放在最前面
|
|
|
|
|
|
|
|
self.adapter.populate(); |
|
|
|
} |
|
|
|
} |
|
|
|
}, { |
|
|
|
}, { |
|
|
|
eventName: BI.Searcher.EVENT_PAUSE, |
|
|
|
eventName: BI.Searcher.EVENT_PAUSE, |
|
|
@ -11043,7 +11046,6 @@ BI.MultiSelectList = BI.inherit(BI.Widget, { |
|
|
|
value: [keyword] |
|
|
|
value: [keyword] |
|
|
|
}, function () { |
|
|
|
}, function () { |
|
|
|
self._showAdapter(); |
|
|
|
self._showAdapter(); |
|
|
|
self.trigger.setValue(self.storeValue); |
|
|
|
|
|
|
|
self.adapter.setValue(self.storeValue); |
|
|
|
self.adapter.setValue(self.storeValue); |
|
|
|
self._setStartValue(keyword); |
|
|
|
self._setStartValue(keyword); |
|
|
|
assertShowValue(); |
|
|
|
assertShowValue(); |
|
|
@ -11063,13 +11065,11 @@ BI.MultiSelectList = BI.inherit(BI.Widget, { |
|
|
|
if (keywords.length > 0) { |
|
|
|
if (keywords.length > 0) { |
|
|
|
self._joinKeywords(keywords, function () { |
|
|
|
self._joinKeywords(keywords, function () { |
|
|
|
if (BI.isEndWithBlank(last)) { |
|
|
|
if (BI.isEndWithBlank(last)) { |
|
|
|
self.trigger.setValue(self.storeValue); |
|
|
|
|
|
|
|
self.adapter.setValue(self.storeValue); |
|
|
|
self.adapter.setValue(self.storeValue); |
|
|
|
assertShowValue(); |
|
|
|
assertShowValue(); |
|
|
|
self.adapter.populate(); |
|
|
|
self.adapter.populate(); |
|
|
|
self._setStartValue(""); |
|
|
|
self._setStartValue(""); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
self.trigger.setValue(self.storeValue); |
|
|
|
|
|
|
|
self.adapter.setValue(self.storeValue); |
|
|
|
self.adapter.setValue(self.storeValue); |
|
|
|
assertShowValue(); |
|
|
|
assertShowValue(); |
|
|
|
} |
|
|
|
} |
|
|
|