Index: ssts-web/src/main/webapp/js/Ext4CompUtil.js =================================================================== diff -u -r15527 -r15924 --- ssts-web/src/main/webapp/js/Ext4CompUtil.js (.../Ext4CompUtil.js) (revision 15527) +++ ssts-web/src/main/webapp/js/Ext4CompUtil.js (.../Ext4CompUtil.js) (revision 15924) @@ -24,6 +24,8 @@ */ comboBuilder.getStore = function (storeConfig) { var store = Ext4.create('Ext.data.Store', { + //limit参数,每页显示条数,默认为25 + pageSize: storeConfig.pageSize || 25, model: storeConfig.model, proxy: { type: 'ajax', @@ -42,8 +44,7 @@ /** * 创建并获得combo对象 * @param comboConfig 相关的配置 - * 1.(必选:store,valueField,displayField,fieldLabel,id,name) - * 2.(可选:width,allowBlank,listeners) + * (必选:store,valueField,displayField,fieldLabel,id,name) * @returns {Ext4.form.ComboBox} */ comboBuilder.getCombo = function (comboConfig) { @@ -54,7 +55,8 @@ fieldLabel: comboConfig.fieldLabel, id: comboConfig.id, name: comboConfig.name, - queryParam: 'spell', + //查询参数,Ext默认为 query,现在改成spell + queryParam: comboConfig.queryParam || 'spell', triggerAction: 'all', minChars: 0, width: comboConfig.width || 600, @@ -63,6 +65,8 @@ triggerAction: 'all', hideTrigger: true, typeAhead: false, + //下拉列表框的分页大小,非false的数字就会创建分页 + pageSize : comboConfig.pageSize || false, allowBlank: comboConfig.allowBlank || true, anchor: '97%', listeners: comboConfig.listeners || {