解决报表中合计数值的bug

This commit is contained in:
季圣华 2021-12-07 00:00:20 +08:00
parent ff4756dc52
commit f7014987b2

View File

@ -395,7 +395,11 @@ export const JeecgListMixin = {
let total = 0
dataSource.forEach(data => {
if(parseCols.indexOf(dataIndex)>-1) {
total += Number.parseFloat(data[dataIndex])
if(data[dataIndex]) {
total += Number.parseFloat(data[dataIndex])
} else {
total += 0
}
} else {
total = '-'
}