Browse Source

Merge branch 'master' of http://124.70.43.205:3000/baiyanting/fd_dwgz_zhyw

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 9 months ago
parent
commit
01479613b3
1 changed files with 52 additions and 28 deletions
  1. 52 28
      src/views/Home/components/map.vue

+ 52 - 28
src/views/Home/components/map.vue

@@ -17,11 +17,12 @@
       <div class="security-days safe_power">
         <div class="text">安全天数:</div>
         <div class="num">
-          <span class="font-num">{{
+          <span class="font-num">425</span>
+          <!-- {{
             StationinformationData?.qt?.aqts
               ? StationinformationData.qt?.aqts
               : "0"
-          }}</span>
+          }} -->
           <span class="unit">天</span>
         </div>
         <div class="security">
@@ -377,12 +378,8 @@
       >
         <div class="security-day">
           <div v-if="activeTab == 0" class="text">总装机容量:</div>
-          <div v-if="activeTab == -1" class="text">
-            风电总装机容量:
-          </div>
-          <div v-if="activeTab == -2" class="text">
-            光伏总装机容量:
-          </div>
+          <div v-if="activeTab == -1" class="text">风电总装机容量:</div>
+          <div v-if="activeTab == -2" class="text">光伏总装机容量:</div>
           <div class="num">
             <span class="font-num" v-if="activeTab == 0">{{
               StationinformationData?.qt?.zzjrl
@@ -414,9 +411,8 @@
             </div>
             <div class="text">安全天数:</div>
             <div class="num">
-              <span class="font-num">{{
-                StationinformationData?.qt?.aqts || 0
-              }}</span>
+              <span class="font-num">3860</span>
+              <!-- {{StationinformationData?.qt?.aqts || 0}} -->
               <span class="unit-t">天</span>
             </div>
           </div>
@@ -883,43 +879,57 @@
                 <div class="type-model">
                   <div class="type-name" style="color: #1d99ff">待机</div>
                   <div class="type-num">
-                    {{ Math.floor(StationinformationData?.mxztmap?.fd_djnum) || 0 }}
+                    {{
+                      Math.floor(StationinformationData?.mxztmap?.fd_djnum) || 0
+                    }}
                   </div>
                 </div>
                 <div class="type-model">
                   <div class="type-name" style="color: #05bb4c">运行</div>
                   <div class="type-num">
-                    {{ Math.floor(StationinformationData?.mxztmap?.fd_yxnum) || 0 }}
+                    {{
+                      Math.floor(StationinformationData?.mxztmap?.fd_yxnum) || 0
+                    }}
                   </div>
                 </div>
                 <div class="type-model">
                   <div class="type-name" style="color: #ba3237">故障</div>
                   <div class="type-num">
-                    {{ Math.floor(StationinformationData?.mxztmap?.fd_gznum) || 0 }}
+                    {{
+                      Math.floor(StationinformationData?.mxztmap?.fd_gznum) || 0
+                    }}
                   </div>
                 </div>
                 <div class="type-model">
                   <div class="type-name" style="color: #e17e23">检修</div>
                   <div class="type-num">
-                    {{ Math.floor(StationinformationData?.mxztmap?.fd_jxnum) || 0 }}
+                    {{
+                      Math.floor(StationinformationData?.mxztmap?.fd_jxnum) || 0
+                    }}
                   </div>
                 </div>
                 <div class="type-model">
                   <div class="type-name" style="color: #c531c7">限电</div>
                   <div class="type-num">
-                    {{ Math.floor(StationinformationData?.mxztmap?.fd_xdnum) || 0 }}
+                    {{
+                      Math.floor(StationinformationData?.mxztmap?.fd_xdnum) || 0
+                    }}
                   </div>
                 </div>
                 <div class="type-model">
                   <div class="type-name" style="color: #fff">受累</div>
                   <div class="type-num">
-                    {{ Math.floor(StationinformationData?.mxztmap?.fd_slnum) || 0 }}
+                    {{
+                      Math.floor(StationinformationData?.mxztmap?.fd_slnum) || 0
+                    }}
                   </div>
                 </div>
                 <div class="type-model">
                   <div class="type-name" style="color: #606769">离线</div>
                   <div class="type-num">
-                    {{ Math.floor(StationinformationData?.mxztmap?.fd_lxnum) || 0 }}
+                    {{
+                      Math.floor(StationinformationData?.mxztmap?.fd_lxnum) || 0
+                    }}
                   </div>
                 </div>
               </div>
@@ -992,43 +1002,57 @@
                 <div class="type-model">
                   <div class="type-name" style="color: #1d99ff">待机</div>
                   <div class="type-num">
-                    {{ Math.floor(StationinformationData?.mxztmap?.gf_djnum) || 0 }}
+                    {{
+                      Math.floor(StationinformationData?.mxztmap?.gf_djnum) || 0
+                    }}
                   </div>
                 </div>
                 <div class="type-model">
                   <div class="type-name" style="color: #05bb4c">运行</div>
                   <div class="type-num">
-                    {{ Math.floor(StationinformationData?.mxztmap?.gf_yxnum) || 0 }}
+                    {{
+                      Math.floor(StationinformationData?.mxztmap?.gf_yxnum) || 0
+                    }}
                   </div>
                 </div>
                 <div class="type-model">
                   <div class="type-name" style="color: #ba3237">故障</div>
                   <div class="type-num">
-                    {{ Math.floor(StationinformationData?.mxztmap?.gf_gznum) || 0 }}
+                    {{
+                      Math.floor(StationinformationData?.mxztmap?.gf_gznum) || 0
+                    }}
                   </div>
                 </div>
                 <div class="type-model">
                   <div class="type-name" style="color: #e17e23">检修</div>
                   <div class="type-num">
-                    {{ Math.floor(StationinformationData?.mxztmap?.gf_jxnum) || 0 }}
+                    {{
+                      Math.floor(StationinformationData?.mxztmap?.gf_jxnum) || 0
+                    }}
                   </div>
                 </div>
                 <div class="type-model">
                   <div class="type-name" style="color: #c531c7">限电</div>
                   <div class="type-num">
-                    {{ Math.floor(StationinformationData?.mxztmap?.gf_xdnum) || 0 }}
+                    {{
+                      Math.floor(StationinformationData?.mxztmap?.gf_xdnum) || 0
+                    }}
                   </div>
                 </div>
                 <div class="type-model">
                   <div class="type-name" style="color: #fff">受累</div>
                   <div class="type-num">
-                    {{ Math.floor(StationinformationData?.mxztmap?.gf_slnum) || 0 }}
+                    {{
+                      Math.floor(StationinformationData?.mxztmap?.gf_slnum) || 0
+                    }}
                   </div>
                 </div>
                 <div class="type-model">
                   <div class="type-name" style="color: #606769">离线</div>
                   <div class="type-num">
-                    {{ Math.floor(StationinformationData?.mxztmap?.gf_lxnum) || 0 }}
+                    {{
+                      Math.floor(StationinformationData?.mxztmap?.gf_lxnum) || 0
+                    }}
                   </div>
                 </div>
               </div>
@@ -1459,9 +1483,9 @@ export default {
         wpId.includes("FDC") || wpId.includes("GDC") ? wpId : wpId + activeTab;
       this.requestData();
       this.findProjectPlan();
-        this.timmer = setInterval(() => {
-          this.requestData();
-        }, 5000);
+      this.timmer = setInterval(() => {
+        this.requestData();
+      }, 5000);
 
       this.timmer2 = setInterval(() => {
         this.findProjectPlan(); //发电量