支持表格的横向统计。
<ec:column cell="calcTotal"  width="80" title="合计" property="USERROLE,USERID" /> 
<ec:column cell="calcAvg" width="80" title="平均" property="USERROLE,USERID" />

使用cell=”calcTotal” 算合计 cell=”calcAvg” 算平均,

property表示要计算的列,*号表示计算所有列。

位置不一定非要放到最后,可以在中间。:)

				<ec:row>
<ec:column property="casecontext" title='办件类型' width="226"></ec:column>
<ec:column property="shoujian" title='收件数量' width="200" calc="total" calcTitle="合计:" ></ec:column>
<ec:column property="banjian" title='办件数量' width="200" calc="total" calcTitle="合计:" ></ec:column>
</ec:row>

版权声明:本文为jc_dreaming2原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
原文链接:https://blog.csdn.net/jc_dreaming2/article/details/83731339