Explorar o código

Merge branch 'fix/custom_view_fix' into 'develop'

Merge of fix/[数据中心]修复视图某些情况下使用setFilter方法报错的问题 to develop

See merge request o2oa/o2oa!189
蔡祥熠 %!s(int64=5) %!d(string=hai) anos
pai
achega
b50d6d5aa4
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      o2web/source/x_component_query_Query/Viewer.js

+ 3 - 1
o2web/source/x_component_query_Query/Viewer.js

@@ -1104,7 +1104,9 @@ MWF.xApplication.query.Query.Viewer = MWF.QViewer = new Class({
         if( !filter )filter = [];
         if( !filter )filter = [];
         if( typeOf( filter ) === "object" )filter = [ filter ];
         if( typeOf( filter ) === "object" )filter = [ filter ];
         this.json.filter = filter;
         this.json.filter = filter;
-        this.createViewNode({"filterList": this.json.filter  ? this.json.filter.clone() : null});
+        if( this.viewAreaNode ){
+            this.createViewNode({"filterList": this.json.filter  ? this.json.filter.clone() : null});
+        }
     },
     },
     switchView : function( json ){
     switchView : function( json ){
         debugger;
         debugger;