Commit 2535d1bc by chenwq

toFixed(2)

1 parent cdafec44
......@@ -95,8 +95,8 @@ export default {
})
this.dataList.push({
num: item.num || 0,
hrate: item.hrate || 0,
trate: item.trate || 0,
hrate: item.hrate.toFixed(2) || 0,
trate: item.trate.toFixed(2) || 0,
statDate: item.statDate,
topList: topList,
lastList: lastList
......
......@@ -97,8 +97,8 @@ export default {
})
this.dataList.push({
num: item.num || 0,
hrate: item.hrate || 0,
trate: item.trate || 0,
hrate: item.hrate.toFixed(2) || 0,
trate: item.trate.toFixed(2) || 0,
statDate: item.statDate,
topList: topList,
lastList: lastList
......
......@@ -112,9 +112,9 @@ export default {
})
this.dataList.push({
num: item.num || 0,
rate: item.rate || 0,
hrate: item.hrate || 0,
trate: item.trate || 0,
rate: item.rate.toFixed(2) || 0,
hrate: item.hrate.toFixed(2) || 0,
trate: item.trate.toFixed(2) || 0,
statDate: item.statDate,
topList: topList,
lastList: lastList
......
......@@ -112,9 +112,9 @@ export default {
})
this.dataList.push({
num: item.num || 0,
rate: item.rate || 0,
hrate: item.hrate || 0,
trate: item.trate || 0,
rate: item.rate.toFixed(2) || 0,
hrate: item.hrate.toFixed(2) || 0,
trate: item.trate.toFixed(2) || 0,
statDate: item.statDate,
topList: topList,
lastList: lastList
......
......@@ -113,9 +113,9 @@ export default {
})
this.dataList.push({
num: item.num || 0,
rate: item.rate || 0,
hrate: item.hrate || 0,
trate: item.trate || 0,
rate: item.rate.toFixed(2) || 0,
hrate: item.hrate.toFixed(2) || 0,
trate: item.trate.toFixed(2) || 0,
statDate: item.statDate,
topList: topList,
lastList: lastList
......
......@@ -112,9 +112,9 @@ export default {
})
this.dataList.push({
num: item.num || 0,
rate: item.rate || 0,
hrate: item.hrate || 0,
trate: item.trate || 0,
rate: item.rate.toFixed(2) || 0,
hrate: item.hrate.toFixed(2) || 0,
trate: item.trate.toFixed(2) || 0,
statDate: item.statDate,
topList: topList,
lastList: lastList
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!