Browse Source

2023-01-30 update

1. sis 埃肯变压站图  调整右侧日发电量Kw/h中  Kw/h往右挪一挪
2. generalappearance/AK_GDC   对接其中风机点位信息
3. #/monitor/windsite/inverter-info/HZJ_GDC/HZJ01_02 左侧风机状态为灰色时,看不清显示.   同时在详情状态字段: 要改为对应中文
moccus 2 years ago
parent
commit
590d3c7ea9

+ 4 - 0
src/assets/styles/color.less

@@ -14,6 +14,10 @@
   background: @blue;
 }
 
+.bg-gray {
+  background: @font-color;
+}
+
 .bg-pink {
   background: @pink;
 }

+ 4 - 4
src/views/WindSite/components/boosterstation/ak.vue

@@ -4304,7 +4304,7 @@
           </text>
           <text
             x="1270.58"
-            y="213.95"
+            y="216.95"
             fill="rgba(41, 238, 14, 1)"
             id="76fa5ce9"
             topologyid="76fa5ce9"
@@ -4321,7 +4321,7 @@
           </text>
           <text
             x="1270.46"
-            y="249.57"
+            y="255.57"
             fill="rgba(41, 238, 14, 1)"
             id="714341c7"
             topologyid="714341c7"
@@ -4337,7 +4337,7 @@
           {{ (ajaxData.akljfdl/1).toFixed(0) }}
           </text>
           <text
-            x="1338.73"
+            x="1388.73"
             y="215.08"
             fill="rgba(255, 255, 255, 1)"
             id="0eb60ce"
@@ -4354,7 +4354,7 @@
             Kw/h
           </text>
           <text
-            x="1339.76"
+            x="1389.76"
             y="255.65"
             fill="rgba(255, 255, 255, 1)"
             id="45cc9b58"

+ 128 - 1
src/views/WindSite/components/generalappearance/ak.vue

@@ -4,7 +4,7 @@
 			<el-col :span="24">
 				<previewPicture v-if="datas">
 					<template v-slot:svg>
-						<svg class="svg" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" id="图层_1" x="0px" y="0px" width="1111.711px" height="550.14px" viewBox="0 0 1111.711 550.14" enable-background="new 0 0 1111.711 550.14" xml:space="preserve">
+						<svg class="svg" style="transform:scale(2) translateY(200px) translateX(50px);" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" id="图层_1" x="0px" y="0px" width="1111.711px" height="550.14px" viewBox="0 0 1111.711 550.14" enable-background="new 0 0 1111.711 550.14" xml:space="preserve">
 						<g id="other">
 							<g>
 								<polygon fill="#B21F63" points="496.003,29.538 502.73400,4.413 509.465,29.538   "/>
@@ -222,6 +222,133 @@
 							<rect x="495.033" y="89.119" fill="#02A434" width="16.937" height="30.677"/>
 							<!-- <rect x="494.721" y="323.04" fill="#02A434" width="16.937" height="30.677"/> -->
 						</g>
+						<g id="data">
+
+							<!-- <text transform="matrix(0.9357 0 0 1 464.0218 167.3525)" fill="#929CA0" font-family="'MicrosoftYaHei'" font-size="2.3134">kw</text>
+							<text transform="matrix(0.9357 0 0 1 464.0218 171.9033)" fill="#929CA0" font-family="'MicrosoftYaHei'" font-size="2.3134">V</text>
+							<text transform="matrix(0.9357 0 0 1 464.0218 176.4531) -->
+							<g id="_x23_1">
+								<g>
+									<text transform="matrix(1 0 0 1 454.0218 167.3525)" fill="#3B8646" font-family="'MicrosoftYaHei'" font-size="2.3134">{{datas[0].gl}}</text>
+								</g>
+								<g>
+									<text transform="matrix(1 0 0 1 454.0218 171.9033)" fill="#3B8646" font-family="'MicrosoftYaHei'" font-size="2.3134">{{datas[0].fdl}}</text>
+								</g>
+								<g>
+									<text transform="matrix(1 0 0 1 454.0218 176.4531)" fill="#3B8646" font-family="'MicrosoftYaHei'" font-size="2.3134">{{datas[0].fs}}</text>
+								</g>
+							</g>
+							<g id="_x23_2">
+								<g>
+									<text transform="matrix(1 0 0 1 485.6522 167.3525)" fill="#3B8646" font-family="'MicrosoftYaHei'" font-size="2.3134">{{datas[1].gl}}</text>
+								</g>
+								<g>
+									<text transform="matrix(1 0 0 1 485.6522 171.9033)" fill="#3B8646" font-family="'MicrosoftYaHei'" font-size="2.3134">{{datas[1].fdl}}</text>
+								</g>
+								<g>
+									<text transform="matrix(1 0 0 1 485.6522 176.4531)" fill="#3B8646" font-family="'MicrosoftYaHei'" font-size="2.3134">{{datas[1].fs}}</text>
+								</g>
+							</g>
+							<g id="_x23_3">
+								<g>
+									<text transform="matrix(1 0 0 1 516.6097 167.3525)" fill="#3B8646" font-family="'MicrosoftYaHei'" font-size="2.3134">{{datas[2].gl}}</text>
+								</g>
+								<g>
+									<text transform="matrix(1 0 0 1 516.6097 171.9033)" fill="#3B8646" font-family="'MicrosoftYaHei'" font-size="2.3134">{{datas[2].fdl}}</text>
+								</g>
+								<g>
+									<text transform="matrix(1 0 0 1 516.6097 176.4531)" fill="#3B8646" font-family="'MicrosoftYaHei'" font-size="2.3134">{{datas[2].fs}}</text>
+								</g>
+							</g>
+							<g id="_x23_4">
+								<g>
+									<text transform="matrix(1 0 0 1 547.5081 167.3525)" fill="#3B8646" font-family="'MicrosoftYaHei'" font-size="2.3134">{{datas[3].gl}}</text>
+								</g>
+								<g>
+									<text transform="matrix(1 0 0 1 547.5081 171.9033)" fill="#3B8646" font-family="'MicrosoftYaHei'" font-size="2.3134">{{datas[3].fdl}}</text>
+								</g>
+								<g>
+									<text transform="matrix(1 0 0 1 547.5081 176.4531)" fill="#3B8646" font-family="'MicrosoftYaHei'" font-size="2.3134">{{datas[3].fs}}</text>
+								</g>
+							</g>
+							<g id="_x23_5">
+								<g>
+									<text transform="matrix(1 0 0 1 453.9871 197.3076)" fill="#3B8646" font-family="'MicrosoftYaHei'" font-size="2.3134">{{datas[4].gl}}</text>
+								</g>
+								<g>
+									<text transform="matrix(1 0 0 1 453.9871 201.8574)" fill="#3B8646" font-family="'MicrosoftYaHei'" font-size="2.3134">{{datas[4].fdl}}</text>
+								</g>
+								<g>
+									<text transform="matrix(1 0 0 1 453.9871 206.4072)" fill="#3B8646" font-family="'MicrosoftYaHei'" font-size="2.3134">{{datas[4].fs}}</text>
+								</g>
+							</g>
+							<g id="_x23_6">
+								<g>
+									<text transform="matrix(1 0 0 1 485.6175 197.3076)" fill="#3B8646" font-family="'MicrosoftYaHei'" font-size="2.3134">{{datas[5].gl}}</text>
+								</g>
+								<g>
+									<text transform="matrix(1 0 0 1 485.6175 201.8574)" fill="#3B8646" font-family="'MicrosoftYaHei'" font-size="2.3134">{{datas[5].fdl}}</text>
+								</g>
+								<g>
+									<text transform="matrix(1 0 0 1 485.6175 206.4072)" fill="#3B8646" font-family="'MicrosoftYaHei'" font-size="2.3134">{{datas[5].fs}}</text>
+								</g>
+							</g>
+							<g id="_x23_7">
+								<g>
+									<text transform="matrix(1 0 0 1 517.2479 197.3076)" fill="#3B8646" font-family="'MicrosoftYaHei'" font-size="2.3134">{{datas[6].gl}}</text>
+								</g>
+								<g>
+									<text transform="matrix(1 0 0 1 517.2479 201.8574)" fill="#3B8646" font-family="'MicrosoftYaHei'" font-size="2.3134">{{datas[6].fdl}}</text>
+								</g>
+								<g>
+									<text transform="matrix(1 0 0 1 517.2479 206.4072)" fill="#3B8646" font-family="'MicrosoftYaHei'" font-size="2.3134">{{datas[6].fs}}</text>
+								</g>
+							</g>
+							<g id="_x23_8">
+								<g>
+									<text transform="matrix(1 0 0 1 548.8783 197.3076)" fill="#3B8646" font-family="'MicrosoftYaHei'" font-size="2.3134">{{datas[7].gl}}</text>
+								</g>
+								<g>
+									<text transform="matrix(1 0 0 1 548.8783 201.8574)" fill="#3B8646" font-family="'MicrosoftYaHei'" font-size="2.3134">{{datas[7].fdl}}</text>
+								</g>
+								<g>
+									<text transform="matrix(1 0 0 1 548.8783 206.4072)" fill="#3B8646" font-family="'MicrosoftYaHei'" font-size="2.3134">{{datas[7].fs}}</text>
+								</g>
+							</g>
+							<g id="_x23_9">
+								<g>
+									<text transform="matrix(1 0 0 1 453.9871 226.8438)" fill="#3B8646" font-family="'MicrosoftYaHei'" font-size="2.3134">{{datas[8].gl}}</text>
+								</g>
+								<g>
+									<text transform="matrix(1 0 0 1 453.9871 231.3945)" fill="#3B8646" font-family="'MicrosoftYaHei'" font-size="2.3134">{{datas[8].fdl}}</text>
+								</g>
+								<g>
+									<text transform="matrix(1 0 0 1 453.9871 235.9443)" fill="#3B8646" font-family="'MicrosoftYaHei'" font-size="2.3134">{{datas[8].fs}}</text>
+								</g>
+							</g>
+							<g id="_x23_10">
+								<g>
+									<text transform="matrix(1 0 0 1 485.617 226.8438)" fill="#3B8646" font-family="'MicrosoftYaHei'" font-size="2.3134">{{datas[9].gl}}</text>
+								</g>
+								<g>
+									<text transform="matrix(1 0 0 1 485.617 231.3945)" fill="#3B8646" font-family="'MicrosoftYaHei'" font-size="2.3134">{{datas[9].fdl}}</text>
+								</g>
+								<g>
+									<text transform="matrix(1 0 0 1 485.617 235.9443)" fill="#3B8646" font-family="'MicrosoftYaHei'" font-size="2.3134">{{datas[9].fs}}</text>
+								</g>
+							</g>
+							<g id="_x23_11">
+								<g>
+									<text transform="matrix(1 0 0 1 516.5736 226.8438)" fill="#3B8646" font-family="'MicrosoftYaHei'" font-size="2.3134">{{datas[10].gl}}</text>
+								</g>
+								<g>
+									<text transform="matrix(1 0 0 1 516.5736 231.3945)" fill="#3B8646" font-family="'MicrosoftYaHei'" font-size="2.3134">{{datas[10].fdl}}</text>
+								</g>
+								<g>
+									<text transform="matrix(1 0 0 1 516.5736 235.9443)" fill="#3B8646" font-family="'MicrosoftYaHei'" font-size="2.3134">{{datas[10].fs}}</text>
+								</g>
+							</g>
+						</g>
 						</svg>
 					</template>
 				</previewPicture>

+ 1 - 0
src/views/WindSite/components/generalappearance/hzj.vue

@@ -5166,6 +5166,7 @@
 				for (let key in data) {
 					// 渲染开关
 					const item = data[key];
+					console.log(key)
 					if (key === "hzj105") {
 						switchDom.eq(0).attr("fill", item ? this.green : this.red);
 					} else if (key === "hzj361") {

+ 26 - 22
src/views/WindSite/components/previewPicture.vue

@@ -159,34 +159,35 @@ export default {
         let maxWidth = MaxWidth;
         //  显示时 初始 最大高度
         let maxHeight = MaxHeight;
+        const path = e.path || (e.composedPath && e.composedPath());
         if (
-          e.path[0].naturalWidth <= maxWidth &&
-          e.path[0].naturalHeight <= maxHeight
+          path[0].naturalWidth <= maxWidth &&
+          path[0].naturalHeight <= maxHeight
         ) {
-          _this[StrWidth] = e.path[0].naturalWidth + "px";
-          _this[StrHeight] = e.path[0].naturalHeight + "px";
+          _this[StrWidth] = path[0].naturalWidth + "px";
+          _this[StrHeight] = path[0].naturalHeight + "px";
         } else {
-          _this[StrWidth] = e.path[0].naturalWidth + "px";
-          _this[StrHeight] = e.path[0].naturalHeight + "px";
+          _this[StrWidth] = path[0].naturalWidth + "px";
+          _this[StrHeight] = path[0].naturalHeight + "px";
           if (
-            e.path[0].naturalWidth > maxWidth &&
-            e.path[0].naturalHeight <= maxHeight
+            path[0].naturalWidth > maxWidth &&
+            path[0].naturalHeight <= maxHeight
           ) {
-            let ratio = e.path[0].naturalWidth / e.path[0].naturalHeight;
+            let ratio = path[0].naturalWidth / path[0].naturalHeight;
             _this[StrWidth] = "1600px";
             _this[StrHeight] = maxWidth / ratio + "px";
           } else if (
-            e.path[0].naturalWidth <= maxWidth &&
-            e.path[0].naturalHeight > maxHeight
+            path[0].naturalWidth <= maxWidth &&
+            path[0].naturalHeight > maxHeight
           ) {
-            let ratio = e.path[0].naturalWidth / e.path[0].naturalHeight;
+            let ratio = path[0].naturalWidth / path[0].naturalHeight;
             _this[StrWidth] = maxHeight * ratio + "px";
             _this[StrHeight] = "800px";
           } else if (
-            e.path[0].naturalWidth > maxWidth &&
-            e.path[0].naturalHeight > maxHeight
+            path[0].naturalWidth > maxWidth &&
+            path[0].naturalHeight > maxHeight
           ) {
-            let ratio = e.path[0].naturalWidth / e.path[0].naturalHeight;
+            let ratio = path[0].naturalWidth / path[0].naturalHeight;
             let w = maxWidth;
             let h = w / ratio;
             if (h > maxHeight) {
@@ -260,7 +261,8 @@ export default {
         var oldHeight = this.offsetHeight;
         var oldLeft = this.offsetLeft;
         var oldTop = this.offsetTop;
-        var parent = oEvent.path[2];
+        const path = oEvent.path || (oEvent.composedPath && oEvent.composedPath());
+        var parent = path[2];
         // 获取父元素距离页面可视区域的位置
         var parentLeft = parent.getBoundingClientRect().left;
         var parentTop = parent.getBoundingClientRect().top;
@@ -361,8 +363,9 @@ export default {
           isdrag = true;
           oDragObj = oDragHandle;
           // 父元素宽高
-          let width = e.path[2].offsetWidth;
-          let height = e.path[2].offsetHeight;
+          const path = e.path || (e.composedPath && e.composedPath());
+          let width = path[2].offsetWidth;
+          let height = path[2].offsetHeight;
           // 这里判断第一次获取不到style 样式 默认为 居中50%
           if (oDragObj.style.top == "") {
             nTY = 0;
@@ -418,9 +421,9 @@ export default {
         if (isdrag) {
           this.equipmentKey = key;
           // console.log("thisequipmentKey", this.equipmentKey);
-
-          let widthItem = e.path[1].style.width.split("p");
-          let heightItem = e.path[1].style.height.split("p");
+          const path = e.path || (e.composedPath && e.composedPath());
+          let widthItem = path[1].style.width.split("p");
+          let heightItem = path[1].style.height.split("p");
           let width = widthItem[0];
           // eslint-disable-next-line no-unused-vars
           let height = heightItem[0];
@@ -464,7 +467,8 @@ export default {
           isdrag = true;
           oDragObj = oDragHandle;
           // 父元素宽高
-          let width = e.path[1].offsetWidth;
+          const path = e.path || (e.composedPath && e.composedPath());
+          let width = path[1].offsetWidth;
           // let height = e.path[1].offsetHeight;
           // console.log(width, height);
           // console.log("oDragObj.style", oDragObj.style);

+ 22 - 1
src/views/WindSite/pages/Inverter-Info.vue

@@ -24,7 +24,8 @@
             <div class="other">逆变器型号:{{info.modelid}}</div>
             <div class="state">
               状态:
-              <div class="dot" :class="stateColor"></div>
+              <!-- <div class="dot" :class="stateColor"></div> -->
+              <div :class="stateColor">{{statusDesc}}</div>
             </div>
           </div>
           <!-- <div class="title-tools">
@@ -110,6 +111,7 @@ export default {
       warnCount: 0,
       diOn: [],
       info: {},
+      statusDesc: '运行',
       stateColor: "blue",
       list: {
         title: "逆变器列表",
@@ -246,6 +248,7 @@ export default {
         });
       }
       that.stateColor = that.getColor(ztmap[that.wtId]);
+      that.statusDesc = that.getDesc(ztmap[that.wtId])
       if (this.WindSites) {
         this.WindSites.forEach(function(ws) {
           if (ws.children) {
@@ -273,6 +276,24 @@ export default {
         case 6:
           return "write";
       }
+    },
+    getDesc(fjzt) {
+      switch (fjzt) {
+        case 0:
+          return "待机";
+        case 1:
+          return "运行";
+        case 2:
+          return "故障";
+        case 3:
+          return "中断";
+        case 4:
+          return "维护";
+        case 5:
+          return "限电";
+        case 6:
+          return "受累";
+      }
     }
   },
   // 生命周期钩子