Commit 6c266171 by chenwq

折线图限制两位

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