Commit 3c14375a authored by 李智书's avatar 李智书

1.班周消费报告页面修改

parent e21474a7
...@@ -479,8 +479,8 @@ ...@@ -479,8 +479,8 @@
let sum = 0, let sum = 0,
obj = {}; obj = {};
this_.consume_prefs.forEach(ele => { this_.consume_prefs.forEach(ele => {
obj[ele.scene] = parseInt(ele.amount) obj[ele.scene] = parseFloat(ele.amount)
sum += parseInt(ele.amount); sum += parseFloat(ele.amount);
}) })
myChart.setOption({ myChart.setOption({
...@@ -591,7 +591,7 @@ ...@@ -591,7 +591,7 @@
data: this_.consume_prefs.map((v, index) => { data: this_.consume_prefs.map((v, index) => {
console.log(this_.consume_prefs); console.log(this_.consume_prefs);
return { return {
value: parseInt(v.amount), value: parseFloat(v.amount),
name: v.scene, name: v.scene,
itemStyle: { itemStyle: {
normal: { normal: {
......
Markdown is supported
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