Przeglądaj źródła

移动端不显示人员组件的弹出信息

unknown 5 lat temu
rodzic
commit
1c9a65f3a8

+ 2 - 1
o2web/source/x_component_process_Xform/Orgfield.js

@@ -468,7 +468,8 @@ MWF.xApplication.process.Xform.Orgfield = MWF.APPOrgfield =  new Class({
 
 	},
 	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){
 			if( data.distinguishedName ){
 				var flag = data.distinguishedName.substr(data.distinguishedName.length-2, 2);

+ 6 - 5
o2web/source/x_component_process_Xform/Personfield.js

@@ -869,6 +869,7 @@ MWF.xApplication.process.Xform.Personfield = MWF.APPPersonfield =  new Class({
         return (this.json.selectType==="unit") ? "getUnit" : "getIdentity";
     },
     loadOrgWidget: function(value, node){
+        var disableInfor = layout.mobile ? true : false;
         var height = node.getStyle("height").toInt();
         if (node.getStyle("overflow")==="visible" && !height) node.setStyle("overflow", "hidden");
         if (value && value.length){
@@ -877,19 +878,19 @@ MWF.xApplication.process.Xform.Personfield = MWF.APPPersonfield =  new Class({
                 var copyData = Object.clone(data);
                 switch (flag.toLowerCase()){
                     case "@i":
-                        new MWF.widget.O2Identity(copyData, node, {"style": "xform"});
+                        new MWF.widget.O2Identity(copyData, node, {"style": "xform","lazy":true,"disableInfor" : disableInfor});
                         break;
                     case "@p":
-                        new MWF.widget.O2Person(copyData, node, {"style": "xform"});
+                        new MWF.widget.O2Person(copyData, node, {"style": "xform","lazy":true,"disableInfor" : disableInfor});
                         break;
                     case "@u":
-                        new MWF.widget.O2Unit(copyData, node, {"style": "xform"});
+                        new MWF.widget.O2Unit(copyData, node, {"style": "xform","lazy":true,"disableInfor" : disableInfor});
                         break;
                     case "@g":
-                        new MWF.widget.O2Group(copyData, node, {"style": "xform"});
+                        new MWF.widget.O2Group(copyData, node, {"style": "xform","lazy":true,"disableInfor" : disableInfor});
                         break;
                     default:
-                        new MWF.widget.O2Other(copyData, node, {"style": "xform"});
+                        new MWF.widget.O2Other(copyData, node, {"style": "xform","lazy":true,"disableInfor" : disableInfor});
                 }
             }.bind(this));
         }