Przeglądaj źródła

Merge branch 'fix/Org.search_execption' into 'develop'

Merge of fix/[组织管理]修复组织管理没有输入内容搜索结果异常的问题 to develop

See merge request o2oa/o2oa!650
蔡祥熠 5 lat temu
rodzic
commit
fc1c40f1de
1 zmienionych plików z 7 dodań i 2 usunięć
  1. 7 2
      o2web/source/x_component_Org/$Explorer.js

+ 7 - 2
o2web/source/x_component_Org/$Explorer.js

@@ -264,7 +264,7 @@ MWF.xApplication.Org.$Explorer = new Class({
                 if (this.currentItem) isSearchElement = this.currentItem.unSelected();
                 if (this.currentItem) isSearchElement = this.currentItem.unSelected();
                 if (isSearchElement){
                 if (isSearchElement){
                     this.clear();
                     this.clear();
-                    this.loadElements();
+                    this.reloadElements();
                 }else{
                 }else{
                     this.app.notice(this.options.lp.elementSave, "error", this.propertyContentNode);
                     this.app.notice(this.options.lp.elementSave, "error", this.propertyContentNode);
                 }
                 }
@@ -273,7 +273,7 @@ MWF.xApplication.Org.$Explorer = new Class({
             if (this.currentItem) isSearchElement = this.currentItem.unSelected();
             if (this.currentItem) isSearchElement = this.currentItem.unSelected();
             if (isSearchElement){
             if (isSearchElement){
                 this.clear();
                 this.clear();
-                this.loadElements();
+                this.reloadElements();
             }else{
             }else{
                 this.app.notice(this.options.lp.elementSave, "error", this.propertyContentNode);
                 this.app.notice(this.options.lp.elementSave, "error", this.propertyContentNode);
             }
             }
@@ -370,6 +370,11 @@ MWF.xApplication.Org.$Explorer = new Class({
             this.loadElements(true);
             this.loadElements(true);
         }
         }
     },
     },
+    reloadElements : function(){
+        this.elements = [];
+        this.clear();
+        this.loadElements();
+    },
     loadElements: function(addToNext){
     loadElements: function(addToNext){
         if (!this.isElementLoaded){
         if (!this.isElementLoaded){
             if (!this.loaddingElement){
             if (!this.loaddingElement){