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

Merge branch 'feature/elementui_portal' into 'wrdp'

portal页面增加ElementUI组件

See merge request o2oa/o2oa!5461
......@@ -52,6 +52,19 @@
"float": "right",
"cursor": "pointer"
},
"toolbarTitleCategoryActionNode": {
"width": "22px",
"height": "22px",
"margin-top": "-26px",
"margin-right": "22px",
"background": "url(../x_component_portal_PageDesigner/$Main/default/category.png) no-repeat center center",
"float": "right",
"cursor": "pointer"
},
"toolbarGroupContentNode": {
"overflow": "hidden"
},
"toolbarContentNode": {
"background-color": "#DDD",
"border-radius": "0px",
......@@ -127,7 +140,10 @@
"height": "42px",
"background-position": "center center",
"background-repeat": "no-repeat",
"float": "left"
"float": "left",
"font-size": "24px",
"line-height": "40px",
"text-align": "center"
},
"toolbarToolTextNode": {
"margin-left": "46px",
......@@ -379,4 +395,4 @@
"background-color": "#CCC",
"position": "absolute"
}
}
\ No newline at end of file
}
{
"div": {
"icon": "div.png",
"text": MWF.APPPD.LP.modules.div,
"text": MWF.APPPOD.LP.modules.div,
"className": "Div"
},
"label": {
"icon": "label.png",
"text": MWF.APPPD.LP.modules.label,
"text": MWF.APPPOD.LP.modules.label,
"className": "Label"
},
"source": {
"icon": "source.png",
"text": MWF.APPPD.LP.modules.source,
"text": MWF.APPPOD.LP.modules.source,
"className": "Source"
},
"SubSource": {
"icon": "subSource.png",
"text": MWF.APPPD.LP.modules.subSource,
"text": MWF.APPPOD.LP.modules.subSource,
"className": "SubSource"
},
"sourceText": {
"icon": "sourceText.png",
"text": MWF.APPPD.LP.modules.sourceText,
"text": MWF.APPPOD.LP.modules.sourceText,
"className": "SourceText"
},
"table": {
"icon": "table.png",
"text": MWF.APPPD.LP.modules.table,
"text": MWF.APPPOD.LP.modules.table,
"className": "Table"
},
"tab": {
"icon": "tabs.png",
"text": MWF.APPPD.LP.modules.tab,
"text": MWF.APPPOD.LP.modules.tab,
"className": "Tab"
},
"image": {
"icon": "image.png",
"text": MWF.APPPD.LP.modules.image,
"text": MWF.APPPOD.LP.modules.image,
"className": "Image"
},
"button": {
"icon": "button.png",
"text": MWF.APPPD.LP.modules.button,
"text": MWF.APPPOD.LP.modules.button,
"className": "Button"
},
"iframe": {
"icon": "iframe.png",
"text": MWF.APPPD.LP.modules.iframe,
"text": MWF.APPPOD.LP.modules.iframe,
"className": "Iframe"
},
"html": {
"icon": "html.png",
"text": MWF.APPPD.LP.modules.html,
"text": MWF.APPPOD.LP.modules.html,
"className": "Html"
},
"common": {
"icon": "common.png",
"text": MWF.APPPD.LP.modules.common,
"text": MWF.APPPOD.LP.modules.common,
"className": "Common"
},
"tree": {
"icon": "tree.png",
"text": MWF.APPPD.LP.modules.tree,
"text": MWF.APPPOD.LP.modules.tree,
"className": "Tree"
},
"view": {
"icon": "view.png",
"text": MWF.APPPD.LP.modules.view,
"text": MWF.APPPOD.LP.modules.view,
"className": "View"
},
"stat": {
"icon": "stat.png",
"text": MWF.APPPD.LP.modules.stat,
"text": MWF.APPPOD.LP.modules.stat,
"className": "Stat"
},
"textfield": {
"icon": "textfield.png",
"text": MWF.APPPD.LP.modules.textfield,
"text": MWF.APPPOD.LP.modules.textfield,
"className": "Textfield"
},
// "personfield": {
......@@ -86,77 +86,77 @@
// },
"org": {
"icon": "personfield.png",
"text": MWF.APPPD.LP.modules.org,
"text": MWF.APPPOD.LP.modules.org,
"className": "Org"
},
"calendar": {
"icon": "calendar.png",
"text": MWF.APPPD.LP.modules.calendar,
"text": MWF.APPPOD.LP.modules.calendar,
"className": "Calendar"
},
"textarea": {
"icon": "textarea.png",
"text": MWF.APPPD.LP.modules.textarea,
"text": MWF.APPPOD.LP.modules.textarea,
"className": "Textarea"
},
"select": {
"icon": "select.png",
"text": MWF.APPPD.LP.modules.select,
"text": MWF.APPPOD.LP.modules.select,
"className": "Select"
},
"radio": {
"icon": "radio.png",
"text": MWF.APPPD.LP.modules.radio,
"text": MWF.APPPOD.LP.modules.radio,
"className": "Radio"
},
"checkbox": {
"icon": "checkbox.png",
"text": MWF.APPPD.LP.modules.checkbox,
"text": MWF.APPPOD.LP.modules.checkbox,
"className": "Checkbox"
},
"address": {
"icon": "address.png",
"text": MWF.APPPD.LP.modules.address,
"text": MWF.APPPOD.LP.modules.address,
"className": "Address"
},
"combox": {
"icon": "combox.png",
"text": MWF.APPPD.LP.modules.combox,
"text": MWF.APPPOD.LP.modules.combox,
"className": "Combox"
},
"widget": {
"icon": "subpage.png",
"text": MWF.APPPD.LP.modules.widget,
"text": MWF.APPPOD.LP.modules.widget,
"className": "Widget"
},
"widgetmodules": {
"icon": "subpage.png",
"text": MWF.APPPD.LP.modules.widgetmodules,
"text": MWF.APPPOD.LP.modules.widgetmodules,
"className": "Widgetmodules"
},
"statement": {
"icon": "statement.png",
"text": MWF.APPPD.LP.modules.statement,
"text": MWF.APPPOD.LP.modules.statement,
"className": "Statement"
},
"datagrid": {
"icon": "datagrid.png",
"text": MWF.APPPD.LP.modules.datagrid,
"text": MWF.APPPOD.LP.modules.datagrid,
"className": "Datagrid"
},
"datatable": {
"icon": "datagrid.png",
"text": MWF.APPPD.LP.modules.datatable,
"text": MWF.APPPOD.LP.modules.datatable,
"className": "Datatable"
},
"datatemplate": {
"icon": "datatemplate.png",
"text": MWF.APPPD.LP.modules.datatemplate,
"text": MWF.APPPOD.LP.modules.datatemplate,
"className": "Datatemplate"
},
"importer": {
"icon": "importer.png",
"text": MWF.APPPD.LP.modules.importer,
"text": MWF.APPPOD.LP.modules.importer,
"className": "Importer"
}
}
......@@ -50,6 +50,19 @@
"float": "right",
"cursor": "pointer"
},
"toolbarTitleCategoryActionNode": {
"width": "22px",
"height": "22px",
"margin-top": "-26px",
"margin-right": "22px",
"background": "url(../x_component_portal_PageDesigner/$Main/default/category.png) no-repeat center center",
"float": "right",
"cursor": "pointer"
},
"toolbarGroupContentNode": {
"overflow": "hidden"
},
"toolbarContentNode": {
"background-color": "#DDD",
"border-radius": "0px",
......@@ -125,7 +138,10 @@
"height": "42px",
"background-position": "center center",
"background-repeat": "no-repeat",
"float": "left"
"float": "left",
"font-size": "24px",
"line-height": "40px",
"text-align": "center"
},
"toolbarToolTextNode": {
"margin-left": "46px",
......@@ -378,4 +394,4 @@
"background-color": "#CCC",
"position": "absolute"
}
}
\ No newline at end of file
}
{
"source": {
"icon": "source.png",
"text": MWF.APPPOD.LP.modules.source,
"className": "Source"
},
"SubSource": {
"icon": "subSource.png",
"text": MWF.APPPOD.LP.modules.subSource,
"className": "SubSource"
},
"sourceText": {
"icon": "sourceText.png",
"text": MWF.APPPOD.LP.modules.sourceText,
"className": "SourceText"
}
}
{
"elcontainer": {
"fontIcon": "el-icon-s-grid",
"text": MWF.xApplication.process.FormDesigner.LP.modules.el_container,
"className": "Elcontainer"
},
"elinput": {
"fontIcon": "el-icon-edit",
"text": MWF.xApplication.process.FormDesigner.LP.modules.el_input,
"className": "Elinput"
},
"elautocomplete": {
"fontIcon": "el-icon-finished",
"text": MWF.xApplication.process.FormDesigner.LP.modules.el_autocomplete,
"className": "Elautocomplete"
},
"elnumber": {
"fontIcon": "el-icon-edit-outline",
"text": MWF.xApplication.process.FormDesigner.LP.modules.el_number,
"className": "Elnumber"
},
"elradio": {
"fontIcon": "el-icon-success",
"text": MWF.xApplication.process.FormDesigner.LP.modules.el_radio,
"className": "Elradio"
},
"elcheckbox": {
"fontIcon": "el-icon-circle-plus",
"text": MWF.xApplication.process.FormDesigner.LP.modules.el_checkbox,
"className": "Elcheckbox"
},
"elselect": {
"fontIcon": "el-icon-arrow-down",
"text": MWF.xApplication.process.FormDesigner.LP.modules.el_select,
"className": "Elselect"
},
"elcascader": {
"fontIcon": "el-icon-d-arrow-right",
"text": MWF.xApplication.process.FormDesigner.LP.modules.el_cascader,
"className": "Elcascader"
},
"elswitch": {
"fontIcon": "el-icon-open",
"text": MWF.xApplication.process.FormDesigner.LP.modules.el_switch,
"className": "Elswitch"
},
"elslider": {
"fontIcon": "el-icon-s-operation",
"text": MWF.xApplication.process.FormDesigner.LP.modules.el_slider,
"className": "Elslider"
},
"elbutton": {
"fontIcon": "el-icon-thumb",
"text": MWF.xApplication.process.FormDesigner.LP.modules.el_button,
"className": "Elbutton"
},
"elicon": {
"fontIcon": "el-icon-picture-outline-round",
"text": MWF.xApplication.process.FormDesigner.LP.modules.el_icon,
"className": "Elicon"
},
"elcommon": {
"fontIcon": "el-icon-full-screen",
"text": MWF.xApplication.process.FormDesigner.LP.modules.el_common,
"className": "Elcommon"
}
}
{
"label": {
"icon": "label.png",
"text": MWF.APPPOD.LP.modules.label,
"className": "Label"
},
"textfield": {
"icon": "textfield.png",
"text": MWF.APPPOD.LP.modules.textfield,
"className": "Textfield"
},
"org": {
"icon": "personfield.png",
"text": MWF.APPPOD.LP.modules.org,
"className": "Org"
},
"calendar": {
"icon": "calendar.png",
"text": MWF.APPPOD.LP.modules.calendar,
"className": "Calendar"
},
"textarea": {
"icon": "textarea.png",
"text": MWF.APPPOD.LP.modules.textarea,
"className": "Textarea"
},
"select": {
"icon": "select.png",
"text": MWF.APPPOD.LP.modules.select,
"className": "Select"
},
"radio": {
"icon": "radio.png",
"text": MWF.APPPOD.LP.modules.radio,
"className": "Radio"
},
"checkbox": {
"icon": "checkbox.png",
"text": MWF.APPPOD.LP.modules.checkbox,
"className": "Checkbox"
},
"address": {
"icon": "address.png",
"text": MWF.APPPOD.LP.modules.address,
"className": "Address"
},
"combox": {
"icon": "combox.png",
"text": MWF.APPPOD.LP.modules.combox,
"className": "Combox"
},
"datatable": {
"icon": "datagrid.png",
"text": MWF.APPPOD.LP.modules.datatable,
"className": "Datatable"
},
"datatemplate": {
"icon": "datatemplate.png",
"text": MWF.APPPOD.LP.modules.datatemplate,
"className": "Datatemplate"
}
}
{
"view": {
"icon": "view.png",
"text": MWF.APPPOD.LP.modules.view,
"className": "View"
},
"stat": {
"icon": "stat.png",
"text": MWF.APPPOD.LP.modules.stat,
"className": "Stat"
},
"widget": {
"icon": "subpage.png",
"text": MWF.APPPOD.LP.modules.widget,
"className": "Widget"
},
"widgetmodules": {
"icon": "subpage.png",
"text": MWF.APPPOD.LP.modules.widgetmodules,
"className": "Widgetmodules"
},
"statement": {
"icon": "statement.png",
"text": MWF.APPPOD.LP.modules.statement,
"className": "Statement"
},
"importer": {
"icon": "importer.png",
"text": MWF.APPPOD.LP.modules.importer,
"className": "Importer"
}
}
{
"div": {
"icon": "div.png",
"text": MWF.APPPOD.LP.modules.div,
"className": "Div"
},
"label": {
"icon": "label.png",
"text": MWF.APPPOD.LP.modules.label,
"className": "Label"
},
"source": {
"icon": "source.png",
"text": MWF.APPPOD.LP.modules.source,
"className": "Source"
},
"SubSource": {
"icon": "subSource.png",
"text": MWF.APPPOD.LP.modules.subSource,
"className": "SubSource"
},
"sourceText": {
"icon": "sourceText.png",
"text": MWF.APPPOD.LP.modules.sourceText,
"className": "SourceText"
},
"table": {
"icon": "table.png",
"text": MWF.APPPOD.LP.modules.table,
"className": "Table"
},
"tab": {
"icon": "tabs.png",
"text": MWF.APPPOD.LP.modules.tab,
"className": "Tab"
},
"image": {
"icon": "image.png",
"text": MWF.APPPOD.LP.modules.image,
"className": "Image"
},
"button": {
"icon": "button.png",
"text": MWF.APPPOD.LP.modules.button,
"className": "Button"
},
"iframe": {
"icon": "iframe.png",
"text": MWF.APPPOD.LP.modules.iframe,
"className": "Iframe"
},
"html": {
"icon": "html.png",
"text": MWF.APPPOD.LP.modules.html,
"className": "Html"
},
"common": {
"icon": "common.png",
"text": MWF.APPPOD.LP.modules.common,
"className": "Common"
},
"tree": {
"icon": "tree.png",
"text": MWF.APPPOD.LP.modules.tree,
"className": "Tree"
}
}
{
"div": {
"icon": "div.png",
"text": MWF.APPPD.LP.modules.div,
"text": MWF.APPPOD.LP.modules.div,
"className": "Div"
},
"label": {
"icon": "label.png",
"text": MWF.APPPD.LP.modules.label,
"text": MWF.APPPOD.LP.modules.label,
"className": "Label"
},
"source": {
"icon": "source.png",
"text": MWF.APPPD.LP.modules.source,
"text": MWF.APPPOD.LP.modules.source,
"className": "Source"
},
"SubSource": {
"icon": "subSource.png",
"text": MWF.APPPD.LP.modules.subSource,
"text": MWF.APPPOD.LP.modules.subSource,
"className": "SubSource"
},
"sourceText": {
"icon": "sourceText.png",
"text": MWF.APPPD.LP.modules.sourceText,
"text": MWF.APPPOD.LP.modules.sourceText,
"className": "SourceText"
},
"table": {
"icon": "table.png",
"text": MWF.APPPD.LP.modules.table,
"text": MWF.APPPOD.LP.modules.table,
"className": "Table"
},
"tab": {
"icon": "tabs.png",
"text": MWF.APPPD.LP.modules.tab,
"text": MWF.APPPOD.LP.modules.tab,
"className": "Tab"
},
"image": {
"icon": "image.png",
"text": MWF.APPPD.LP.modules.image,
"text": MWF.APPPOD.LP.modules.image,
"className": "Image"
},
"button": {
"icon": "button.png",
"text": MWF.APPPD.LP.modules.button,
"text": MWF.APPPOD.LP.modules.button,
"className": "Button"
},
"iframe": {
"icon": "iframe.png",
"text": MWF.APPPD.LP.modules.iframe,
"text": MWF.APPPOD.LP.modules.iframe,
"className": "Iframe"
},
"html": {
"icon": "html.png",
"text": MWF.APPPD.LP.modules.html,
"text": MWF.APPPOD.LP.modules.html,
"className": "Html"
},
"common": {
"icon": "common.png",
"text": MWF.APPPD.LP.modules.common,
"text": MWF.APPPOD.LP.modules.common,
"className": "Common"
},
"tree": {
"icon": "tree.png",
"text": MWF.APPPD.LP.modules.tree,
"text": MWF.APPPOD.LP.modules.tree,
"className": "Tree"
},
"view": {
"icon": "view.png",
"text": MWF.APPPD.LP.modules.view,
"text": MWF.APPPOD.LP.modules.view,
"className": "View"
},
"stat": {
"icon": "stat.png",
"text": MWF.APPPD.LP.modules.stat,
"text": MWF.APPPOD.LP.modules.stat,
"className": "Stat"
},
"textfield": {
"icon": "textfield.png",
"text": MWF.APPPD.LP.modules.textfield,
"text": MWF.APPPOD.LP.modules.textfield,
"className": "Textfield"
},
// "personfield": {
......@@ -86,77 +86,77 @@
// },
"org": {
"icon": "personfield.png",
"text": MWF.APPPD.LP.modules.org,
"text": MWF.APPPOD.LP.modules.org,
"className": "Org"
},
"calendar": {
"icon": "calendar.png",
"text": MWF.APPPD.LP.modules.calendar,
"text": MWF.APPPOD.LP.modules.calendar,
"className": "Calendar"
},
"textarea": {
"icon": "textarea.png",
"text": MWF.APPPD.LP.modules.textarea,
"text": MWF.APPPOD.LP.modules.textarea,
"className": "Textarea"
},
"select": {
"icon": "select.png",
"text": MWF.APPPD.LP.modules.select,
"text": MWF.APPPOD.LP.modules.select,
"className": "Select"
},
"radio": {
"icon": "radio.png",
"text": MWF.APPPD.LP.modules.radio,
"text": MWF.APPPOD.LP.modules.radio,
"className": "Radio"
},
"checkbox": {
"icon": "checkbox.png",
"text": MWF.APPPD.LP.modules.checkbox,
"text": MWF.APPPOD.LP.modules.checkbox,
"className": "Checkbox"
},
"address": {
"icon": "address.png",
"text": MWF.APPPD.LP.modules.address,
"text": MWF.APPPOD.LP.modules.address,
"className": "Address"
},
"combox": {
"icon": "combox.png",
"text": MWF.APPPD.LP.modules.combox,
"text": MWF.APPPOD.LP.modules.combox,
"className": "Combox"
},
"widget": {
"icon": "subpage.png",
"text": MWF.APPPD.LP.modules.widget,
"text": MWF.APPPOD.LP.modules.widget,
"className": "Widget"
},
"widgetmodules": {
"icon": "subpage.png",
"text": MWF.APPPD.LP.modules.widgetmodules,
"text": MWF.APPPOD.LP.modules.widgetmodules,
"className": "Widgetmodules"
},
"statement": {
"icon": "statement.png",
"text": MWF.APPPD.LP.modules.statement,
"text": MWF.APPPOD.LP.modules.statement,
"className": "Statement"
},
"datagrid": {
"icon": "datagrid.png",
"text": MWF.APPPD.LP.modules.datagrid,
"text": MWF.APPPOD.LP.modules.datagrid,
"className": "Datagrid"
},
"datatable": {
"icon": "datagrid.png",
"text": MWF.APPPD.LP.modules.datatable,
"text": MWF.APPPOD.LP.modules.datatable,
"className": "Datatable"
},
"datatemplate": {
"icon": "datatemplate.png",
"text": MWF.APPPD.LP.modules.datatemplate,
"text": MWF.APPPOD.LP.modules.datatemplate,
"className": "Datatemplate"
},
"importer": {
"icon": "importer.png",
"text": MWF.APPPD.LP.modules.importer,
"text": MWF.APPPOD.LP.modules.importer,
"className": "Importer"
}
}
[
{
"name": "default",
"json": "tools.json",
"text": MWF.APPPOD.LP.modules.group_all,
},
{
"name": "form",
"json": "tools-form.json",
"text": MWF.APPPOD.LP.modules.group_form,
},
{
"name": "layout",
"json": "tools-layout.json",
"text": MWF.APPPOD.LP.modules.group_layout,
},
{
"name": "data",
"json": "tools-data.json",
"text": MWF.APPPOD.LP.modules.group_data,
},
{
"name": "function",
"json": "tools-function.json",
"text": MWF.APPPOD.LP.modules.group_function,
},
{
"name": "element",
"json": "tools-element.json",
"text": MWF.APPPOD.LP.modules.group_element,
"className": "Textfield"
}
]
......@@ -10,28 +10,28 @@ MWF.xApplication.portal.PageDesigner.Module.Div = MWF.PCDiv = new Class({
"icon": "move1.png",
"event": "mousedown",
"action": "move",
"title": MWF.APPPD.LP.formAction.move
"title": MWF.APPPOD.LP.formAction.move
},
{
"name": "copy",
"icon": "copy1.png",
"event": "mousedown",
"action": "copy",
"title": MWF.APPPD.LP.formAction.copy
"title": MWF.APPPOD.LP.formAction.copy
},
{
"name": "delete",
"icon": "delete1.png",
"event": "click",
"action": "delete",
"title": MWF.APPPD.LP.formAction["delete"]
"title": MWF.APPPOD.LP.formAction["delete"]
},
{
"name" : "makeWidget",
"icon": "makeWidget1.png",
"event": "click",
"action": "makeWidget",
"title": MWF.APPPD.LP.formAction["makeWidget"]
"title": MWF.APPPOD.LP.formAction["makeWidget"]
}
]
},
......@@ -59,7 +59,7 @@ MWF.xApplication.portal.PageDesigner.Module.Div = MWF.PCDiv = new Class({
obj.pcData.id="";
obj.pcData.isNewPage = true;
obj.pcData.json = obj.pcData.json || {};
obj.pcData.json.name = name; //MWF.APPPD.LP.formAction.defaultWidgetName;
obj.pcData.json.name = name; //MWF.APPPOD.LP.formAction.defaultWidgetName;
obj.pcData.json.application = this.page.designer.application.id;
obj.pcData.json.applicationName = this.page.designer.application.name;
......@@ -81,7 +81,7 @@ MWF.xApplication.portal.PageDesigner.Module.Div = MWF.PCDiv = new Class({
_getWidgetData: function( data ){
//var data = {
// json : {
// name : MWF.APPPD.LP.formAction.defaultWidgetName,
// name : MWF.APPPOD.LP.formAction.defaultWidgetName,
// application : this.page.designer.application.id
// },
// isNewPage : true
......@@ -249,7 +249,7 @@ MWF.xApplication.portal.PageDesigner.Module.Div = MWF.PCDiv = new Class({
debugger;
this.page.designer.actions.saveWidget(pcData, mobileData, fieldList, function(responseJSON){
this.page.designer.notice(MWF.APPPD.LP.notice["widget_save_success"], "ok", null, {x: "left", y:"bottom"});
this.page.designer.notice(MWF.APPPOD.LP.notice["widget_save_success"], "ok", null, {x: "left", y:"bottom"});
//if (!this.pcPage.json.name) this.pcPage.treeNode.setText("<"+this.json.type+"> "+this.json.id);
//this.pcPage.treeNode.setTitle(this.pcPage.json.id);
......
MWF.APPPOD.Module.Elbutton = MWF.PCElbutton = new Class({ Extends: MWF.FCElbutton });
MWF.APPPOD.Module.Elbutton.templateJsonPath = "../x_component_process_FormDesigner/Module/";
MWF.APPPOD.Module.Elautocomplete = MWF.PCElautocomplete = new Class({ Extends: MWF.FCElautocomplete });
MWF.APPPOD.Module.Elautocomplete.templateJsonPath = "../x_component_process_FormDesigner/Module/";
MWF.APPPOD.Module.Elcascader = MWF.PCElcascader = new Class({ Extends: MWF.FCElcascader });
MWF.APPPOD.Module.Elcascader.templateJsonPath = "../x_component_process_FormDesigner/Module/";
MWF.APPPOD.Module.Elcheckbox = MWF.PCElcheckbox = new Class({ Extends: MWF.FCElcheckbox });
MWF.APPPOD.Module.Elcheckbox.templateJsonPath = "../x_component_process_FormDesigner/Module/";
MWF.APPPOD.Module.Elcommon = MWF.PCElcommon = new Class({ Extends: MWF.FCElcommon });
MWF.APPPOD.Module.Elcommon.templateJsonPath = "../x_component_process_FormDesigner/Module/";
MWF.APPPOD.Module.Elicon = MWF.PCElicon = new Class({ Extends: MWF.FCElicon });
MWF.APPPOD.Module.Elicon.templateJsonPath = "../x_component_process_FormDesigner/Module/";
MWF.APPPOD.Module.Elinput = MWF.PCElinput = new Class({ Extends: MWF.FCElinput });
MWF.APPPOD.Module.Elinput.templateJsonPath = "../x_component_process_FormDesigner/Module/";
MWF.APPPOD.Module.Elnumber = MWF.PCElnumber = new Class({ Extends: MWF.FCElnumber });
MWF.APPPOD.Module.Elnumber.templateJsonPath = "../x_component_process_FormDesigner/Module/";
MWF.APPPOD.Module.Elradio = MWF.PCElradio = new Class({ Extends: MWF.FCElradio });
MWF.APPPOD.Module.Elradio.templateJsonPath = "../x_component_process_FormDesigner/Module/";
MWF.APPPOD.Module.Elselect = MWF.PCElselect = new Class({ Extends: MWF.FCElselect });
MWF.APPPOD.Module.Elselect.templateJsonPath = "../x_component_process_FormDesigner/Module/";
MWF.APPPOD.Module.Elslider = MWF.PCElslider = new Class({ Extends: MWF.FCElslider });
MWF.APPPOD.Module.Elslider.templateJsonPath = "../x_component_process_FormDesigner/Module/";
MWF.APPPOD.Module.Elswitch = MWF.PCElswitch = new Class({ Extends: MWF.FCElswitch });
MWF.APPPOD.Module.Elswitch.templateJsonPath = "../x_component_process_FormDesigner/Module/";
MWF.APPPOD.Module.Elcontainer = MWF.PCElcontainer = new Class({ Extends: MWF.FCElcontainer });
MWF.APPPOD.Module.Elcontainer.templateJsonPath = "../x_component_process_FormDesigner/Module/";
MWF.APPPOD.Module.Elcontainer$Main = MWF.PCElcontainer$Main = new Class({ Extends: MWF.FCElcontainer$Main });
MWF.APPPOD.Module.Elcontainer$Main.templateJsonPath = "../x_component_process_FormDesigner/Module/";
MWF.APPPOD.Module.Elcontainer$Aside = MWF.PCElcontainer$Aside = new Class({ Extends: MWF.FCElcontainer$Aside });
MWF.APPPOD.Module.Elcontainer$Aside.templateJsonPath = "../x_component_process_FormDesigner/Module/";
MWF.APPPOD.Module.Elcontainer$Footer = MWF.PCElcontainer$Footer = new Class({ Extends: MWF.FCElcontainer$Footer });
MWF.APPPOD.Module.Elcontainer$Footer.templateJsonPath = "../x_component_process_FormDesigner/Module/";
MWF.APPPOD.Module.Elcontainer$Header = MWF.PCElcontainer$Header = new Class({ Extends: MWF.FCElcontainer$Header });
MWF.APPPOD.Module.Elcontainer$Header.templateJsonPath = "../x_component_process_FormDesigner/Module/";
MWF.APPPOD.Module.Elcontainer$Container = MWF.PCElcontainer$Container = {};
MWF.PCElcontainer$Container.templateJsonPath = "../x_component_process_FormDesigner/Module/";
......@@ -34,4 +34,5 @@ MWF.xDesktop.requireApp("portal.PageDesigner", "Module.Statement", null, false);
MWF.xDesktop.requireApp("portal.PageDesigner", "Module.Datagrid", null, false);
MWF.xDesktop.requireApp("portal.PageDesigner", "Module.Datatable", null, false);
MWF.xDesktop.requireApp("portal.PageDesigner", "Module.Datatemplate", null, false);
MWF.xDesktop.requireApp("portal.PageDesigner", "Module.Importer", null, false);
\ No newline at end of file
MWF.xDesktop.requireApp("portal.PageDesigner", "Module.Importer", null, false);
MWF.xDesktop.requireApp("portal.PageDesigner", "Module.ElementUI", null, false);
......@@ -14,14 +14,14 @@ MWF.xApplication.portal.PageDesigner.Module.Page = MWF.PCPage = new Class({
"styles" : "injectActionTop",
"event" : "click",
"action" : "injectTop",
"title": MWF.APPPD.LP.formAction["insertTop"]
"title": MWF.APPPOD.LP.formAction["insertTop"]
},
{
"name" : "bottom",
"styles" : "injectActionBottom",
"event" : "click",
"action" : "injectBottom",
"title": MWF.APPPD.LP.formAction["insertBottom"]
"title": MWF.APPPOD.LP.formAction["insertBottom"]
}
]
},
......@@ -272,36 +272,38 @@ MWF.xApplication.portal.PageDesigner.Module.Page = MWF.PCPage = new Class({
return moduleNodes;
},
// parseModules: function(parent, dom){
// var tmpDom = null;
// var subDom = dom.getFirst();
// while (subDom){
// if (subDom.get("MWFtype")){
// var json = this.getDomjson(subDom);
// if (json) module = this.loadModule(json, subDom, parent);
// }
// if (!json) tmpDom = subDom;
// subDom = subDom.getNext();
//
// if (tmpDom){
// tmpDom.destroy();
// tmpDom = null;
// }
// }
// },
parseModules: function(parent, dom){
var tmpDom = null;
var moduleNodes = [];
var subDom = dom.getFirst();
while (subDom){
if (subDom.get("MWFtype")){
// var module = subDom.retrieve("module");
// alert(subDom.get("id")+": "+module);
// if (!module){
var json = this.getDomjson(subDom);
if (json) module = this.loadModule(json, subDom, parent);
// }
// if (module.moduleType=="container") this.parseModules(module, subDom);
// }else{
// this.parseModules(parent, subDom);
var json = this.getDomjson(subDom);
var moduleNode = subDom;
moduleNodes.push({"dom": moduleNode, "json": json});
}
// else if (subDom.getFirst()){
// subDom = subDom.getFirst();
// this.parseModules(parent, subDom);
// }else{
// subDom = subDom.getNext();
// }
if (!json) tmpDom = subDom;
subDom = subDom.getNext();
if (tmpDom){
tmpDom.destroy();
tmpDom = null;
}
}
moduleNodes.each(function(obj){
module = this.loadModule(obj.json, obj.dom, parent);
}.bind(this));
},
getDomjson: function(dom){
......@@ -371,10 +373,11 @@ MWF.xApplication.portal.PageDesigner.Module.Page = MWF.PCPage = new Class({
}.bind(this));
},
getTemplateData: function(className, callback, async){
debugger;
if (this.dataTemplate[className]){
if (callback) callback(this.dataTemplate[className]);
}else{
var templateUrl = "../x_component_portal_PageDesigner/Module/"+className+"/template.json";
var templateUrl = (MWF["PC"+className].templateJsonPath || "../x_component_portal_PageDesigner/Module/")+className+"/template.json";
MWF.getJSON(templateUrl, function(responseJSON, responseText){
this.dataTemplate[className] = responseJSON;
if (callback) callback(responseJSON);
......
......@@ -12,21 +12,21 @@ MWF.xApplication.portal.PageDesigner.Module.Subpage = MWF.PCSubpage = new Class(
"icon": "move1.png",
"event": "mousedown",
"action": "move",
"title": MWF.APPPD.LP.formAction.move
"title": MWF.APPPOD.LP.formAction.move
},
{
"name": "delete",
"icon": "delete1.png",
"event": "click",
"action": "delete",
"title": MWF.APPPD.LP.formAction["delete"]
"title": MWF.APPPOD.LP.formAction["delete"]
}
// {
// "name": "styleBrush",
// "icon": "styleBrush.png",
// "event": "click",
// "action": "styleBrush",
// "title": MWF.APPPD.LP.formAction["styleBrush"]
// "title": MWF.APPPOD.LP.formAction["styleBrush"]
// }
]
},
......@@ -164,7 +164,7 @@ MWF.xApplication.portal.PageDesigner.Module.Subpage = MWF.PCSubpage = new Class(
"delete": function(e){
var module = this;
this.page.designer.shortcut = false;
this.page.designer.confirm("warn", module.node, MWF.APPPD.LP.notice.deleteElementTitle, MWF.APPPD.LP.notice.deleteElement, 300, 120, function(){
this.page.designer.confirm("warn", module.node, MWF.APPPOD.LP.notice.deleteElementTitle, MWF.APPPOD.LP.notice.deleteElement, 300, 120, function(){
if (this.queryGetPageDataFun) module.page.removeEvent("queryGetPageData", this.queryGetPageDataFun);
if (this.postGetPageDataFun) module.page.removeEvent("postGetPageData", this.postGetPageDataFun);
......
......@@ -12,21 +12,21 @@ MWF.xApplication.portal.PageDesigner.Module.Widget = MWF.PCWidget = new Class({
"icon": "move1.png",
"event": "mousedown",
"action": "move",
"title": MWF.APPPD.LP.formAction.move
"title": MWF.APPPOD.LP.formAction.move
},
{
"name": "delete",
"icon": "delete1.png",
"event": "click",
"action": "delete",
"title": MWF.APPPD.LP.formAction["delete"]
"title": MWF.APPPOD.LP.formAction["delete"]
}
// {
// "name": "styleBrush",
// "icon": "styleBrush.png",
// "event": "click",
// "action": "styleBrush",
// "title": MWF.APPPD.LP.formAction["styleBrush"]
// "title": MWF.APPPOD.LP.formAction["styleBrush"]
// }
]
},
......@@ -164,7 +164,7 @@ MWF.xApplication.portal.PageDesigner.Module.Widget = MWF.PCWidget = new Class({
"delete": function(e){
var module = this;
this.page.designer.shortcut = false;
this.page.designer.confirm("warn", module.node, MWF.APPPD.LP.notice.deleteElementTitle, MWF.APPPD.LP.notice.deleteElement, 300, 120, function(){
this.page.designer.confirm("warn", module.node, MWF.APPPOD.LP.notice.deleteElementTitle, MWF.APPPOD.LP.notice.deleteElement, 300, 120, function(){
if (this.queryGetPageDataFun) module.page.removeEvent("queryGetPageData", this.queryGetPageDataFun);
if (this.postGetPageDataFun) module.page.removeEvent("postGetPageData", this.postGetPageDataFun);
......
MWF.xApplication.portal.PageDesigner = MWF.xApplication.portal.PageDesigner || {};
MWF.APPPD = MWF.xApplication.portal.PageDesigner;
MWF.APPPD.LP = {
MWF.APPPOD = MWF.xApplication.portal.PageDesigner;
MWF.APPPOD.LP = {
"title": "PageEditor",
"newPage": "Create Page",
"property": "Property",
......
MWF.xApplication.portal.PageDesigner = MWF.xApplication.portal.PageDesigner || {};
MWF.APPPD = MWF.xApplication.portal.PageDesigner;
MWF.APPPD.LP = {
"title": "页面编辑",
"newPage": "新建页面",
"property": "属性",
"tools": "工具",
"all": "全部",
"repetitionsId": "重复的元素标识符",
"notNullId": "元素标识符不能为空",
"button":{
"ok": "确定",
"cancel": "取消"
},
"notice": {
"save_success": "表单保存成功!",
"saveTemplate_success": "表单模板保存成功!",
"saveTemplate_inputName": "请输入模板标题",
"saveTemplate_inputCategory": "请确定模板分类",
"deleteElementTitle": "删除表单元素确认",
"deleteElement": "是否确定删除当前元素,及其子元素吗?",
"deleteRowTitle": "删除表格行确认",
"deleteRow": "删除当前行将删除该行所有单元格中的内容,是否确定删除当前选中的行?",
"deleteColTitle": "删除表格列确认",
"deleteCol": "删除当前行将删除该列所有单元格中的内容,是否确定删除当前选中的列?",
"deleteEventTitle": "删除事件确认",
"deleteEvent": "是否确定删除当前事件吗?",
MWF.APPPOD = MWF.xApplication.portal.PageDesigner;
MWF.APPPOD.LP = {
"title": "页面编辑",
"newPage": "新建页面",
"property": "属性",
"tools": "工具",
"all": "全部",
"deleteActionTitle": "删除操作确认",
"deleteAction": "是否确定删除当前操作吗?",
"repetitionsId": "重复的元素标识符",
"notNullId": "元素标识符不能为空",
"deleteButtonTitle": "删除操作确认",
"deleteButton": "确定要删除当前操作按钮吗?",
"button":{
"ok": "确定",
"cancel": "取消"
},
"notice": {
"save_success": "表单保存成功!",
"saveTemplate_success": "表单模板保存成功!",
"saveTemplate_inputName": "请输入模板标题",
"saveTemplate_inputCategory": "请确定模板分类",
"deleteElementTitle": "删除表单元素确认",
"deleteElement": "是否确定删除当前元素,及其子元素吗?",
"deleteRowTitle": "删除表格行确认",
"deleteRow": "删除当前行将删除该行所有单元格中的内容,是否确定删除当前选中的行?",
"deleteColTitle": "删除表格列确认",
"deleteCol": "删除当前行将删除该列所有单元格中的内容,是否确定删除当前选中的列?",
"deleteEventTitle": "删除事件确认",
"deleteEvent": "是否确定删除当前事件吗?",
"notUseModuleInMobile": "移动端不支持此组件",
"deleteActionTitle": "删除操作确认",
"deleteAction": "是否确定删除当前操作吗?",
"changeToSequenceTitle": "确认",
"changeToSequence": "此操作会删除已经添加的组件,确定要改成“序号”列吗?",
"deleteButtonTitle": "删除操作确认",
"deleteButton": "确定要删除当前操作按钮吗?",
//"confiltNoPix" : "请填写前缀或后缀",
"selectPage" : "请选择页面",
"selectWidget" : "请选择部件",
//"moduleConflitError" : "组件标识重复",
//"moduleConflitErrorOnPix" : "添加了前缀或后缀后组件标识仍然重复"
"widgetNameEmpty": "请填写部件名称",
"widgetNameConflict" : "部件名称冲突",
"widget_save_success" : "部件保存成功"
},
"formAction": {
"insertRow": "插入行",
"insertCol": "插入列",
"deleteRow": "删除行",
"deleteCol": "删除列",
"mergerCell": "合并单元格",
"splitCell": "拆分单元格",
"move": "移动",
"copy": "复制",
"delete": "删除",
"add": "添加",
"script": "脚本",
"makeWidget" : "设置为部件",
"defaultWidgetName" : "部件"
},
"notUseModuleInMobile": "移动端不支持此组件",
"actionbar": {
"readhide": "设置阅读时是否显示",
"edithide": "设置编辑时是否显示",
"hideCondition": "设置隐藏条件",
"title": "标题",
"img": "图标",
"action": "操作",
"condition": "显示条件",
"editScript": "操作脚本编辑",
"editCondition": "隐藏条件编辑(返回true隐藏操作)"
},
"isSave": "正在保存,请稍候...",
"validation": {
"validation": "校验",
"anytime": "任何时候",
"decision": "选择决策",
"decisionName": "<决策名>",
"value": "",
"length": "值长度",
"valueInput": "<值>",
"isnull": "为空",
"notnull": "不为空",
"gt": "大于",
"lt": "小于",
"equal": "等于",
"neq": "不等于",
"contain": "包含",
"notcontain": "不包含",
"prompt": "提示",
"add": "添加",
"modify": "修改",
"when": "",
"as": "",
"inputDecisionName": "请输入决策名称",
"inputValue": "请输入值",
"inputPrompt": "请输入提示内容",
"delete_title": "删除校验内容确认",
"delete_text": "您确定要删除此项校验码?"
},
"changeToSequenceTitle": "确认",
"changeToSequence": "此操作会删除已经添加的组件,确定要改成“序号”列吗?",
//"confiltNoPix" : "请填写前缀或后缀",
"selectPage" : "请选择页面",
"selectWidget" : "请选择部件",
//"moduleConflitError" : "组件标识重复",
//"moduleConflitErrorOnPix" : "添加了前缀或后缀后组件标识仍然重复"
"widgetNameEmpty": "请填写部件名称",
"widgetNameConflict" : "部件名称冲突",
"widget_save_success" : "部件保存成功"
},
"formAction": {
"insertRow": "插入行",
"insertCol": "插入列",
"deleteRow": "删除行",
"deleteCol": "删除列",
"mergerCell": "合并单元格",
"splitCell": "拆分单元格",
"move": "移动",
"copy": "复制",
"delete": "删除",
"add": "添加",
"script": "脚本",
"makeWidget" : "设置为部件",
"defaultWidgetName" : "部件"
},
"actionbar": {
"readhide": "设置阅读时是否显示",
"edithide": "设置编辑时是否显示",
"hideCondition": "设置隐藏条件",
"title": "标题",
"img": "图标",
"action": "操作",
"condition": "显示条件",
"editScript": "操作脚本编辑",
"editCondition": "隐藏条件编辑(返回true隐藏操作)"
},
"isSave": "正在保存,请稍候...",
"validation": {
"validation": "校验",
"anytime": "任何时候",
"decision": "选择决策",
"decisionName": "<决策名>",
"value": "",
"length": "值长度",
"valueInput": "<值>",
"isnull": "为空",
"notnull": "不为空",
"gt": "大于",
"lt": "小于",
"equal": "等于",
"neq": "不等于",
"contain": "包含",
"notcontain": "不包含",
"prompt": "提示",
"add": "添加",
"modify": "修改",
"when": "",
"as": "",
"inputDecisionName": "请输入决策名称",
"inputValue": "请输入值",
"inputPrompt": "请输入提示内容",
"delete_title": "删除校验内容确认",
"delete_text": "您确定要删除此项校验码?"
},
"selectIcon": "选择图标",
"selectImage": "选择图片",
"dutyInputTitle": "添加职务参数",
......@@ -265,7 +265,15 @@ MWF.APPPD.LP = {
"widget": "部件",
"widgetmodules": "部件元素",
"address": "地址",
"importer": "数据导入"
"importer": "数据导入",
"group_all": "所有组件",
"group_form": "表单组件",
"group_layout": "布局组件",
"group_data": "数据组件",
"group_filetext": "文件编辑组件",
"group_function": "功能组件",
"group_element": "Element组件",
},
"filedConfigurator": {
"sequence": "序号",
......
......@@ -52,8 +52,21 @@
"float": "right",
"cursor": "pointer"
},
"toolbarTitleCategoryActionNode": {
"width": "22px",
"height": "22px",
"margin-top": "-26px",
"margin-right": "22px",
"background": "url(../x_component_process_FormDesigner/$Main/default/category.png) no-repeat center center",
"float": "right",
"cursor": "pointer"
},
"toolbarGroupContentNode": {
"overflow": "hidden"
},
"toolbarContentNode": {
"background-color": "#DDD",
"background-color": "#FFFFFF",
"border-radius": "0px",
"margin": "2px",
"padding-right": "4px",
......
{
"htmledit": {
"icon": "htmleditor.png",
"text": MWF.xApplication.process.FormDesigner.LP.modules.htmledit,
"className": "Htmleditor"
},
"office": {
"icon": "office.png",
"text": MWF.xApplication.process.FormDesigner.LP.modules.office,
"className": "Office"
},
"iWebOffice": {
"icon": "iWebOffice.png",
"text": MWF.xApplication.process.FormDesigner.LP.modules.iWebOffice,
"className": "IWebOffice"
},
"yozoOffice": {
"icon": "yozoOffice.png",
"text": MWF.xApplication.process.FormDesigner.LP.modules.yozoOffice,
"className": "YozoOffice"
},
"onlyOffice": {
"icon": "onlyOffice.png",
"text": "onlyOffice",
"className": "OnlyOffice"
},
"wpsOffice": {
"icon": "wpsOffice.png",
"text": "wpsOffice",
"className": "WpsOffice"
}
}
{
"label": {
"icon": "label.png",
"text": MWF.xApplication.process.FormDesigner.LP.modules.label,
"className": "Label"
},
"textfield": {
"icon": "textfield.png",
"text": MWF.xApplication.process.FormDesigner.LP.modules.textfield,
"className": "Textfield"
},
"number": {
"icon": "number.png",
"text": MWF.xApplication.process.FormDesigner.LP.modules.number,
"className": "Number"
},
"org": {
"icon": "personfield.png",
"text": MWF.xApplication.process.FormDesigner.LP.modules.org,
"className": "Org"
},
"calendar": {
"icon": "calendar.png",
"text": MWF.xApplication.process.FormDesigner.LP.modules.calendar,
"className": "Calendar"
},
"textarea": {
"icon": "textarea.png",
"text": MWF.xApplication.process.FormDesigner.LP.modules.textarea,
"className": "Textarea"
},
"select": {
"icon": "select.png",
"text": MWF.xApplication.process.FormDesigner.LP.modules.select,
"className": "Select"
},
"radio": {
"icon": "radio.png",
"text": MWF.xApplication.process.FormDesigner.LP.modules.radio,
"className": "Radio"
},
"checkbox": {
"icon": "checkbox.png",
"text": MWF.xApplication.process.FormDesigner.LP.modules.checkbox,
"className": "Checkbox"
},
"combox": {
"icon": "combox.png",
"text": MWF.xApplication.process.FormDesigner.LP.modules.combox,
"className": "Combox"
},
"opinion": {
"icon": "opinion.png",
"text": MWF.xApplication.process.FormDesigner.LP.modules.opinion,
"className": "Opinion"
},
"button": {
"icon": "button.png",
"text": MWF.xApplication.process.FormDesigner.LP.modules.button,
"className": "Button"
},
"Address": {
"icon": "address.png",
"text": MWF.xApplication.process.FormDesigner.LP.modules.Address,
"className": "Address"
},
"attachment": {
"icon": "attachment.png",
"text": MWF.xApplication.process.FormDesigner.LP.modules.attachment,
"className": "Attachment"
},
"datatable": {
"icon": "datagrid.png",
"text": MWF.xApplication.process.FormDesigner.LP.modules.datatable,
"className": "Datatable"
},
"datatemplate": {
"icon": "datatemplate.png",
"text": MWF.xApplication.process.FormDesigner.LP.modules.datatemplate,
"className": "Datatemplate"
},
"documenteditor": {
"icon": "documenteditor.png",
"text": MWF.xApplication.process.FormDesigner.LP.modules.documenteditor,
"className": "Documenteditor"
},
"htmledit": {
"icon": "htmleditor.png",
"text": MWF.xApplication.process.FormDesigner.LP.modules.htmledit,
"className": "Htmleditor"
}
}
{
"ViewSelector": {
"icon": "viewSelector.png",
"text": MWF.xApplication.process.FormDesigner.LP.modules.ViewSelector,
"className": "ViewSelector"
},
"view": {
"icon": "view.png",
"text": MWF.xApplication.process.FormDesigner.LP.modules.view,
"className": "View"
},
"stat": {
"icon": "stat.png",
"text": MWF.xApplication.process.FormDesigner.LP.modules.stat,
"className": "Stat"
},
"documenteditor": {
"icon": "documenteditor.png",
"text": MWF.xApplication.process.FormDesigner.LP.modules.documenteditor,
"className": "Documenteditor"
},
"statementSelector": {
"icon": "statementSelector.png",
"text": MWF.xApplication.process.FormDesigner.LP.modules.statementSelector,
"className": "StatementSelector"
},
"statement": {
"icon": "statement.png",
"text": MWF.xApplication.process.FormDesigner.LP.modules.statement,
"className": "Statement"
},
"importer": {
"icon": "importer.png",
"text": MWF.xApplication.process.FormDesigner.LP.modules.importer,
"className": "Importer"
}
}
{
"label": {
"icon": "label.png",
"text": MWF.xApplication.process.FormDesigner.LP.modules.label,
"className": "Label"
},
"button": {
"icon": "button.png",
"text": MWF.xApplication.process.FormDesigner.LP.modules.button,
"className": "Button"
},
"image": {
"icon": "image.png",
"text": MWF.xApplication.process.FormDesigner.LP.modules.image,
"className": "Image"
},
"imageclipper": {
"icon": "imageclipper.png",
"text": MWF.xApplication.process.FormDesigner.LP.modules.imageclipper,
"className": "ImageClipper"
},
"div": {
"icon": "div.png",
"text": MWF.xApplication.process.FormDesigner.LP.modules.div,
"className": "Div"
},
"table": {
"icon": "table.png",
"text": MWF.xApplication.process.FormDesigner.LP.modules.table,
"className": "Table"
},
"datatemplate": {
"icon": "datatemplate.png",
"text": MWF.xApplication.process.FormDesigner.LP.modules.datatemplate,
"className": "Datatemplate"
},
"subform": {
"icon": "subform.png",
"text": MWF.xApplication.process.FormDesigner.LP.modules.subform,
"className": "Subform"
},
"html": {
"icon": "html.png",
"text": MWF.xApplication.process.FormDesigner.LP.modules.html,
"className": "Html"
},
"common": {
"icon": "common.png",
"text": MWF.xApplication.process.FormDesigner.LP.modules.common,
"className": "Common"
},
"tab": {
"icon": "tabs.png",
"text": MWF.xApplication.process.FormDesigner.LP.modules.tab,
"className": "Tab"
},
"tree": {
"icon": "tree.png",
"text": MWF.xApplication.process.FormDesigner.LP.modules.tree,
"className": "Tree"
},
"iframe": {
"icon": "iframe.png",
"text": MWF.xApplication.process.FormDesigner.LP.modules.iframe,
"className": "Iframe"
}
}
{
"opinion": {
"icon": "opinion.png",
"text": MWF.xApplication.process.FormDesigner.LP.modules.opinion,
"className": "Opinion"
},
"Actionbar": {
"icon": "actionbar.png",
"text": MWF.xApplication.process.FormDesigner.LP.modules.Actionbar,
"className": "Actionbar"
},
"Sidebar": {
"icon": "sidebar.png",
"text": MWF.xApplication.process.FormDesigner.LP.modules.Sidebar,
"className": "Sidebar"
},
"attachment": {
"icon": "attachment.png",
"text": MWF.xApplication.process.FormDesigner.LP.modules.attachment,
"className": "Attachment"
},
"subform": {
"icon": "subform.png",
"text": MWF.xApplication.process.FormDesigner.LP.modules.subform,
"className": "Subform"
},
"log": {
"icon": "log.png",
"text": MWF.xApplication.process.FormDesigner.LP.modules.log,
"className": "Log"
},
"readLog": {
"icon": "log.png",
"text": MWF.xApplication.process.FormDesigner.LP.modules.readLog,
"className": "ReadLog"
},
"monitor": {
"icon": "monitor.png",
"text": MWF.xApplication.process.FormDesigner.LP.modules.monitor,
"className": "Monitor"
},
"documenteditor": {
"icon": "documenteditor.png",
"text": MWF.xApplication.process.FormDesigner.LP.modules.documenteditor,
"className": "Documenteditor"
}
}
......@@ -162,6 +162,11 @@
"text": MWF.xApplication.process.FormDesigner.LP.modules.log,
"className": "Log"
},
"readLog": {
"icon": "log.png",
"text": MWF.xApplication.process.FormDesigner.LP.modules.readLog,
"className": "ReadLog"
},
"monitor": {
"icon": "monitor.png",
"text": MWF.xApplication.process.FormDesigner.LP.modules.monitor,
......@@ -187,6 +192,26 @@
"text": MWF.xApplication.process.FormDesigner.LP.modules.office,
"className": "Office"
},
"iWebOffice": {
"icon": "iWebOffice.png",
"text": MWF.xApplication.process.FormDesigner.LP.modules.iWebOffice,
"className": "IWebOffice"
},
"yozoOffice": {
"icon": "yozoOffice.png",
"text": MWF.xApplication.process.FormDesigner.LP.modules.yozoOffice,
"className": "YozoOffice"
},
"onlyOffice": {
"icon": "onlyOffice.png",
"text": "onlyOffice",
"className": "OnlyOffice"
},
"wpsOffice": {
"icon": "wpsOffice.png",
"text": "wpsOffice",
"className": "WpsOffice"
},
"statementSelector": {
"icon": "statementSelector.png",
"text": MWF.xApplication.process.FormDesigner.LP.modules.statementSelector,
......
......@@ -2,7 +2,32 @@
{
"name": "default",
"json": "tools.json",
"text": MWF.xApplication.process.FormDesigner.LP.modules.group_system,
"text": MWF.xApplication.process.FormDesigner.LP.modules.group_all,
},
{
"name": "form",
"json": "tools-form.json",
"text": MWF.xApplication.process.FormDesigner.LP.modules.group_form,
},
{
"name": "layout",
"json": "tools-layout.json",
"text": MWF.xApplication.process.FormDesigner.LP.modules.group_layout,
},
{
"name": "process",
"json": "tools-process.json",
"text": MWF.xApplication.process.FormDesigner.LP.modules.group_process,
},
{
"name": "function",
"json": "tools-function.json",
"text": MWF.xApplication.process.FormDesigner.LP.modules.group_function,
},
{
"name": "filetext",
"json": "tools-filetext.json",
"text": MWF.xApplication.process.FormDesigner.LP.modules.group_filetext,
},
{
"name": "element",
......
......@@ -10,7 +10,7 @@
"text": MWF.xApplication.process.FormDesigner.LP.modules.group_form,
},
{
"name": "form",
"name": "layout",
"json": "tools-layout.json",
"text": MWF.xApplication.process.FormDesigner.LP.modules.group_layout,
},
......
......@@ -102,7 +102,7 @@ MWF.xApplication.process.FormDesigner.Module.Elcontainer$Aside = MWF.FCElcontain
Extends: MWF.FCElcontainer$Main,
Implements: [Options, Events],
_initModuleType: function(){
this.className = "Elcontainer$Aside"
this.className = "Elcontainer$Aside";
this.moduleType = "container";
this.moduleName = "elcontainer$Aside";
this.cssName = "css_aside";
......@@ -112,7 +112,7 @@ MWF.xApplication.process.FormDesigner.Module.Elcontainer$Footer = MWF.FCElcontai
Extends: MWF.FCElcontainer$Main,
Implements: [Options, Events],
_initModuleType: function(){
this.className = "Elcontainer$Footer"
this.className = "Elcontainer$Footer";
this.moduleType = "container";
this.moduleName = "elcontainer$Footer";
this.cssName = "css_footer";
......@@ -122,7 +122,7 @@ MWF.xApplication.process.FormDesigner.Module.Elcontainer$Header = MWF.FCElcontai
Extends: MWF.FCElcontainer$Main,
Implements: [Options, Events],
_initModuleType: function(){
this.className = "Elcontainer$Header"
this.className = "Elcontainer$Header";
this.moduleType = "container";
this.moduleName = "elcontainer$Header";
this.cssName = "css_header";
......
......@@ -9,7 +9,7 @@
"controlsPosition" : "default",
"precision": 0,
"min" : 0,
"max" : 0,
"max" : 100,
"step" : 1,
"vueData": {},
"vueMethods": {},
......
......@@ -416,24 +416,10 @@ MWF.xApplication.process.FormDesigner.Module.Form = MWF.FCForm = new Class({
var subDom = dom.getFirst();
while (subDom){
if (subDom.get("MWFtype")){
// var module = subDom.retrieve("module");
// alert(subDom.get("id")+": "+module);
// if (!module){
var json = this.getDomjson(subDom);
var moduleNode = subDom;
var json = this.getDomjson(subDom);
var moduleNode = subDom;
moduleNodes.push({"dom": moduleNode, "json": json});
//module = this.loadModule(json, subDom, parent);
// }
// if (module.moduleType=="container") this.parseModules(module, subDom);
// }else{
// this.parseModules(parent, subDom);
}
// else if (subDom.getFirst()){
// subDom = subDom.getFirst();
// this.parseModules(parent, subDom);
// }else{
// subDom = subDom.getNext();
// }
subDom = subDom.getNext();
}
......
......@@ -121,6 +121,13 @@ MWF.xApplication.process.FormDesigner.Module.Htmleditor = MWF.FCHtmleditor = new
];
// }
}
if (!editorConfig.removeButtons){
editorConfig.removeButtons = "EasyImageUpload,ExportPdf";
}else{
editorConfig.removeButtons += ",EasyImageUpload,ExportPdf";
}
if (!editorConfig.removePlugins || !editorConfig.removePlugins.length) editorConfig.removePlugins = [];
editorConfig.removePlugins = editorConfig.removePlugins.concat(['cloudservices','easyimage', 'exportpdf']);
// CKEDITOR.basePath = COMMON.contentPath+"/res/framework/htmleditor/ckeditor/";
......
......@@ -45,8 +45,10 @@ MWF.xApplication.process.ProcessManager.Explorer = new Class({
this.selectMarkItems = [];
},
reload: function(){
this.node.empty();
this.load();
if (this.app && this.app.content){
this.node.empty();
this.load();
}
},
load: function(){
this.loadToolbar();
......@@ -73,7 +75,7 @@ MWF.xApplication.process.ProcessManager.Explorer = new Class({
"styles": this.css.iconElementNode
}).inject(this.toolbarNode);
if (this.app.options.application){
if (this.app.options && this.app.options.application){
if (this.app.options.application.icon){
this.iconElementNode.setStyle("background-image", "url(data:image/png;base64,"+this.app.options.application.icon+")");
}else{
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册