提交 b7b2e7c8 编写于 作者: NoSubject's avatar NoSubject

Merge branch 'fix/subsource_bug_wrdp' into 'wrdp'

子数据源显示单个数据错误修复

See merge request o2oa/o2oa!1989
...@@ -18,16 +18,7 @@ MWF.xApplication.process.Xform.SubSource = MWF.APPSubSource = new Class({ ...@@ -18,16 +18,7 @@ MWF.xApplication.process.Xform.SubSource = MWF.APPSubSource = new Class({
_loadUserInterface: function(){ _loadUserInterface: function(){
this.loopNodes = []; this.loopNodes = [];
this.subSourceItems = []; this.subSourceItems = [];
var node = new Element("div").inject(this.node, "before"); this.node.hide();
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.node.store("module", this);
this._loadJsonData(); this._loadJsonData();
}, },
...@@ -106,11 +97,23 @@ MWF.xApplication.process.Xform.SubSource = MWF.APPSubSource = new Class({ ...@@ -106,11 +97,23 @@ MWF.xApplication.process.Xform.SubSource = MWF.APPSubSource = new Class({
if (this.source.data){ if (this.source.data){
this._getSourceData(this.source.data); this._getSourceData(this.source.data);
this.fireEvent("postLoadData"); this.fireEvent("postLoadData");
this.node.show();
if (typeOf(this.data)=="array"){ 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._loopData();
this.fireEvent("loadData"); this.fireEvent("loadData");
}else{ }else{
this._loadModules(this.node); this.form._loadModules(this.node);
} }
//this.tmpDiv = new Element("div"); //this.tmpDiv = new Element("div");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册