Browse Source

feat 环境参数详情

anxiaoxia 1 year ago
parent
commit
bc0e4bfe1b
1 changed files with 4 additions and 3 deletions
  1. 4 3
      src/packagesEnv/pages/officehome/detail.wpy

+ 4 - 3
src/packagesEnv/pages/officehome/detail.wpy

@@ -223,7 +223,6 @@ function onInitChart(F2, config) {
     })
     if (currentTab.funcid === 'Tdb,RH') { // 加湿度的面积图
       chart.line().position('time*rhsales').color('#3DCBCC').shape('smooth')
-    } else if (currentTab.funcid === 'Tdb,RH') {
       chart.line().position('time*sales').color('#246FE5').shape('smooth')
     } else {
       chart.area().position('time*sales').color('#3DCBCC').shape('smooth')
@@ -231,9 +230,11 @@ function onInitChart(F2, config) {
   }
 
     // 注意:需要把chart return 出来
-  chart.line().position('time*sales').color('#3DCBCC').shape('smooth') // smooth stack
   if (currentTab.funcid === 'Tdb,RH') { // 加湿度的线
-    chart.line().position('time*rhsales').color('#246FE5').shape('smooth')
+    chart.line().position('time*rhsales').color('#3DCBCC').shape('smooth')
+    chart.line().position('time*sales').color('#246FE5').shape('smooth')
+  } else {
+    chart.line().position('time*sales').color('#3DCBCC').shape('smooth') // smooth stack
   }
   chart.render()
   return chart