Просмотр исходного кода

表单选人组件增加是否显示卡片的选项

unknown 5 лет назад
Родитель
Сommit
c3b7c83f12

+ 7 - 0
o2web/source/x_component_cms_FormDesigner/Module/Authorfield/authorfield.html

@@ -27,6 +27,13 @@
                     <input type="radio" name="isReadonly" value="false" text{(!$.isReadonly)?'checked':''}/>否
                 </td>
             </tr>
+            <tr>
+                <td class="editTableTitle">显示卡片:</td>
+                <td class="editTableValue">
+                    <input type="radio" name="showCard" value="yes" text{($.showCard!='no')?'checked':''}/>是
+                    <input type="radio" name="showCard" value="no" text{($.showCard=='no')?'checked':''}/>否
+                </td>
+            </tr>
             <tr>
                 <td class="editTableTitle">值类型:</td>
                 <td class="editTableValue">

+ 7 - 0
o2web/source/x_component_cms_FormDesigner/Module/Personfield/personfield.html

@@ -27,6 +27,13 @@
                     <input type="radio" name="isReadonly" value="false" text{(!$.isReadonly)?'checked':''}/>否
                 </td>
             </tr>
+            <tr>
+                <td class="editTableTitle">显示卡片:</td>
+                <td class="editTableValue">
+                    <input type="radio" name="showCard" value="yes" text{($.showCard!='no')?'checked':''}/>是
+                    <input type="radio" name="showCard" value="no" text{($.showCard=='no')?'checked':''}/>否
+                </td>
+            </tr>
             <tr>
                 <td class="editTableTitle">允许输入:</td>
                 <td class="editTableValue">

+ 7 - 0
o2web/source/x_component_cms_FormDesigner/Module/Readerfield/readerfield.html

@@ -27,6 +27,13 @@
                     <input type="radio" name="isReadonly" value="false" text{(!$.isReadonly)?'checked':''}/>否
                 </td>
             </tr>
+            <tr>
+                <td class="editTableTitle">显示卡片:</td>
+                <td class="editTableValue">
+                    <input type="radio" name="showCard" value="yes" text{($.showCard!='no')?'checked':''}/>是
+                    <input type="radio" name="showCard" value="no" text{($.showCard=='no')?'checked':''}/>否
+                </td>
+            </tr>
             <tr>
                 <td class="editTableTitle">值类型:</td>
                 <td class="editTableValue">

+ 3 - 1
o2web/source/x_component_cms_Xform/Readerfield.js

@@ -466,7 +466,9 @@ MWF.xApplication.cms.Xform.Readerfield = MWF.CMSReaderfield =  new Class({
         }
 	},
 	loadOrgWidget: function(value, node){
-		var options = {"style": "xform", "canRemove":!this.readonly , "onRemove" : this.removeItem};
+        var disableInfor = layout.mobile ? true : false;
+        if( this.json.showCard === "no" )disableInfor = true;
+		var options = {"style": "xform", "canRemove":!this.readonly , "onRemove" : this.removeItem, "disableInfor" : disableInfor};
 		value.each(function(data){
 			if( data.distinguishedName ){
 				var flag = data.distinguishedName.substr(data.distinguishedName.length-1, 1);

+ 7 - 0
o2web/source/x_component_portal_PageDesigner/Module/Org/org.html

@@ -27,6 +27,13 @@
                     <input type="radio" name="isReadonly" value="false" text{(!$.isReadonly)?'checked':''}/>否
                 </td>
             </tr>
+            <tr>
+                <td class="editTableTitle">显示卡片:</td>
+                <td class="editTableValue">
+                    <input type="radio" name="showCard" value="yes" text{($.showCard!='no')?'checked':''}/>是
+                    <input type="radio" name="showCard" value="no" text{($.showCard=='no')?'checked':''}/>否
+                </td>
+            </tr>
             <tr>
                 <td class="editTableTitle">允许输入:</td>
                 <td class="editTableValue">

+ 7 - 0
o2web/source/x_component_process_FormDesigner/Module/Org/org.html

@@ -27,6 +27,13 @@
                     <input type="radio" name="isReadonly" value="false" text{(!$.isReadonly)?'checked':''}/>否
                 </td>
             </tr>
+            <tr>
+                <td class="editTableTitle">显示卡片:</td>
+                <td class="editTableValue">
+                    <input type="radio" name="showCard" value="yes" text{($.showCard!='no')?'checked':''}/>是
+                    <input type="radio" name="showCard" value="no" text{($.showCard=='no')?'checked':''}/>否
+                </td>
+            </tr>
             <tr>
                 <td class="editTableTitle">允许输入:</td>
                 <td class="editTableValue">

+ 7 - 0
o2web/source/x_component_process_FormDesigner/Module/Orgfield/orgfield.html

@@ -27,6 +27,13 @@
                     <input type="radio" name="isReadonly" value="false" text{(!$.isReadonly)?'checked':''}/>否
                 </td>
             </tr>
+            <tr>
+                <td class="editTableTitle">显示卡片:</td>
+                <td class="editTableValue">
+                    <input type="radio" name="showCard" value="yes" text{($.showCard!='no')?'checked':''}/>是
+                    <input type="radio" name="showCard" value="no" text{($.showCard=='no')?'checked':''}/>否
+                </td>
+            </tr>
             <tr>
                 <td class="editTableTitle">允许输入:</td>
                 <td class="editTableValue">

+ 7 - 0
o2web/source/x_component_process_FormDesigner/Module/Personfield/personfield.html

@@ -27,6 +27,13 @@
                     <input type="radio" name="isReadonly" value="false" text{(!$.isReadonly)?'checked':''}/>否
                 </td>
             </tr>
+            <tr>
+                <td class="editTableTitle">显示卡片:</td>
+                <td class="editTableValue">
+                    <input type="radio" name="showCard" value="yes" text{($.showCard!='no')?'checked':''}/>是
+                    <input type="radio" name="showCard" value="no" text{($.showCard=='no')?'checked':''}/>否
+                </td>
+            </tr>
             <tr>
                 <td class="editTableTitle">允许输入:</td>
                 <td class="editTableValue">

+ 1 - 0
o2web/source/x_component_process_Xform/Org.js

@@ -951,6 +951,7 @@ MWF.xApplication.process.Xform.Org = MWF.APPOrg =  new Class({
     },
     loadOrgWidget: function(value, node){
         var disableInfor = layout.mobile ? true : false;
+        if( this.json.showCard === "no" )disableInfor = true;
         var height = node.getStyle("height").toInt();
         if (node.getStyle("overflow")==="visible" && !height) node.setStyle("overflow", "hidden");
         if (value && value.length){

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

@@ -470,6 +470,7 @@ MWF.xApplication.process.Xform.Orgfield = MWF.APPOrgfield =  new Class({
 	},
 	loadOrgWidget: function(value, node){
         var disableInfor = layout.mobile ? true : false;
+        if( this.json.showCard === "no" )disableInfor = true;
 		var options = {"style": "xform", "canRemove":false , "onRemove" : this.removeItem,"disableInfor" : disableInfor};
 		value.each(function(data){
 			if( data.distinguishedName ){

+ 1 - 0
o2web/source/x_component_process_Xform/Personfield.js

@@ -882,6 +882,7 @@ MWF.xApplication.process.Xform.Personfield = MWF.APPPersonfield =  new Class({
     },
     loadOrgWidget: function(value, node){
         var disableInfor = layout.mobile ? true : false;
+        if( this.json.showCard === "no" )disableInfor = true;
         var height = node.getStyle("height").toInt();
         if (node.getStyle("overflow")==="visible" && !height) node.setStyle("overflow", "hidden");
         if (value && value.length){