Przeglądaj źródła

处理能耗点击报错

hh 3 dni temu
rodzic
commit
a8950cd583
1 zmienionych plików z 3 dodań i 5 usunięć
  1. 3 5
      entry/src/main/ets/pages/Index.ets

+ 3 - 5
entry/src/main/ets/pages/Index.ets

@@ -98,9 +98,6 @@ struct WorkshopPage {
     legend: {
       show: false
     },
-    tooltip: {
-      show: false
-    },
     xAxis:{
       axisLine: { // 轴线样式
         show: false, // 是否显示
@@ -121,6 +118,7 @@ struct WorkshopPage {
     },
     series:[
       {
+        name: '能耗',
         barStyle:{
           width: 80,
           borderRadius: 5,
@@ -493,8 +491,8 @@ struct WorkshopPage {
                               .height('100%')
                               .onClick(()=>{
                                 this.clickStation = item
-                                  this.toggleType = 2
-                                  this.toggleConfirmController.open()
+                                this.toggleType = 2
+                                this.toggleConfirmController.open()
                               })
                           }
                           .width('100%')