Sfoglia il codice sorgente

修复没有组件只读状态下MWFType可能错误的问题

unknown 5 anni fa
parent
commit
cfce25e94f

+ 4 - 0
o2web/source/x_component_cms_Xform/Readerfield.js

@@ -75,6 +75,10 @@ MWF.xApplication.cms.Xform.Readerfield = MWF.CMSReaderfield =  new Class({
 		this.node.empty();
 		this.node.setStyle("overflow" , "hidden");
         var node = new Element("div").inject(this.node);
+        this.node.set({
+            "nodeId": this.json.id,
+            "MWFType": this.json.type
+        });
 	},
     _searchConfirmPerson: function(item){
         var inforNode = item.inforNode || new Element("div");

+ 4 - 0
o2web/source/x_component_process_Xform/$Input.js

@@ -68,6 +68,10 @@ MWF.xApplication.process.Xform.$Input = MWF.APP$Input =  new Class({
     },
     _loadNodeRead: function(){
         this.node.empty();
+        this.node.set({
+            "nodeId": this.json.id,
+            "MWFType": this.json.type
+        });
     },
     loadDescription: function(){
         if (this.readonly || this.json.isReadonly)return;

+ 4 - 0
o2web/source/x_component_process_Xform/Address.js

@@ -23,6 +23,10 @@ MWF.xApplication.process.Xform.Address = MWF.APPAddress =  new Class({
     },
     _loadNodeRead: function(){
         this.node.empty();
+        this.node.set({
+            "nodeId": this.json.id,
+            "MWFType": this.json.type
+        });
         //new Element("select").inject(this.node);
     },
     _loadNodeEdit: function(){

+ 4 - 0
o2web/source/x_component_process_Xform/Checkbox.js

@@ -14,6 +14,10 @@ MWF.xApplication.process.Xform.Checkbox = MWF.APPCheckbox =  new Class({
     },
     _loadNodeRead: function(){
         this.node.empty();
+        this.node.set({
+            "nodeId": this.json.id,
+            "MWFType": this.json.type
+        });
         var radioValues = this.getOptions();
         var value = this.getValue();
         if (value){

+ 4 - 0
o2web/source/x_component_process_Xform/Combox.js

@@ -23,6 +23,10 @@ MWF.xApplication.process.Xform.Combox = MWF.APPCombox =  new Class({
     },
     _loadNodeRead: function(){
         this.node.empty();
+        this.node.set({
+            "nodeId": this.json.id,
+            "MWFType": this.json.type
+        });
         //new Element("select").inject(this.node);
     },
     _loadNodeEdit: function(){

+ 4 - 0
o2web/source/x_component_process_Xform/Opinion.js

@@ -22,6 +22,10 @@ MWF.xApplication.process.Xform.Opinion = MWF.APPOpinion =  new Class({
     },
     _loadNodeRead: function(){
         this.node.empty();
+        this.node.set({
+            "nodeId": this.json.id,
+            "MWFType": this.json.type
+        });
         this.node.setStyle("display", "none");
     },
     validationConfigItem: function(routeName, data){

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

@@ -518,6 +518,10 @@ MWF.xApplication.process.Xform.Org = MWF.APPOrg =  new Class({
     _loadNodeRead: function(){
         this.node.empty();
         var node = new Element("div").inject(this.node);
+        this.node.set({
+            "nodeId": this.json.id,
+            "MWFType": this.json.type
+        });
     },
     _searchConfirmPerson: function(item){
         var inforNode = item.inforNode || new Element("div");

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

@@ -77,6 +77,10 @@ MWF.xApplication.process.Xform.Orgfield = MWF.APPOrgfield =  new Class({
 	_loadNodeRead: function(){
 		this.node.empty();
 		this.node.setStyle("overflow" , "hidden");
+        this.node.set({
+            "nodeId": this.json.id,
+            "MWFType": this.json.type
+        });
         var node = new Element("div").inject(this.node);
 	},
     _searchConfirmPerson: function(item){

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

@@ -417,6 +417,10 @@ MWF.xApplication.process.Xform.Personfield = MWF.APPPersonfield =  new Class({
     },
     _loadNodeRead: function(){
         this.node.empty();
+        this.node.set({
+            "nodeId": this.json.id,
+            "MWFType": this.json.type
+        });
         var node = new Element("div").inject(this.node);
     },
     _searchConfirmPerson: function(item){

+ 4 - 0
o2web/source/x_component_process_Xform/Radio.js

@@ -14,6 +14,10 @@ MWF.xApplication.process.Xform.Radio = MWF.APPRadio =  new Class({
     },
     _loadNodeRead: function(){
         this.node.empty();
+        this.node.set({
+            "nodeId": this.json.id,
+            "MWFType": this.json.type
+        });
         var radioValues = this.getOptions();
         var value = this.getValue();
         if (value){

+ 4 - 0
o2web/source/x_component_process_Xform/Select.js

@@ -20,6 +20,10 @@ MWF.xApplication.process.Xform.Select = MWF.APPSelect =  new Class({
     },
     _loadNodeRead: function(){
         this.node.empty();
+		this.node.set({
+			"nodeId": this.json.id,
+			"MWFType": this.json.type
+		});
         var optionItems = this.getOptions();
         var value = this.getValue();
         if (value){

+ 4 - 0
o2web/source/x_component_process_Xform/Textarea.js

@@ -20,6 +20,10 @@ MWF.xApplication.process.Xform.Textarea = MWF.APPTextarea =  new Class({
     },
     _loadNodeRead: function(){
         this.node.empty();
+        this.node.set({
+            "nodeId": this.json.id,
+            "MWFType": this.json.type
+        });
     },
 
 

+ 4 - 0
o2web/source/x_component_process_Xform/Textfield.js

@@ -79,6 +79,10 @@ MWF.xApplication.process.Xform.Textfield = MWF.APPTextfield =  new Class({
     },
     _loadNodeRead: function(){
         this.node.empty();
+        this.node.set({
+            "nodeId": this.json.id,
+            "MWFType": this.json.type
+        });
     },
 
     _resetNodeEdit: function(){