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

修复设置附件权限的时候没有刷新排序列的问题

unknown 5 лет назад
Родитель
Сommit
e7b0eddb57
1 измененных файлов с 6 добавлено и 0 удалено
  1. 6 0
      o2web/source/x_component_process_Xform/Attachment.js

+ 6 - 0
o2web/source/x_component_process_Xform/Attachment.js

@@ -701,6 +701,7 @@ MWF.xApplication.process.Xform.AttachmentController = new Class({
         }
     },
     setAttachmentConfig: function (readInput, editInput, controllerInput) {
+        debugger;
         if (this.selectedAttachments.length) {
             var readList = readInput.retrieve("data-value");
             var editList = editInput.retrieve("data-value");
@@ -741,6 +742,7 @@ MWF.xApplication.process.Xform.AttachmentController = new Class({
                 });
             }
 
+            var loadedCount = 0;
             this.selectedAttachments.each(function (att) {
                 att.data.readUnitList = readUnitList;
                 att.data.readIdentityList = readIdentityList;
@@ -765,6 +767,10 @@ MWF.xApplication.process.Xform.AttachmentController = new Class({
                                 attachment.configAction.setStyle("display","none");
                             }
                         }
+                        loadedCount++;
+                        if( loadedCount === this.selectedAttachments.length ){
+                            this.checkActions();
+                        }
                     }.bind(this))
                 }.bind(this));
             }.bind(this));