|
|
|
@ -68565,7 +68565,7 @@ BI.MultiLayerSelectTreeCombo = BI.inherit(BI.Widget, {
|
|
|
|
|
eventName: BI.MultiLayerSelectTreeTrigger.EVENT_ADD_ITEM, |
|
|
|
|
action: function () { |
|
|
|
|
var value = self.trigger.getSearcher().getKeyword(); |
|
|
|
|
self.combo.setValue(value); |
|
|
|
|
self.combo.setValue([value]); |
|
|
|
|
self.combo.hideView(); |
|
|
|
|
} |
|
|
|
|
}] |
|
|
|
@ -69747,7 +69747,7 @@ BI.MultiLayerSingleTreeCombo = BI.inherit(BI.Widget, {
|
|
|
|
|
eventName: BI.MultiLayerSingleTreeTrigger.EVENT_ADD_ITEM, |
|
|
|
|
action: function () { |
|
|
|
|
var value = self.trigger.getSearcher().getKeyword(); |
|
|
|
|
self.combo.setValue(value); |
|
|
|
|
self.combo.setValue([value]); |
|
|
|
|
self.combo.hideView(); |
|
|
|
|
} |
|
|
|
|
}] |
|
|
|
@ -74606,16 +74606,14 @@ BI.MultiSelectInsertList = BI.inherit(BI.Single, {
|
|
|
|
|
_joinKeywords: function (keywords, callback) { |
|
|
|
|
var self = this, o = this.options; |
|
|
|
|
this._assertValue(this.storeValue); |
|
|
|
|
if (!this._allData) { |
|
|
|
|
// 和复选下拉框同步,allData做缓存是会爆炸的
|
|
|
|
|
o.itemsCreator({ |
|
|
|
|
type: BI.MultiSelectInsertList.REQ_GET_ALL_DATA |
|
|
|
|
type: BI.MultiSelectInsertList.REQ_GET_ALL_DATA, |
|
|
|
|
keywords: keywords |
|
|
|
|
}, function (ob) { |
|
|
|
|
self._allData = BI.map(ob.items, "value"); |
|
|
|
|
digest(self._allData); |
|
|
|
|
var values = BI.map(ob.items, "value"); |
|
|
|
|
digest(values); |
|
|
|
|
}); |
|
|
|
|
} else { |
|
|
|
|
digest(this._allData); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
function digest (items) { |
|
|
|
|
var selectedMap = self._makeMap(items); |
|
|
|
@ -74716,8 +74714,6 @@ BI.MultiSelectInsertList = BI.inherit(BI.Single, {
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
populate: function () { |
|
|
|
|
this._count = null; |
|
|
|
|
this._allData = null; |
|
|
|
|
this.adapter.populate.apply(this.adapter, arguments); |
|
|
|
|
this.trigger.populate.apply(this.trigger, arguments); |
|
|
|
|
} |
|
|
|
@ -74949,16 +74945,14 @@ BI.MultiSelectInsertNoBarList = BI.inherit(BI.Single, {
|
|
|
|
|
_joinKeywords: function (keywords, callback) { |
|
|
|
|
var self = this, o = this.options; |
|
|
|
|
this._assertValue(this.storeValue); |
|
|
|
|
if (!this._allData) { |
|
|
|
|
// 和复选下拉框同步,allData做缓存是会爆炸的
|
|
|
|
|
o.itemsCreator({ |
|
|
|
|
type: BI.MultiSelectInsertNoBarList.REQ_GET_ALL_DATA |
|
|
|
|
type: BI.MultiSelectInsertNoBarList.REQ_GET_ALL_DATA, |
|
|
|
|
keywords: keywords |
|
|
|
|
}, function (ob) { |
|
|
|
|
self._allData = BI.map(ob.items, "value"); |
|
|
|
|
digest(self._allData); |
|
|
|
|
var values = BI.map(ob.items, "value"); |
|
|
|
|
digest(values); |
|
|
|
|
}); |
|
|
|
|
} else { |
|
|
|
|
digest(this._allData); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
function digest (items) { |
|
|
|
|
var selectedMap = self._makeMap(items); |
|
|
|
@ -75061,8 +75055,6 @@ BI.MultiSelectInsertNoBarList = BI.inherit(BI.Single, {
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
populate: function () { |
|
|
|
|
this._count = null; |
|
|
|
|
this._allData = null; |
|
|
|
|
this.adapter.populate.apply(this.adapter, arguments); |
|
|
|
|
this.trigger.populate.apply(this.trigger, arguments); |
|
|
|
|
} |
|
|
|
@ -75268,16 +75260,14 @@ BI.MultiSelectList = BI.inherit(BI.Widget, {
|
|
|
|
|
_joinKeywords: function (keywords, callback) { |
|
|
|
|
var self = this, o = this.options; |
|
|
|
|
this._assertValue(this.storeValue); |
|
|
|
|
if (!this._allData) { |
|
|
|
|
// 和复选下拉框同步,allData做缓存是会爆炸的
|
|
|
|
|
o.itemsCreator({ |
|
|
|
|
type: BI.MultiSelectList.REQ_GET_ALL_DATA |
|
|
|
|
type: BI.MultiSelectList.REQ_GET_ALL_DATA, |
|
|
|
|
keywords: keywords |
|
|
|
|
}, function (ob) { |
|
|
|
|
self._allData = BI.map(ob.items, "value"); |
|
|
|
|
digest(self._allData); |
|
|
|
|
var values = BI.map(ob.items, "value"); |
|
|
|
|
digest(values); |
|
|
|
|
}); |
|
|
|
|
} else { |
|
|
|
|
digest(this._allData); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
function digest (items) { |
|
|
|
|
var selectedMap = self._makeMap(items); |
|
|
|
@ -75408,8 +75398,6 @@ BI.MultiSelectList = BI.inherit(BI.Widget, {
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
populate: function () { |
|
|
|
|
this._count = null; |
|
|
|
|
this._allData = null; |
|
|
|
|
this.adapter.populate.apply(this.adapter, arguments); |
|
|
|
|
this.trigger.populate.apply(this.trigger, arguments); |
|
|
|
|
} |
|
|
|
@ -76380,7 +76368,8 @@ BI.MultiTreeListCombo = BI.inherit(BI.Single, {
|
|
|
|
|
itemsCreator: BI.emptyFn, |
|
|
|
|
valueFormatter: BI.emptyFn, |
|
|
|
|
height: 24, |
|
|
|
|
allowEdit: true |
|
|
|
|
allowEdit: true, |
|
|
|
|
allowInsertValue: true |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
@ -76409,7 +76398,7 @@ BI.MultiTreeListCombo = BI.inherit(BI.Single, {
|
|
|
|
|
type: "bi.multi_list_tree_searcher", |
|
|
|
|
itemsCreator: o.itemsCreator, |
|
|
|
|
popup: { |
|
|
|
|
type: "bi.multi_tree_search_insert_pane", |
|
|
|
|
type: o.allowInsertValue ? "bi.multi_tree_search_insert_pane" : "bi.multi_tree_search_pane", |
|
|
|
|
el: { |
|
|
|
|
type: "bi.list_part_tree" |
|
|
|
|
}, |
|
|
|
@ -88153,6 +88142,8 @@ BI.ListTreeValueChooserInsertCombo = BI.inherit(BI.AbstractListTreeValueChooser,
|
|
|
|
|
text: o.text, |
|
|
|
|
value: o.value, |
|
|
|
|
watermark: o.watermark, |
|
|
|
|
allowInsertValue: o.allowInsertValue, |
|
|
|
|
allowEdit: o.allowEdit, |
|
|
|
|
itemsCreator: BI.bind(this._itemsCreator, this), |
|
|
|
|
valueFormatter: BI.bind(this._valueFormatter, this), |
|
|
|
|
width: o.width, |
|
|
|
|