首页 > 代码库 > ExtJS4.2 Grid 分页栏 搜索
ExtJS4.2 Grid 分页栏 搜索
function SearchCondition(){ this.startTime = ""; this.endTime = ""; this.targetInfo = ""; this.logType = ""; this.manager = ""; this.reset = function(){ this.startTime = ""; this.endTime = ""; this.targetInfo = ""; this.logType = ""; this.manager = ""; } } var logStore = Ext.create("Ext.data.Store", { pageSize : 30, searchCondition:new SearchCondition(), model : ‘opearationLogModel‘, proxy:{ type : ‘ajax‘, url:"********", reader:{ root: ‘***‘, totalProperty: ‘***‘, type : ‘json‘ } }, remoteSort:true, listeners:{ ‘beforeload‘: function( s, operation, eOpts ){ s.proxy.extraParams= { startTime: logStore.searchCondition.startTime, endTime: logStore.searchCondition.endTime, targetInfo: logStore.searchCondition.targetInfo, logType: logStore.searchCondition.logType, manager: logStore.searchCondition.manager }; }, ‘load‘: function( s, records, successful, eOpts ){ } } }); logStore.sort({property:‘operateTime‘, direction:‘DESC‘}); function querybtnClk(){ logStore.searchCondition.reset(); logStore.searchCondition.startTime = startTime; logStore.searchCondition.endTime = endTime; logStore.searchCondition.targetInfo = ***; logStore.searchCondition.logType = ****; logStore.searchCondition.manager = ***; barPagingBar.bind(logStore); barPagingBar.doRefresh(); }
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。