From 5a99f0635a2b3d36d7c0f5abaccab5ce2b1b3353 Mon Sep 17 00:00:00 2001 From: windy <1374721899@qq.com> Date: Mon, 18 Nov 2019 13:42:28 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=A0JIRA=E4=BB=BB=E5=8A=A1=20refactor:=20?= =?UTF-8?q?=E8=A1=A5=E4=B8=80=E4=B8=8Bcheck?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../multilayerselecttree/multilayerselecttree.popup.js | 8 ++++++-- .../multilayersingletree/multilayersingletree.popup.js | 8 ++++++-- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/src/widget/multilayerselecttree/multilayerselecttree.popup.js b/src/widget/multilayerselecttree/multilayerselecttree.popup.js index 904b193c6..9f8dd961a 100644 --- a/src/widget/multilayerselecttree/multilayerselecttree.popup.js +++ b/src/widget/multilayerselecttree/multilayerselecttree.popup.js @@ -14,7 +14,8 @@ BI.MultiLayerSelectTreePopup = BI.inherit(BI.Widget, { isDefaultInit: false, itemsCreator: BI.emptyFn, items: [], - value: "" + value: "", + onLoaded: BI.emptyFn }); }, @@ -31,7 +32,10 @@ BI.MultiLayerSelectTreePopup = BI.inherit(BI.Widget, { keywordGetter: o.keywordGetter, value: o.value, scrollable: null, - onLoaded: o.onLoaded + onLoaded: function () { + self.tree.check(); + o.onLoaded(); + } }); BI.createWidget({ diff --git a/src/widget/multilayersingletree/multilayersingletree.popup.js b/src/widget/multilayersingletree/multilayersingletree.popup.js index 50bef1354..7623110b4 100644 --- a/src/widget/multilayersingletree/multilayersingletree.popup.js +++ b/src/widget/multilayersingletree/multilayersingletree.popup.js @@ -13,7 +13,8 @@ BI.MultiLayerSingleTreePopup = BI.inherit(BI.Widget, { tipText: BI.i18nText("BI-No_Selected_Item"), isDefaultInit: false, itemsCreator: BI.emptyFn, - items: [] + items: [], + onLoaded: BI.emptyFn }); }, @@ -30,7 +31,10 @@ BI.MultiLayerSingleTreePopup = BI.inherit(BI.Widget, { keywordGetter: o.keywordGetter, value: o.value, scrollable: null, - onLoaded: o.onLoaded + onLoaded: function () { + self.tree.check(); + o.onLoaded(); + } }); BI.createWidget({