Browse Source

修改变量

SunZehao 1 month ago
parent
commit
6b1fbbcbb5
1 changed files with 7 additions and 18 deletions
  1. 7 18
      src/components/allMatricesNoDia.vue

+ 7 - 18
src/components/allMatricesNoDia.vue

@@ -76,25 +76,14 @@
               <div class="stationInfo">
                 <div class="name">实时功率</div>
                 <div class="nums">
-                  {{
-                    getseeting(
-                      $store.state.titleInfo.stationOverviewInfos,
-                      item[0],
-                      "power"
-                    )
-                  }}MW
+                  <!-- $store.state.titleInfo.stationOverviewInfos -->
+                  {{ getseeting(stationOverviewInfosNow, item[0], "power") }}MW
                 </div>
               </div>
               <div class="stationInfo">
                 <div class="name">平均风速</div>
                 <div class="nums">
-                  {{
-                    getseeting(
-                      $store.state.titleInfo.stationOverviewInfos,
-                      item[0],
-                      "wind"
-                    )
-                  }}m/s
+                  {{ getseeting(stationOverviewInfosNow, item[0], "wind") }}m/s
                 </div>
               </div>
             </div>
@@ -159,7 +148,7 @@
                 <div class="name">实时功率</div>
                 <div class="nums">
                   {{
-                    $store.state.titleInfo.stationOverviewInfos[
+                    stationOverviewInfosNow[
                       item[0].station
                     ]?.realTimePower?.value.toFixed(2)
                   }}MW
@@ -169,7 +158,7 @@
                 <div class="name">日照强度</div>
                 <div class="nums">
                   {{
-                    $store.state.titleInfo.stationOverviewInfos[
+                    stationOverviewInfosNow[
                       item[0].station
                     ]?.averageWindSpeed?.value.toFixed(2)
                   }}KW/㎡
@@ -284,15 +273,15 @@ export default {
           value: "#ff3c80",
         },
       ],
+      stationOverviewInfosNow: [],
     };
   },
   created() {
     // this.getLocks();
-    this.$store.state.titleInfo.stationOverviewInfos =
-      dataJson.stationOverviewInfos;
   },
   mounted() {
     this.$nextTick(() => {
+      this.stationOverviewInfosNow = dataJson.stationOverviewInfos;
       this.stationArr = dataJson.stationArr;
     });
   },