给统计列的数字保留两位小数

This commit is contained in:
季圣华
2021-10-03 20:59:25 +08:00
parent 10c96a45a8
commit 69eedf13b4

View File

@@ -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)
}
}
},