Biao 3 years ago
parent
commit
4136e3e2f1

+ 1 - 0
.env.production

@@ -1 +1,2 @@
 VUE_APP_API=http://10.83.68.97:8020
+VUE_APP_Matrix=http://10.83.68.97:8170

+ 1 - 1
src/api/cockpit/matrix/index.js

@@ -166,7 +166,7 @@ const matrixMatrixByWpIdPush = (data) => {
 const monitorFindGeneralAppearance = (data) => {
     return request({
         baseURL: process.env.VUE_APP_Matrix,
-        url: `monitor/findGeneralAppearance?wpId=${data.wpId}`,
+        url: `monitor/findGeneralAppearance?wpId=${data.wpId}`, 
         method: "get",
     });
 };

+ 4 - 4
src/views/Home/components/map.vue

@@ -8,7 +8,7 @@
         <span class="unit">天</span>
       </div>
     </div>
-    <div class="tab-box" v-if="currentMode == 'NX'">
+    <!-- <div class="tab-box" v-if="currentMode == 'NX'">
       <div
         class="tab-item"
         v-for="(tab, index) of tabs"
@@ -24,7 +24,7 @@
         </span>
         <span>{{ tab.text }}</span>
       </div>
-    </div>
+    </div> -->
     <div class="name-box" v-if="currentMode != 'NX'">
       <div class="name-box-title" @click="onBackStation">{{ currentTitle }}</div>
       <div class="name-box-period" v-show="currentPeriod != 'ZERO'">
@@ -123,7 +123,7 @@
       <!-- 崇礼风电场 -->
       <CLFDC v-if="mapName === 'CL_FDC'" :data="sourceMap" @clickFj="clickFj" @changePeriod="changePeriod" ></CLFDC>
 	  
-      <!-- 康风电场 -->
+      <!-- 康风电场 -->
       <KBFDC v-if="mapName === 'KB_FDC'" :data="sourceMap" @clickFj="clickFj" @changePeriod="changePeriod" ></KBFDC>
 	  
       <!-- 代县风电场 -->
@@ -142,7 +142,7 @@ import SvgMapNX from "./map/svg-map-nx.vue";
 
 // 崇礼风电场
 import CLFDC from "./map/CL_FDC.vue";
-// 康风电场
+// 康风电场
 import KBFDC from "./map/KB_FDC.vue";
 // 代县风电场
 import DXFDC from "./map/DX_FDC.vue";

+ 37 - 37
src/views/Home/components/map/KB_FDC.vue

@@ -118,7 +118,7 @@
         fill="#119933"
         opacity="0"
         class="map-float"
-        data-period="KB04_GC,康四期"
+        data-period="KB04_GC,康四期"
       />
       <!--  -->
       <path
@@ -126,7 +126,7 @@
         fill="#119933"
         opacity="0"
         class="map-float"
-        data-period="KB01_GC,康一期"
+        data-period="KB01_GC,康一期"
       />
 
       <path
@@ -134,7 +134,7 @@
         fill="#119933"
         opacity="0"
         class="map-float"
-        data-period="KB03_GC,康三期"
+        data-period="KB03_GC,康三期"
       />
 
       <path
@@ -142,13 +142,13 @@
         fill="#119933"
         opacity="0"
         class="map-float"
-        data-period="KB02_GC,康二期"
+        data-period="KB02_GC,康二期"
       />
-      <!-- 康一期 -->
+      <!-- 康一期 -->
       <g
         class="item-label"
         v-if="activeId === 'all' || activeId === 'KB01_GC'"
-        @click.stop="clickFj('KB01_XL', '康01#')"
+        @click.stop="clickFj('KB01_XL', '康01#')"
       >
         <use xlink:href="#nx-map-line" x="179" y="127" />
         <use xlink:href="#nx-map-circle" x="179" y="127" />
@@ -169,7 +169,7 @@
       <g
         class="item-label"
        v-if="activeId === 'all' || activeId === 'KB01_GC'"
-        @click.stop="clickFj('KB02_XL', '康02#')"
+        @click.stop="clickFj('KB02_XL', '康02#')"
       >
         <use xlink:href="#nx-map-line" x="178" y="59" />
         <use xlink:href="#nx-map-circle" x="178 " y="59" />
@@ -190,7 +190,7 @@
       <g
         class="item-label"
         v-if="activeId === 'all' || activeId === 'KB01_GC'"
-        @click.stop="clickFj('KB03_XL', '康03#')"
+        @click.stop="clickFj('KB03_XL', '康03#')"
       >
         <use xlink:href="#nx-map-line" x="165" y="12" />
         <use xlink:href="#nx-map-circle" x="165 " y="12" />
@@ -223,15 +223,15 @@
         fill="#ffffff"
         font-size="14"
         class="curStyle"
-        @click.stop="changeshowType('KB01_GC', '康一期')"
+        @click.stop="changeshowType('KB01_GC', '康一期')"
       >
         一期
       </text>
-      <!-- 康二期 -->
+      <!-- 康二期 -->
           <g
         class="item-label"
         v-if="activeId === 'all' || activeId === 'KB02_GC'"
-        @click.stop="clickFj('KB04_XL', '康4#')"
+        @click.stop="clickFj('KB04_XL', '康4#')"
       >
         <use xlink:href="#nx-map-line" x="72" y="136" />
         <use xlink:href="#nx-map-circle" x="72" y="136" />
@@ -252,7 +252,7 @@
       <g
         class="item-label"
         v-if="activeId === 'all' || activeId === 'KB02_GC'"
-        @click.stop="clickFj('KB05_XL', '康5#')"
+        @click.stop="clickFj('KB05_XL', '康5#')"
       >
         <use xlink:href="#nx-map-line" x="62" y="58" />
         <use xlink:href="#nx-map-circle" x="62" y="58" />
@@ -273,7 +273,7 @@
        <g
         class="item-label"
          v-if="activeId === 'all' || activeId === 'KB02_GC'"
-        @click.stop="clickFj('KB06_XL', '康6#')"
+        @click.stop="clickFj('KB06_XL', '康6#')"
       >
         <use xlink:href="#nx-map-line" x="86" y="35" />
         <use xlink:href="#nx-map-circle" x="86" y="35" />
@@ -306,15 +306,15 @@
         fill="#ffffff"
         font-size="14"
         class="curStyle"
-        @click.stop="changeshowType('KB02_GC', '康二期')"
+        @click.stop="changeshowType('KB02_GC', '康二期')"
       >
        二期
       </text>
-      <!-- 康三期 -->
+      <!-- 康三期 -->
      <g
         class="item-label"
         v-if="activeId === 'all' || activeId === 'KB03_GC'"
-        @click.stop="clickFj('KB07_XL', '康07#')"
+        @click.stop="clickFj('KB07_XL', '康07#')"
       >
         <use xlink:href="#nx-map-line" x="40" y="200" />
         <use xlink:href="#nx-map-circle" x="40" y="200" />
@@ -336,7 +336,7 @@
      <g
         class="item-label"
         v-if="activeId === 'all' || activeId === 'KB03_GC'"
-        @click.stop="clickFj('KB08_XL', '康08#')"
+        @click.stop="clickFj('KB08_XL', '康08#')"
       >
         <use xlink:href="#nx-map-line" x="82" y="240" />
         <use xlink:href="#nx-map-circle" x="82" y="240" />
@@ -358,7 +358,7 @@
      <g
         class="item-label"
         v-if="activeId === 'all' || activeId === 'KB03_GC'"
-        @click.stop="clickFj('KB09_XL', '康09#')"
+        @click.stop="clickFj('KB09_XL', '康09#')"
       >
         <use xlink:href="#nx-map-line" x="125" y="230" />
         <use xlink:href="#nx-map-circle" x="125" y="230" />
@@ -392,15 +392,15 @@
         fill="#ffffff"
         font-size="14"
         class="curStyle"
-        @click.stop="changeshowType('KB03_GC', '康三期')"
+        @click.stop="changeshowType('KB03_GC', '康三期')"
       >
        三期
       </text>
-  <!-- 康四期 -->
+  <!-- 康四期 -->
  <g
         class="item-label"
         v-if="activeId === 'all' || activeId === 'KB04_GC'"
-        @click.stop="clickFj('KB10_XL', '康10#')"
+        @click.stop="clickFj('KB10_XL', '康10#')"
       >
         <use xlink:href="#nx-map-line" x="170" y="220" />
         <use xlink:href="#nx-map-circle" x="170" y="220" />
@@ -421,7 +421,7 @@
  <g
         class="item-label"
         v-if="activeId === 'all' || activeId === 'KB04_GC'"
-        @click.stop="clickFj('KB11_XL', '康11#')"
+        @click.stop="clickFj('KB11_XL', '康11#')"
       >
         <use xlink:href="#nx-map-line" x="230" y="180" />
         <use xlink:href="#nx-map-circle" x="230" y="180" />
@@ -442,7 +442,7 @@
  <g
         class="item-label"
         v-if="activeId === 'all' || activeId === 'KB04_GC'"
-        @click.stop="clickFj('KB12_XL', '康12#')"
+        @click.stop="clickFj('KB12_XL', '康12#')"
       >
         <use xlink:href="#nx-map-line" x="327" y="140" />
         <use xlink:href="#nx-map-circle" x="327" y="140" />
@@ -464,7 +464,7 @@
  <g
         class="item-label"
         v-if="activeId === 'all' || activeId === 'KB04_GC'"
-        @click.stop="clickFj('KB13_XL', '康13#')"
+        @click.stop="clickFj('KB13_XL', '康13#')"
       >
         <use xlink:href="#nx-map-line" x="365 " y="180" />
         <use xlink:href="#nx-map-circle" x="365" y="180" />
@@ -486,7 +486,7 @@
  <g
         class="item-label"
         v-if="activeId === 'all' || activeId === 'KB04_GC'"
-        @click.stop="clickFj('KB14_XL', '康14#')"
+        @click.stop="clickFj('KB14_XL', '康14#')"
       >
         <use xlink:href="#nx-map-line" x="454 " y="50" />
         <use xlink:href="#nx-map-circle" x="454" y="50" />
@@ -508,7 +508,7 @@
  <g
         class="item-label"
         v-if="activeId === 'all' || activeId === 'KB04_GC'"
-        @click.stop="clickFj('KB15_XL', '康15#')"
+        @click.stop="clickFj('KB15_XL', '康15#')"
       >
         <use xlink:href="#nx-map-line" x="345 " y="20" />
         <use xlink:href="#nx-map-circle" x="345" y="20" />
@@ -530,7 +530,7 @@
  <g
         class="item-label"
         v-if="activeId === 'all' || activeId === 'KB04_GC'"
-        @click.stop="clickFj('KB16_XL', '康16#')"
+        @click.stop="clickFj('KB16_XL', '康16#')"
       >
         <use xlink:href="#nx-map-line" x="415 " y="145" />
         <use xlink:href="#nx-map-circle" x="415" y="145" />
@@ -552,7 +552,7 @@
  <g
         class="item-label"
         v-if="activeId === 'all' || activeId === 'KB04_GC'"
-        @click.stop="clickFj('KB17_XL', '康17#')"
+        @click.stop="clickFj('KB17_XL', '康17#')"
       >
         <use xlink:href="#nx-map-line" x="488 " y="25" />
         <use xlink:href="#nx-map-circle" x="488" y="25" />
@@ -574,7 +574,7 @@
  <g
         class="item-label"
         v-if="activeId === 'all' || activeId === 'KB04_GC'"
-        @click.stop="clickFj('KB18_XL', '康18#')"
+        @click.stop="clickFj('KB18_XL', '康18#')"
       >
         <use xlink:href="#nx-map-line" x="435 " y="8" />
         <use xlink:href="#nx-map-circle" x="435" y="8" />
@@ -596,7 +596,7 @@
  <g
         class="item-label"
         v-if="activeId === 'all' || activeId === 'KB04_GC'"
-        @click.stop="clickFj('KB19_XL', '康19#')"
+        @click.stop="clickFj('KB19_XL', '康19#')"
       >
         <use xlink:href="#nx-map-line" x="320 " y="90" />
         <use xlink:href="#nx-map-circle" x="320" y="90" />
@@ -618,7 +618,7 @@
  <g
         class="item-label"
         v-if="activeId === 'all' || activeId === 'KB04_GC'"
-        @click.stop="clickFj('KB20_XL', '康20#')"
+        @click.stop="clickFj('KB20_XL', '康20#')"
       >
         <use xlink:href="#nx-map-line" x="260 " y="80" />
         <use xlink:href="#nx-map-circle" x="260" y="80" />
@@ -640,7 +640,7 @@
  <g
         class="item-label"
         v-if="activeId === 'all' || activeId === 'KB04_GC'"
-        @click.stop="clickFj('KB21_XL', '康21#')"
+        @click.stop="clickFj('KB21_XL', '康21#')"
       >
         <use xlink:href="#nx-map-line" x="375 " y="50" />
         <use xlink:href="#nx-map-circle" x="375" y="50" />
@@ -674,7 +674,7 @@
         fill="#ffffff"
         font-size="14"
         class="curStyle"
-        @click.stop="changeshowType('KB04_GC', '康四期')"
+        @click.stop="changeshowType('KB04_GC', '康四期')"
       >
         四期
       </text>
@@ -718,11 +718,11 @@ export default {
     changeshowType(id, planBtnName) {
       this.activeId = id;
       this.$emit("clickFj", id, planBtnName);
-      this.$emit("changePeriod", "康", planBtnName.substring(planBtnName.length - 2),1);
+      this.$emit("changePeriod", "康", planBtnName.substring(planBtnName.length - 2),1);
     },
     clickFj(id, planBtnName) {
       this.$emit("clickFj", id, planBtnName);
-      this.$emit("changePeriod", "康", planBtnName.substring(planBtnName.length - 3));
+      this.$emit("changePeriod", "康", planBtnName.substring(planBtnName.length - 3));
     },
     click: function (id) {
       this.activeId = id;
@@ -751,7 +751,7 @@ export default {
           elsImage[index].style.display = "block";
           let period = this.getAttribute("data-period");
           let strs = period.split(",");
-          that.$emit("changePeriod", "康", strs[1].substring(strs[1].length - 2),1);
+          that.$emit("changePeriod", "康", strs[1].substring(strs[1].length - 2),1);
           that.changeshowType(strs[0], strs[1]);
           that.$emit("clickFj", strs[0], strs[1]);
           this.style.opacity = 0;
@@ -782,7 +782,7 @@ export default {
     // 绑定事件
     this.initMapFloat();
     // 切换名称
-    this.$emit("changePeriod", "康", "ZERO");
+    this.$emit("changePeriod", "康", "ZERO");
   },
   watch: {
     data(res) {

+ 2 - 2
src/views/Home/components/map/svg-map-nx.vue

@@ -272,7 +272,7 @@
             <g
               v-if="showType === 'all' || showType === 'fc'"
               class="item-label"
-              @click.stop="clickLabel('KB_FDC', '康风电场')"
+              @click.stop="clickLabel('KB_FDC', '康风电场')"
               @mouseover="mouseover(1)"
               @mouseout="mouseout"
             >
@@ -288,7 +288,7 @@
                 opacity="0.8"
               />
               <text class="mapKey" x="260" y="70" fill="#919697" font-size="12">
-                康
+                康
               </text>
               <text
                 class="mapValue"