解决报表中合计数值的bug
This commit is contained in:
parent
ff4756dc52
commit
f7014987b2
@ -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 = '-'
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user