提交 39594266 编写于 作者: U unknown

修复数据网格、数据表格在移动表单预览的时候没有按Mobile样式呈现

上级 471d1e04
......@@ -169,8 +169,10 @@
},
"designMobileNode": {
"margin": "15px",
"width": "360px",
"height": "580px",
"width": "660px",
"height": "680px",
// "width": "360px",
// "height": "580px",
"box-shadow": "0px 0px 20px #606060",
"background": "url("+"../x_component_process_FormDesigner/$Main/default/designerBg.png)",
"font-siez": "12px",
......
......@@ -425,7 +425,7 @@ MWF.xApplication.cms.FormDesigner.Module.Form = MWF.CMSFCForm = new Class({
MWF.xDesktop.requireApp("cms.FormDesigner", "Preview", function(){
if (this.options.mode=="Mobile"){
this.previewBox = new MWF.xApplication.cms.FormDesigner.Preview(this, {"size": {"x": "340", "y": 580}});
this.previewBox = new MWF.xApplication.cms.FormDesigner.Preview(this, {"size": {"x": "400", "y": 580}});
}else{
this.previewBox = new MWF.xApplication.cms.FormDesigner.Preview(this);
}
......
......@@ -407,7 +407,9 @@ MWF.xApplication.cms.Xform.Form = MWF.CMSForm = new Class(
_loadModule: function (json, node, beforeLoad) {
if (!json) return;
if (!MWF["CMS" + json.type]) {
MWF.xDesktop.requireApp("cms.Xform", json.type, null, false);
var moduleType = json.type;
if(moduleType === "AttachmentDg")moduleType = "Attachment";
MWF.xDesktop.requireApp("cms.Xform", moduleType, null, false);
}
var module = new MWF["CMS" + json.type](node, json, this);
if (beforeLoad) beforeLoad.apply(module);
......
......@@ -1220,7 +1220,9 @@ MWF.xApplication.process.Xform.Form = MWF.APPForm = new Class(
if (json.type === "Subpage" || json.moduleName === "subpage") this.subpageCount++;
if (json.type === "Widget" || json.moduleName === "widget") this.widgetCount++;
if (!MWF["APP" + json.type]) {
MWF.xDesktop.requireApp("process.Xform", json.type, null, false);
var moduleType = json.type;
if(moduleType === "AttachmentDg")moduleType = "Attachment";
MWF.xDesktop.requireApp("process.Xform", moduleType, null, false);
}
var module = new MWF["APP" + json.type](node, json, this);
if (beforeLoad) beforeLoad.apply(module);
......
......@@ -46,6 +46,9 @@
if( preview.form && preview.form.designer && preview.form.designer.application && preview.form.designer.application.id ){
data.document.appId = preview.form.designer.application.id;
}
if( preview.form && preview.form.json && preview.form.json.mode && preview.form.json.mode === "Mobile" ){
layout.mobile = true;
}
layout.appForm.businessData = {
"data": data.data,
"document": data.document,
......
......@@ -40,6 +40,9 @@
if( preview.form && preview.form.designer && preview.form.designer.application && preview.form.designer.application.id ){
data.work.application = preview.form.designer.application.id;
}
if( preview.form && preview.form.json && preview.form.json.mode && preview.form.json.mode === "Mobile" ){
layout.mobile = true;
}
layout.appForm.businessData = {
"data": data.data,
"taskList": data.taskList,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册