Browse Source

数据中心视图修复setFilter的bug

unknown 5 years ago
parent
commit
125cb401e7
1 changed files with 3 additions and 1 deletions
  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( typeOf( filter ) === "object" )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 ){
         debugger;