From 94e6b4c79553aecee0d11b2429635b4f12586903 Mon Sep 17 00:00:00 2001 From: iapyang Date: Mon, 25 May 2020 17:05:37 +0800 Subject: [PATCH] =?UTF-8?q?REPORT-31462=20refactor:=20=E4=BA=8B=E4=BB=B6?= =?UTF-8?q?=E5=80=BC=E4=B8=8A=E6=8A=9B=E4=B8=80=E4=B8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/component/treevaluechooser/combo.listtreevaluechooser.js | 4 ++-- .../treevaluechooser/combo.treevaluechooser.insert.js | 4 ++-- src/component/treevaluechooser/combo.treevaluechooser.js | 4 ++-- src/widget/multitree/multi.tree.combo.js | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/component/treevaluechooser/combo.listtreevaluechooser.js b/src/component/treevaluechooser/combo.listtreevaluechooser.js index 076849dcb0..4286b9cd7f 100644 --- a/src/component/treevaluechooser/combo.listtreevaluechooser.js +++ b/src/component/treevaluechooser/combo.listtreevaluechooser.js @@ -52,8 +52,8 @@ BI.ListTreeValueChooserInsertCombo = BI.inherit(BI.AbstractListTreeValueChooser, } }, { eventName: BI.MultiTreeListCombo.EVENT_CLICK_ITEM, - action: function () { - self.fireEvent(BI.ListTreeValueChooserInsertCombo.EVENT_CLICK_ITEM); + action: function (v) { + self.fireEvent(BI.ListTreeValueChooserInsertCombo.EVENT_CLICK_ITEM, v); } }, { eventName: BI.MultiTreeListCombo.EVENT_SEARCHING, diff --git a/src/component/treevaluechooser/combo.treevaluechooser.insert.js b/src/component/treevaluechooser/combo.treevaluechooser.insert.js index f89032c923..3527c5d3a2 100644 --- a/src/component/treevaluechooser/combo.treevaluechooser.insert.js +++ b/src/component/treevaluechooser/combo.treevaluechooser.insert.js @@ -51,8 +51,8 @@ BI.TreeValueChooserInsertCombo = BI.inherit(BI.AbstractTreeValueChooser, { } }, { eventName: BI.MultiTreeInsertCombo.EVENT_CLICK_ITEM, - action: function () { - self.fireEvent(BI.TreeValueChooserInsertCombo.EVENT_CLICK_ITEM); + action: function (v) { + self.fireEvent(BI.TreeValueChooserInsertCombo.EVENT_CLICK_ITEM, v); } }, { eventName: BI.MultiTreeInsertCombo.EVENT_SEARCHING, diff --git a/src/component/treevaluechooser/combo.treevaluechooser.js b/src/component/treevaluechooser/combo.treevaluechooser.js index 32e8fac3ed..a859fed0ff 100644 --- a/src/component/treevaluechooser/combo.treevaluechooser.js +++ b/src/component/treevaluechooser/combo.treevaluechooser.js @@ -51,8 +51,8 @@ BI.TreeValueChooserCombo = BI.inherit(BI.AbstractTreeValueChooser, { } }, { eventName: BI.MultiTreeCombo.EVENT_CLICK_ITEM, - action: function () { - self.fireEvent(BI.TreeValueChooserCombo.EVENT_CLICK_ITEM); + action: function (v) { + self.fireEvent(BI.TreeValueChooserCombo.EVENT_CLICK_ITEM, v); } }, { eventName: BI.MultiTreeCombo.EVENT_SEARCHING, diff --git a/src/widget/multitree/multi.tree.combo.js b/src/widget/multitree/multi.tree.combo.js index e62da553c1..97b28d492e 100644 --- a/src/widget/multitree/multi.tree.combo.js +++ b/src/widget/multitree/multi.tree.combo.js @@ -181,7 +181,7 @@ BI.MultiTreeCombo = BI.inherit(BI.Single, { }; this.getSearcher().setState(checked ? BI.Selection.Multi : BI.Selection.None); self.numberCounter.setButtonChecked(val); - self.fireEvent(BI.MultiTreeCombo.EVENT_CLICK_ITEM); + self.fireEvent(BI.MultiTreeCombo.EVENT_CLICK_ITEM, self.combo.getValue()); }); this.combo.on(BI.Combo.EVENT_BEFORE_POPUPVIEW, function () {