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

Merge branch 'fix/Process.org_isinput_execption' into 'wrdp'

Merge of fix/[流程管理]修复人员选择组件设置为只读,允许输入时的问题 to wrdp

See merge request o2oa/o2oa!1441

(cherry picked from commit 59709be306489f55fc8d028347a77ee14e26f955)

19de354d 修复人员选择组件设置为只读,允许输入的时候的问题
蔡祥熠 5 лет назад
Родитель
Сommit
2345dc0c14

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

@@ -437,6 +437,7 @@ MWF.xApplication.cms.Xform.Readerfield = MWF.CMSReaderfield =  new Class({
             } else {
                 var node = this.node.getFirst();
                 if (node) {
+                    node.empty();
                     comboxValues.each(function (v, i) {
                         this.creteShowNode(v, (i === comboxValues.length - 1)).inject(node);
                     }.bind(this));

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

@@ -775,6 +775,7 @@ MWF.xApplication.process.Xform.Org = MWF.APPOrg =  new Class({
             }else{
                 var node = this.node.getFirst();
                 if (node){
+                    node.empty();
                     comboxValues.each(function(v, i){
                         this.creteShowNode(v, (i===comboxValues.length-1)).inject(node);
                     }.bind(this));
@@ -900,6 +901,7 @@ MWF.xApplication.process.Xform.Org = MWF.APPOrg =  new Class({
             }else{
                 var node = this.node.getFirst();
                 if (node){
+                    node.empty();
                     comboxValues.each(function(v, i){
                         this.creteShowNode(v, (i===comboxValues.length-1)).inject(node);
                     }.bind(this));

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

@@ -450,6 +450,7 @@ MWF.xApplication.process.Xform.Orgfield = MWF.APPOrgfield =  new Class({
             }else{
                 var node = this.node.getFirst();
                 if (node){
+                    node.empty();
                     comboxValues.each(function(v, i){
                         this.creteShowNode(v, (i===comboxValues.length-1)).inject(node);
                     }.bind(this));

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

@@ -706,6 +706,7 @@ MWF.xApplication.process.Xform.Personfield = MWF.APPPersonfield =  new Class({
             }else{
                 var node = this.node.getFirst();
                 if (node){
+                    node.empty();
                     comboxValues.each(function(v, i){
                         this.creteShowNode(v, (i===comboxValues.length-1)).inject(node);
                     }.bind(this));
@@ -834,6 +835,7 @@ MWF.xApplication.process.Xform.Personfield = MWF.APPPersonfield =  new Class({
             }else{
                 var node = this.node.getFirst();
                 if (node){
+                    node.empty();
                     comboxValues.each(function(v, i){
                         this.creteShowNode(v, (i===comboxValues.length-1)).inject(node);
                     }.bind(this));