|
|
@@ -213,7 +213,7 @@ Ext.define('saas.view.core.report.ReportPanel', {
|
|
|
})
|
|
|
if (type && d) {
|
|
|
if(typeof c.mySummaryRenderer == 'function') {
|
|
|
- c.summaryValue = c.mySummaryRenderer(grid, datas);
|
|
|
+ c.summaryValue = c.mySummaryRenderer(grid, c, datas);
|
|
|
}else if (type == 'count') {
|
|
|
c.summaryValue = Ext.util.Format.number(d[name], c.format || '0');
|
|
|
} else if (typeof c.summaryRenderer == 'function') {
|
|
|
@@ -235,6 +235,7 @@ Ext.define('saas.view.core.report.ReportPanel', {
|
|
|
});
|
|
|
return datas;
|
|
|
} catch (e) {
|
|
|
+ console.log(e);
|
|
|
saas.util.BaseUtil.showErrorToast(e.message);
|
|
|
}
|
|
|
},
|