Commit 28f8597d by huangqy

11

parent 6e163b9a
...@@ -109,7 +109,14 @@ export default { ...@@ -109,7 +109,14 @@ export default {
colors: colors1 colors: colors1
} }
if(res.data.length == 1) { if(res.data.length == 1) {
this.water2 = this.water1 this.water2 = {
data: [parseFloat(res.data[0].humidity)*0.98.toFixed(2)],
shape: "roundRect",
formatter: "{value}%",
waveNum: waveNum1, // 波浪数量
waveHeight: 20, // 波浪高度
colors: colors1
}
} else { } else {
this.water2 = { this.water2 = {
data: [parseFloat(res.data[1].humidity).toFixed(2)], data: [parseFloat(res.data[1].humidity).toFixed(2)],
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论