Commit f7014987 authored by 季圣华's avatar 季圣华
Browse files

解决报表中合计数值的bug

parent ff4756dc
......@@ -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 = '-'
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment