فهرست منبع

修复会议管理会议室相关的问题

unknown 5 سال پیش
والد
کامیت
e586ef4d44
1فایلهای تغییر یافته به همراه17 افزوده شده و 0 حذف شده
  1. 17 0
      o2web/source/x_component_Meeting/Common.js

+ 17 - 0
o2web/source/x_component_Meeting/Common.js

@@ -799,6 +799,7 @@ MWF.xApplication.Meeting.MeetingForm = new Class({
                             var options = {
                                 "type" : "",
                                 "types": ["identity","person"],
+                                "exclude" : this.getInvitePersonExclude(),
                                 "values": [],
                                 "count": 0,
                                 "onComplete": function(items){
@@ -862,6 +863,21 @@ MWF.xApplication.Meeting.MeetingForm = new Class({
             }
         }.bind(this), true);
     },
+    getInvitePersonExclude : function(){
+        debugger;
+        var invitePersonList = this.invitePersonList || this.data.invitePersonList;
+        var identityList = [];
+        if( invitePersonList.length > 0 ){
+            o2.Actions.load("x_organization_assemble_express").IdentityAction.listWithPerson({
+                personList : invitePersonList
+            }, function( json ){
+                identityList = json.data ? json.data.identityList : [];
+            }, null ,false );
+            return ( identityList || [] ).concat(invitePersonList);
+        }else{
+            return [];
+        }
+    },
     getString : function( str ){
         var s = "00" + str;
         return s.substr(s.length - 2, 2 );
@@ -1293,6 +1309,7 @@ MWF.xApplication.Meeting.MeetingForm = new Class({
         });
     },
     rejectMeeting: function(){
+        debugger;
         var view = this.view;
         this.app.actions.rejectMeeting(this.data.id, function(){
             view.reload();