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