From 16f534c8c87568f8c0f286d31a30e7a2554afbfc Mon Sep 17 00:00:00 2001 From: huqi Date: Thu, 5 Nov 2020 15:34:11 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AD=90=E6=95=B0=E6=8D=AE=E6=BA=90reload?= =?UTF-8?q?=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../x_component_process_Xform/SubSource.js | 24 +++++++++---------- 1 file changed, 11 insertions(+), 13 deletions(-) diff --git a/o2web/source/x_component_process_Xform/SubSource.js b/o2web/source/x_component_process_Xform/SubSource.js index d4dcce28e4..ae545ff963 100644 --- a/o2web/source/x_component_process_Xform/SubSource.js +++ b/o2web/source/x_component_process_Xform/SubSource.js @@ -18,7 +18,16 @@ MWF.xApplication.process.Xform.SubSource = MWF.APPSubSource = new Class({ _loadUserInterface: function(){ this.loopNodes = []; this.subSourceItems = []; - this.node.hide(); + var node = new Element("div").inject(this.node, "before"); + this.node.inject(node); + this.loopNode = this.node.dispose(); + this.node = node; + var id = node.get("id"); + node.set("id", ""); + this.node.set({ + "id": id, + "mwftype": node.get("mwftype") + }); this.node.store("module", this); this._loadJsonData(); }, @@ -97,20 +106,9 @@ MWF.xApplication.process.Xform.SubSource = MWF.APPSubSource = new Class({ if (this.source.data){ this._getSourceData(this.source.data); this.fireEvent("postLoadData"); - this.node.show(); if (typeOf(this.data)=="array"){ - var node = new Element("div").inject(this.node, "before"); - this.node.inject(node); - this.loopNode = this.node.dispose(); - this.node = node; - var id = node.get("id"); - node.set("id", ""); - this.node.set({ - "id": id, - "mwftype": node.get("mwftype") - }); - this._loopData(); + this.fireEvent("loadData"); }else{ this.form._loadModules(this.node); -- GitLab