Browse Source

无JIRA任务 rever: 搜索选择已选中

es6
windy 5 years ago
parent
commit
de686354ad
  1. 4
      src/widget/multitree/multi.tree.combo.js
  2. 4
      src/widget/multitree/multi.tree.insert.combo.js
  3. 4
      src/widget/multitree/multi.tree.list.combo.js

4
src/widget/multitree/multi.tree.combo.js

@ -187,9 +187,9 @@ BI.MultiTreeCombo = BI.inherit(BI.Single, {
var checked = this.getSearcher().hasChecked(); var checked = this.getSearcher().hasChecked();
var val = { var val = {
type: BI.Selection.Multi, type: BI.Selection.Multi,
value: checked ? this.getValue() : {} value: checked ? {1: 1} : {}
}; };
this.getSearcher().setState(val); this.getSearcher().setState(checked ? BI.Selection.Multi : BI.Selection.None);
this.getCounter().setButtonChecked(val); this.getCounter().setButtonChecked(val);
self.fireEvent(BI.MultiTreeCombo.EVENT_CLICK_ITEM); self.fireEvent(BI.MultiTreeCombo.EVENT_CLICK_ITEM);
}); });

4
src/widget/multitree/multi.tree.insert.combo.js

@ -204,9 +204,9 @@ BI.MultiTreeInsertCombo = BI.inherit(BI.Single, {
var checked = this.getSearcher().hasChecked(); var checked = this.getSearcher().hasChecked();
var val = { var val = {
type: BI.Selection.Multi, type: BI.Selection.Multi,
value: checked ? this.getValue() : {} value: checked ? {1: 1} : {}
}; };
this.getSearcher().setState(val); this.getSearcher().setState(checked ? BI.Selection.Multi : BI.Selection.None);
this.getCounter().setButtonChecked(val); this.getCounter().setButtonChecked(val);
self.fireEvent(BI.MultiTreeInsertCombo.EVENT_CLICK_ITEM, self.combo.getValue()); self.fireEvent(BI.MultiTreeInsertCombo.EVENT_CLICK_ITEM, self.combo.getValue());
}); });

4
src/widget/multitree/multi.tree.list.combo.js

@ -212,9 +212,9 @@ BI.MultiTreeListCombo = BI.inherit(BI.Single, {
var checked = this.getSearcher().hasChecked(); var checked = this.getSearcher().hasChecked();
var val = { var val = {
type: BI.Selection.Multi, type: BI.Selection.Multi,
value: checked ? this.getValue() : {} value: checked ? {1: 1} : {}
}; };
this.getSearcher().setState(val); this.getSearcher().setState(checked ? BI.Selection.Multi : BI.Selection.None);
this.getCounter().setButtonChecked(val); this.getCounter().setButtonChecked(val);
self.fireEvent(BI.MultiTreeListCombo.EVENT_CLICK_ITEM, self.combo.getValue()); self.fireEvent(BI.MultiTreeListCombo.EVENT_CLICK_ITEM, self.combo.getValue());
}); });

Loading…
Cancel
Save