给统计列的数字保留两位小数
This commit is contained in:
@@ -2045,15 +2045,13 @@
|
||||
let value = item[key]
|
||||
if (value && count !== '-') {
|
||||
try {
|
||||
// 20200528 cfm modi
|
||||
// count += Number.parseInt(value)
|
||||
count += Number.parseFloat(value)
|
||||
} catch (e) {
|
||||
count = '-'
|
||||
}
|
||||
}
|
||||
})
|
||||
this.statisticsColumns[key] = count
|
||||
this.statisticsColumns[key] = count.toFixed(2)
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user