Browse Source

解决某些情况下视图跳页错的问题误

unknown 5 years ago
parent
commit
81625bb74c
1 changed files with 3 additions and 3 deletions
  1. 3 3
      o2web/source/x_component_query_Query/Viewer.js

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

@@ -395,7 +395,7 @@ MWF.xApplication.query.Query.Viewer = MWF.QViewer = new Class({
             }
         }.bind(this));
     },
-    loadCurrentPageData: function( callback ){
+    loadCurrentPageData: function( callback, async ){
         //是否需要在翻页的时候清空之前的items ?
         this.items = [];
 
@@ -432,7 +432,7 @@ MWF.xApplication.query.Query.Viewer = MWF.QViewer = new Class({
             this.fireEvent("postLoadPage");
 
             if(callback)callback();
-        }.bind(this));
+        }.bind(this), null, async === false ? false : true );
     },
 
 
@@ -2194,7 +2194,7 @@ MWF.xApplication.query.Query.Viewer.Paging = new Class({
             onJumpingPage : function( pageNum, itemNum ){
                 this.view.currentPage = pageNum;
                 this.fireEvent("jump");
-                this.view.loadCurrentPageData();
+                this.view.loadCurrentPageData( null, false );
             }.bind(this),
             onPostLoad : function () {
                 if( firstLoading ){