Explorar o código

视图增加页码参数

unknown %!s(int64=5) %!d(string=hai) anos
pai
achega
6e93a9c5a5
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  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(){