|
|
@@ -9,6 +9,8 @@ Ext.define('saas.view.core.report.ReportPanel', {
|
|
|
'Ext.grid.plugin.Exporter'
|
|
|
],
|
|
|
|
|
|
+ cls: 'x-report-panel',
|
|
|
+
|
|
|
layout: 'vbox',
|
|
|
autoScroll: true,
|
|
|
border: 1,
|
|
|
@@ -18,6 +20,7 @@ Ext.define('saas.view.core.report.ReportPanel', {
|
|
|
listUrl: null, // 列表查询URL
|
|
|
defaultCondition: null, // 默认查询条件
|
|
|
searchItems: [], // 查询字段
|
|
|
+ reportTitle: '报表',
|
|
|
|
|
|
initComponent: function() {
|
|
|
var me = this;
|
|
|
@@ -35,40 +38,18 @@ Ext.define('saas.view.core.report.ReportPanel', {
|
|
|
labelWidth: 90,
|
|
|
columnWidth: 0.25,
|
|
|
},
|
|
|
- items: me.initSearchItems(),
|
|
|
- dockedItems: [{
|
|
|
- xtype: 'toolbar',
|
|
|
- dock: 'bottom',
|
|
|
- items: ['->', {
|
|
|
+ items: me.initSearchItems().concat([{
|
|
|
+ xtype: 'container',
|
|
|
+ columnWidth: 0.5,
|
|
|
+ items: [{
|
|
|
xtype: 'button',
|
|
|
text: '查询',
|
|
|
handler: 'onQuery'
|
|
|
- }, '->']
|
|
|
- }]
|
|
|
- }, {
|
|
|
- xtype: 'grid',
|
|
|
- width: '100%',
|
|
|
- flex: 1,
|
|
|
- border: 1,
|
|
|
- plugins: {
|
|
|
- gridexporter: true
|
|
|
- },
|
|
|
- features: [{
|
|
|
- ftype: 'groupingsummary',
|
|
|
- hideGroupedHeader: false,
|
|
|
- enableGroupingMenu: false,
|
|
|
- collapsible: false
|
|
|
- }, {
|
|
|
- ftype: 'summary',
|
|
|
- dock: 'bottom'
|
|
|
- }],
|
|
|
- store: store,
|
|
|
- columns: me.initColumns(),
|
|
|
- dockedItems: [{
|
|
|
- xtype: 'toolbar',
|
|
|
- dock: 'top',
|
|
|
- items: ['->', {
|
|
|
+ }, {
|
|
|
xtype: 'button',
|
|
|
+ style: {
|
|
|
+ float: 'right'
|
|
|
+ },
|
|
|
text: '导出为...',
|
|
|
menu: {
|
|
|
defaults: {
|
|
|
@@ -126,7 +107,31 @@ Ext.define('saas.view.core.report.ReportPanel', {
|
|
|
}]
|
|
|
}
|
|
|
}]
|
|
|
+ }])
|
|
|
+ }, {
|
|
|
+ xtype: 'grid',
|
|
|
+ width: '100%',
|
|
|
+ cls: 'x-report-grid',
|
|
|
+ flex: 1,
|
|
|
+ border: 1,
|
|
|
+ sortableColumns: false,
|
|
|
+ enableColumnHide: false,
|
|
|
+ rowLines: false,
|
|
|
+ plugins: {
|
|
|
+ gridexporter: true
|
|
|
+ },
|
|
|
+ features: [{
|
|
|
+ ftype: 'groupingsummary',
|
|
|
+ hideGroupedHeader: false,
|
|
|
+ enableGroupingMenu: false,
|
|
|
+ collapsible: false
|
|
|
}, {
|
|
|
+ ftype: 'summary',
|
|
|
+ dock: 'bottom'
|
|
|
+ }],
|
|
|
+ store: store,
|
|
|
+ columns: me.initColumns(),
|
|
|
+ dockedItems: [{
|
|
|
style: {
|
|
|
'border-top': '1px solid #35baf6 !important'
|
|
|
},
|
|
|
@@ -154,8 +159,6 @@ Ext.define('saas.view.core.report.ReportPanel', {
|
|
|
fields: me.getFields(),
|
|
|
autoLoad: true,
|
|
|
pageSize: 15,
|
|
|
- exportPageSize: 5000,
|
|
|
- exportNumber: 1,
|
|
|
data: [],
|
|
|
proxy: {
|
|
|
type: 'ajax',
|