Skip to content

Commit

Permalink
Merge branch 'fix/修复内容管理子表单使用脚本返回PC端数据的问题' into 'develop'
Browse files Browse the repository at this point in the history
修复内容管理子表单使用脚本返回PC端数据的问题

See merge request o2oa/o2oa!2687
  • Loading branch information
huqi1980 committed Jul 2, 2024
2 parents b50bef6 + 8a2e940 commit ba240c2
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions o2web/source/x_component_cms_Xform/Subform.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,5 +70,24 @@ MWF.xApplication.cms.Xform.Subform = MWF.CMSSubform = new Class({
// if (callback) callback();
// }
//}
},
getSubformData: function (data) {
if (!data || typeOf(data) !== "object") return;
var subformDataStr = null;
if ( this.form.json.mode !== "Mobile" && !layout.mobile){
subformDataStr = data.data;
}else{
subformDataStr = data.mobileData;
}
this.subformData = null;
if (subformDataStr) {
if( this.form.isParseLanguage ) {
var jsonStr = o2.bindJson(MWF.decodeJsonString(subformDataStr), {"lp": MWF.xApplication.process.Xform.LP.form});
this.subformData = JSON.decode(jsonStr);
}else{
this.subformData = JSON.decode(MWF.decodeJsonString(subformDataStr));
}
this.subformData.updateTime = data.updateTime;
}
}
});

0 comments on commit ba240c2

Please sign in to comment.