解决报表中合计数值的bug
This commit is contained in:
@@ -395,7 +395,11 @@ export const JeecgListMixin = {
|
|||||||
let total = 0
|
let total = 0
|
||||||
dataSource.forEach(data => {
|
dataSource.forEach(data => {
|
||||||
if(parseCols.indexOf(dataIndex)>-1) {
|
if(parseCols.indexOf(dataIndex)>-1) {
|
||||||
total += Number.parseFloat(data[dataIndex])
|
if(data[dataIndex]) {
|
||||||
|
total += Number.parseFloat(data[dataIndex])
|
||||||
|
} else {
|
||||||
|
total += 0
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
total = '-'
|
total = '-'
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user