Commit 6c266171 by chenwq

折线图限制两位

1 parent 7cb58a07
......@@ -101,13 +101,13 @@ export default {
Object.keys(topTempList).forEach(item => {
topList.push({
label: item,
value: topTempList[item].rate ? topTempList[item].rate + '%' : '- -'
value: topTempList[item].rate ? topTempList[item].rate.toFixed(2) + '%' : '- -'
})
})
Object.keys(lastTempList).forEach(item => {
lastList.push({
label: item,
value: lastTempList[item].rate ? lastTempList[item].rate + '%' : '- -'
value: lastTempList[item].rate ? lastTempList[item].rate.toFixed(2) + '%' : '- -'
})
})
this.dataList.push({
......
......@@ -101,13 +101,13 @@ export default {
Object.keys(topTempList).forEach(item => {
topList.push({
label: item,
value: topTempList[item].rate ? topTempList[item].rate + '%' : '- -'
value: topTempList[item].rate ? topTempList[item].rate.toFixed(2) + '%' : '- -'
})
})
Object.keys(lastTempList).forEach(item => {
lastList.push({
label: item,
value: lastTempList[item].rate ? lastTempList[item].rate + '%' : '- -'
value: lastTempList[item].rate ? lastTempList[item].rate.toFixed(2) + '%' : '- -'
})
})
this.dataList.push({
......
......@@ -102,13 +102,13 @@ export default {
Object.keys(topTempList).forEach(item => {
topList.push({
label: item,
value: topTempList[item].rate ? topTempList[item].rate + '%' : '- -'
value: topTempList[item].rate ? topTempList[item].rate.toFixed(2) + '%' : '- -'
})
})
Object.keys(lastTempList).forEach(item => {
lastList.push({
label: item,
value: lastTempList[item].rate ? lastTempList[item].rate + '%' : '- -'
value: lastTempList[item].rate ? lastTempList[item].rate.toFixed(2) + '%' : '- -'
})
})
this.dataList.push({
......
......@@ -101,13 +101,13 @@ export default {
Object.keys(topTempList).forEach(item => {
topList.push({
label: item,
value: topTempList[item].rate ? topTempList[item].rate + '%' : '- -'
value: topTempList[item].rate ? topTempList[item].rate.toFixed(2) + '%' : '- -'
})
})
Object.keys(lastTempList).forEach(item => {
lastList.push({
label: item,
value: lastTempList[item].rate ? lastTempList[item].rate + '%' : '- -'
value: lastTempList[item].rate ? lastTempList[item].rate.toFixed(2) + '%' : '- -'
})
})
this.dataList.push({
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!