Commit 69eedf13 authored by 季圣华's avatar 季圣华
Browse files

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

parent 10c96a45
...@@ -2045,15 +2045,13 @@ ...@@ -2045,15 +2045,13 @@
let value = item[key] let value = item[key]
if (value && count !== '-') { if (value && count !== '-') {
try { try {
// 20200528 cfm modi
// count += Number.parseInt(value)
count += Number.parseFloat(value) count += Number.parseFloat(value)
} catch (e) { } catch (e) {
count = '-' count = '-'
} }
} }
}) })
this.statisticsColumns[key] = count this.statisticsColumns[key] = count.toFixed(2)
} }
} }
}, },
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment