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

人员组织选择在精简设置下不去获取身份对应的人员了

unknown 5 лет назад
Родитель
Сommit
cd9becea96
1 измененных файлов с 4 добавлено и 3 удалено
  1. 4 3
      o2web/source/x_component_Selector/Identity.js

+ 4 - 3
o2web/source/x_component_Selector/Identity.js

@@ -652,7 +652,7 @@ MWF.xApplication.Selector.Identity.Item = new Class({
                 if (callback) callback();
             }
         }else{
-            if( this.selector.options.storeRange === "simple" ){
+            if( this.selector.options.ignorePerson || this.selector.options.storeRange === "simple" ){
                 if(callback)callback();
                 return;
             }
@@ -740,7 +740,7 @@ MWF.xApplication.Selector.Identity.ItemSelected = new Class({
                 if (callback) callback();
             }
         }else if (!this.data.woPerson && (!this.data.personDn || !this.data.personEmployee || !this.data.personUnique) ){
-            if( this.selector.options.storeRange === "simple" ){
+            if( this.selector.options.ignorePerson || this.selector.options.storeRange === "simple" ){
                 if(callback)callback();
                 return;
             }
@@ -887,7 +887,8 @@ MWF.xApplication.Selector.Identity.ItemCategory = new Class({
         this.iconNode.setStyle("background-image", "url("+"../x_component_Selector/$Selector/"+style+"/icon/companyicon.png)");
     },
     _beforeSelectAll : function( _selectAllFun ){
-        if( this.selector.options.ignorePerson ){
+        debugger;
+        if( this.selector.options.ignorePerson || ( this.selector.options.storeRange === "simple" && this.selector.options.resultType !== "person") ){
             _selectAllFun();
             return;
         }