Index: ssts-web/src/main/webapp/disinfectsystem/reportforms/useRecordRecyclingDelayView.js =================================================================== diff -u -r41267 -r41283 --- ssts-web/src/main/webapp/disinfectsystem/reportforms/useRecordRecyclingDelayView.js (.../useRecordRecyclingDelayView.js) (revision 41267) +++ ssts-web/src/main/webapp/disinfectsystem/reportforms/useRecordRecyclingDelayView.js (.../useRecordRecyclingDelayView.js) (revision 41283) @@ -34,9 +34,11 @@ method: 'POST', reader: { type: 'json', - root: 'data' + root: 'data', + totalProperty: 'totalCount' } }, + pageSize: 50, fields: ['id', 'spelling', 'name', 'displayName', 'amount'], listeners: { beforeload: function(store) { @@ -55,13 +57,17 @@ method: 'POST', reader: { type: 'json', - root: 'data' + root: 'data', + totalProperty: 'totalCount' } }, + pageSize: 50, fields: ['id', 'name'], listeners: { load: function(store, records) { - store.insert(0, { id: "", name: "全部" }); + if (records && records.length > 0) { + store.insert(0, { 'id': '', 'name': '全部' }); + } } } }); @@ -73,9 +79,11 @@ method: 'POST', reader: { type: 'json', - root: 'data' + root: 'data', + totalProperty: 'totalCount' } }, + pageSize: 50, fields: ['id', 'operationName'] }); @@ -141,6 +149,8 @@ fieldLabel: '手术名称', id: 'operation', name: 'operation', + pageSize: 50, //实际测试发现这个参数在大于0时就只是显示分页插件并不是真的用这个大小作为分页大小去查询。实际分页大小是store中配置才有效 + queryParam: 'spell', valueField: 'operationName', displayField: 'operationName', minChars: 0, @@ -151,7 +161,8 @@ triggerAction: 'all', lazyInit: true, typeAhead: false, - anchor: '95%' + anchor: '95%', + matchFieldWidth: false }] }, { width: defaultWidth, @@ -174,12 +185,14 @@ xtype: 'combo', id: 'tousseName', name: 'tousseName', + pageSize: 50, //实际测试发现这个参数在大于0时就只是显示分页插件并不是真的用这个大小作为分页大小去查询。实际分页大小是store中配置才有效 + queryParam: 'spell', fieldLabel: '器械包名称', minChars: 0, valueField: 'name', displayField: 'name', anchor: '95%', - listWidth: 370, + matchFieldWidth: false, store: tousseDefinitionStore, lazyInit: true, triggerAction: 'all', @@ -196,12 +209,14 @@ xtype: 'combo', id: 'departCode', name: 'departCode', + pageSize: 50, //实际测试发现这个参数在大于0时就只是显示分页插件并不是真的用这个大小作为分页大小去查询。实际分页大小是store中配置才有效 + queryParam: 'spell', fieldLabel: '科室', minChars: 0, valueField: 'id', displayField: 'name', anchor: '95%', - listWidth: 370, + matchFieldWidth: false, store: departJsonStore, lazyInit: true, triggerAction: 'all',