Browse Source

修改气象站风速风向展示

xusl 7 months ago
parent
commit
3c7d3da233
1 changed files with 13 additions and 13 deletions
  1. 13 13
      cpp-ui/src/views/stationDataQuery/weatherstationstatusdata/index.vue

+ 13 - 13
cpp-ui/src/views/stationDataQuery/weatherstationstatusdata/index.vue

@@ -71,9 +71,9 @@
         <el-tab-pane label="辐射图" name="second">
           <div style="float:left;width: 95%;height: 550px" id="fscharts"></div>
         </el-tab-pane>
-        <el-tab-pane label="风速曲线图" name="three">
-          <div style="float:left;width: 95%;height: 550px" id="wscharts"></div>
-        </el-tab-pane>
+<!--        <el-tab-pane label="风速风向图" name="three">-->
+<!--          <div style="float:left;width: 95%;height: 550px" id="wscharts"></div>-->
+<!--        </el-tab-pane>-->
       </el-tabs>
     </div>
   </div>
@@ -111,11 +111,11 @@ export default {
 
   },
   beforeDestroy() {
-    if (!this.wsChart) {
-      return
-    }
-    this.wsChart.dispose()
-    this.wsChart = null
+    // if (!this.wsChart) {
+    //   return
+    // }
+    // this.wsChart.dispose()
+    // this.wsChart = null
     if (!this.fsChart) {
       return
     }
@@ -130,11 +130,11 @@ export default {
           this.fsChart.resize();
         })
       }
-      if (this.activeName == 'three') {
-        this.$nextTick(function () {
-          this.wsChart.resize();
-        })
-      }
+      // if (this.activeName == 'three') {
+      //   this.$nextTick(function () {
+      //     this.wsChart.resize();
+      //   })
+      // }
     },
     nameFormat({cellValue, row, column}) {
       const item = this.nameList.find(item => item.value === cellValue)