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

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

Merge of fix/【流程管理】修复流程表单组件只读状态下loadDescription报错的问题 to develop

See merge request o2oa/o2oa!534
蔡祥熠 5 лет назад
Родитель
Сommit
707eaa101f

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

@@ -69,6 +69,7 @@ MWF.xApplication.process.Xform.$Input = MWF.APP$Input =  new Class({
         this.node.empty();
     },
     loadDescription: function(){
+        if (this.readonly || this.json.isReadonly)return;
         var v = this._getBusinessData();
         if (!v){
             if (this.json.description){

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

@@ -424,6 +424,7 @@ MWF.xApplication.process.Xform.Opinion = MWF.APPOpinion =  new Class({
         }
 	},
     loadDescription: function(){
+        if (this.readonly || this.json.isReadonly)return;
         var v = this._getBusinessData();
         if (!v){
             if (this.json.description){

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

@@ -70,6 +70,7 @@ MWF.xApplication.process.Xform.Textarea = MWF.APPTextarea =  new Class({
         }
 	},
     loadDescription: function(){
+        if (this.readonly || this.json.isReadonly)return;
         var v = this._getBusinessData();
         if (!v){
             if (this.json.description){

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

@@ -20,6 +20,7 @@ MWF.xApplication.process.Xform.Textfield = MWF.APPTextfield =  new Class({
         }
     },
     loadDescription: function(){
+        if (this.readonly || this.json.isReadonly)return;
         var v = this._getBusinessData();
         if (!v){
             if (this.json.description){