提交 f3be910a 编写于 作者: 蔡祥熠

Merge branch 'fix/Process.blue_mobile_flat' into 'develop'

Merge of fix/[流程管理]手机蓝白样式 to develop

See merge request o2oa/o2oa!1074
...@@ -3,7 +3,6 @@ ...@@ -3,7 +3,6 @@
"form": { "form": {
"styles":{ "styles":{
"background-color": "#ffffff", "background-color": "#ffffff",
"zoom" : "100%",
"font-size" : "16px" "font-size" : "16px"
} }
}, },
...@@ -422,17 +421,19 @@ ...@@ -422,17 +421,19 @@
}, },
"personfield": { "personfield": {
"styles": { "styles": {
"border": "1px solid #979797", "border": "0px",
"border-radius": "0px", "border-radius": "0px",
"color": "#000", "color": "#000",
"min-height": "40px", "min-height": "30px",
"line-height": "normal" "padding" : "0px",
"line-height": "30px"
}, },
"inputStyles": { "inputStyles": {
"border-radius": "0px", "border-radius": "0px",
"border-bottom": "0px", "border-bottom": "0px",
"border": "0px solid #979797", "border": "0px solid #979797",
"min-height": "40px", "min-height": "30px",
"margin" : "5px 0px",
"height" : "auto", "height" : "auto",
"color": "#000", "color": "#000",
"font-size": "15px", "font-size": "15px",
...@@ -442,17 +443,19 @@ ...@@ -442,17 +443,19 @@
}, },
"orgfield": { "orgfield": {
"styles": { "styles": {
"border": "1px solid #979797", "border": "0px",
"border-radius": "0px", "border-radius": "0px",
"color": "#000", "color": "#000",
"min-height": "40px", "min-height": "30px",
"line-height": "normal" "padding" : "0px",
"line-height": "30px"
}, },
"inputStyles": { "inputStyles": {
"border-radius": "0px", "border-radius": "0px",
"border-bottom": "0px", "border-bottom": "0px",
"border": "0px solid #979797", "border": "0px solid #979797",
"min-height": "40px", "min-height": "30px",
"margin" : "5px 0px",
"height" : "auto", "height" : "auto",
"color": "#000", "color": "#000",
"font-size": "15px", "font-size": "15px",
...@@ -462,7 +465,7 @@ ...@@ -462,7 +465,7 @@
}, },
"org": { "org": {
"styles": { "styles": {
"border": "1px solid #979797", "border": "0px",
"border-radius": "0px", "border-radius": "0px",
"color": "#000", "color": "#000",
"min-height": "30px", "min-height": "30px",
......
...@@ -468,7 +468,8 @@ MWF.xApplication.process.Xform.Orgfield = MWF.APPOrgfield = new Class({ ...@@ -468,7 +468,8 @@ MWF.xApplication.process.Xform.Orgfield = MWF.APPOrgfield = new Class({
}, },
loadOrgWidget: function(value, node){ loadOrgWidget: function(value, node){
var options = {"style": "xform", "canRemove":false , "onRemove" : this.removeItem}; var disableInfor = layout.mobile ? true : false;
var options = {"style": "xform", "canRemove":false , "onRemove" : this.removeItem,"disableInfor" : disableInfor};
value.each(function(data){ value.each(function(data){
if( data.distinguishedName ){ if( data.distinguishedName ){
var flag = data.distinguishedName.substr(data.distinguishedName.length-2, 2); var flag = data.distinguishedName.substr(data.distinguishedName.length-2, 2);
......
...@@ -869,6 +869,7 @@ MWF.xApplication.process.Xform.Personfield = MWF.APPPersonfield = new Class({ ...@@ -869,6 +869,7 @@ MWF.xApplication.process.Xform.Personfield = MWF.APPPersonfield = new Class({
return (this.json.selectType==="unit") ? "getUnit" : "getIdentity"; return (this.json.selectType==="unit") ? "getUnit" : "getIdentity";
}, },
loadOrgWidget: function(value, node){ loadOrgWidget: function(value, node){
var disableInfor = layout.mobile ? true : false;
var height = node.getStyle("height").toInt(); var height = node.getStyle("height").toInt();
if (node.getStyle("overflow")==="visible" && !height) node.setStyle("overflow", "hidden"); if (node.getStyle("overflow")==="visible" && !height) node.setStyle("overflow", "hidden");
if (value && value.length){ if (value && value.length){
...@@ -877,19 +878,19 @@ MWF.xApplication.process.Xform.Personfield = MWF.APPPersonfield = new Class({ ...@@ -877,19 +878,19 @@ MWF.xApplication.process.Xform.Personfield = MWF.APPPersonfield = new Class({
var copyData = Object.clone(data); var copyData = Object.clone(data);
switch (flag.toLowerCase()){ switch (flag.toLowerCase()){
case "@i": case "@i":
new MWF.widget.O2Identity(copyData, node, {"style": "xform"}); new MWF.widget.O2Identity(copyData, node, {"style": "xform","lazy":true,"disableInfor" : disableInfor});
break; break;
case "@p": case "@p":
new MWF.widget.O2Person(copyData, node, {"style": "xform"}); new MWF.widget.O2Person(copyData, node, {"style": "xform","lazy":true,"disableInfor" : disableInfor});
break; break;
case "@u": case "@u":
new MWF.widget.O2Unit(copyData, node, {"style": "xform"}); new MWF.widget.O2Unit(copyData, node, {"style": "xform","lazy":true,"disableInfor" : disableInfor});
break; break;
case "@g": case "@g":
new MWF.widget.O2Group(copyData, node, {"style": "xform"}); new MWF.widget.O2Group(copyData, node, {"style": "xform","lazy":true,"disableInfor" : disableInfor});
break; break;
default: default:
new MWF.widget.O2Other(copyData, node, {"style": "xform"}); new MWF.widget.O2Other(copyData, node, {"style": "xform","lazy":true,"disableInfor" : disableInfor});
} }
}.bind(this)); }.bind(this));
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册