瀏覽代碼

视图增加页码参数

unknown 5 年之前
父節點
當前提交
6e93a9c5a5
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      o2web/source/x_component_query_Query/Viewer.js

+ 2 - 0
o2web/source/x_component_query_Query/Viewer.js

@@ -387,6 +387,8 @@ MWF.xApplication.query.Query.Viewer = MWF.QViewer = new Class({
         var i = this.count/this.json.pageSize;
         this.pages = (i.toInt()<i) ? i.toInt()+1 : i;
         this.currentPage = 1;
+        this.currentPage = this.options.defaultPage || 1;
+        this.options.defaultPage = null;
     },
     lookup: function(data){
         this.getLookupAction(function(){