Browse Source

Merge branch 'yx' of http://61.161.152.110:10101/r/electronic-map into yx

Koishi 3 years ago
parent
commit
f6e1697255
1 changed files with 69 additions and 52 deletions
  1. 69 52
      src/components/other/healthReport/index.vue

+ 69 - 52
src/components/other/healthReport/index.vue

@@ -96,15 +96,33 @@
                   Number(healthreport.mttf).toFixed(1)
                 }}小时,MTBF为{{ Number(healthreport.mtbf).toFixed(1) }}小时。
               </p>
-              <p>统计期内故障发生193次</p>
-              <p class="red">机舱振动类故障频次为78次</p>
-              <p class="red">液压类故障频次为62次</p>
-              <p class="red">电网监测类故障频次为53次</p>
-              <p class="purple">隐患集中在传动链、齿轮箱、主轴</p>
-              <p class="info">功率对部件温度影响较高是齿轮箱、主轴、塔底柜</p>
-              <p class="info">部件劣化较高是齿轮箱、变桨、主轴</p>
+              <p>
+                统计期内故障发生{{
+                  Number(faultclass[0] ? faultclass[0].monthwarningnum : 0) + 
+                  Number(faultclass[1] ? faultclass[1].monthwarningnum : 0) +
+                  Number(faultclass[2] ? faultclass[2].monthwarningnum : 0)
+                }}次
+              </p>
+              <p class="red" v-if="faultclass[0]">
+                {{ faultclass[0].warningtype }}频次为{{
+                  faultclass[0].monthwarningnum
+                }}次
+              </p>
+              <p class="red" v-if="faultclass[1]">
+                {{ faultclass[1].warningtype }}频次为{{
+                  faultclass[1].monthwarningnum
+                }}次
+              </p>
+              <p class="purple">
+                隐患集中在{{ yhmxdbs2[0] }}、{{ yhmxdbs2[1] }}、{{
+                  yhmxdbs2[2]
+                }}
+              </p>
+              <p class="info">功率对部件温度影响较高是齿轮箱、主轴</p>
+              <p class="info">部件劣化较高是发电机、主轴</p>
               <p>定捡已超过三个月,近三个月无维修记录</p>
-              <p>该机组总体运行状态{{ jczbmap.jkqksm }}</p>
+              <p v-if="String(healthreport.pjzw).indexOf('差') != -1">该机组总体运行状态{{ healthreport.pjzw }}可安排检修人员排查。</p>
+              <p v-else>该机组总体运行状态{{ healthreport.pjzw }},不需要作为重点关注。</p>
             </div>
           </el-form>
         </div>
@@ -422,7 +440,7 @@
           >
           <el-form-item class="imp fw">总览:</el-form-item>
           <el-form-item class="text-indent-2"
-            >统计周期内,发电机劣化频次为0次,齿轮箱劣化频次为0次;变桨劣化频次为0次;主轴劣化频次为1次。
+            >统计周期内,发电机劣化频次为1次,齿轮箱劣化频次为0次;变桨劣化频次为0次;主轴劣化频次为1次。
           </el-form-item>
           <div class="logHead">部件劣化频次总览</div>
           <el-table
@@ -1041,6 +1059,7 @@ export default {
       bjyhdbs: [],
       // 隐患模型对比
       yhmxdbs: [],
+      yhmxdbs2: [],
       // 故障分类
       faultclass: [],
       // 设备可利用率
@@ -1293,7 +1312,7 @@ export default {
           df: "0.79",
         },
         {
-          gjcs: "主轴承温度",
+          gjcs: "主轴承油脂启动时间间隔",
           edz: "",
           yxfw: "<500",
           qz: "0.15",
@@ -1313,26 +1332,26 @@ export default {
         {
           sjzq: "近1天",
           fdj: "1",
-          clx: "1",
-          bj: "1",
+          clx: "0",
+          bj: "0",
           zz: "1",
-          zj: "4",
+          zj: "2",
         },
         {
           sjzq: "近3天",
           fdj: "1",
-          clx: "1",
-          bj: "1",
+          clx: "0",
+          bj: "0",
           zz: "1",
-          zj: "4",
+          zj: "2",
         },
         {
           sjzq: "统计期内",
           fdj: "1",
-          clx: "1",
-          bj: "1",
+          clx: "0",
+          bj: "0",
           zz: "1",
-          zj: "4",
+          zj: "2",
         },
       ],
       // 变桨关键参数表格
@@ -1848,6 +1867,17 @@ export default {
                 }
               }
               that.yhmxdbs = ybmxdj;
+              that.yhmxdbs2 = [];
+              let yhmxdbs2 = ybmxdj.sort(that.compare("count"));
+              let part = "";
+              for (let item of yhmxdbs2) {
+                if (item.part != part) {
+                  part = item.part;
+                  that.yhmxdbs2.push(part);
+                }
+                if (that.yhmxdbs2.length == 3) break;
+              }
+              console.log(that.yhmxdbs2);
 
               // 部件隐患数据频次时长统计
               that.bjyhcount = [];
@@ -1997,32 +2027,9 @@ export default {
             }
 
             // 故障分类
-            that.faultclass = [];
-            that.faultclass = res.data.healthreport.faultclass;
-            that.faultclass.push({
-              ednavalue: null,
-              warningtype: "机舱震动类故障",
-              year: "2021",
-              month: "7",
-              monthwarningnum: 88,
-              monthwarningtime: 36,
-              monthonmonthnum: 52,
-              monthonmonthtime: 51,
-              yearoveryearnum: 23,
-              yearoveryeartime: 28,
-            });
-            that.faultclass.push({
-              ednavalue: null,
-              warningtype: "发电机故障",
-              year: "2021",
-              month: "7",
-              monthwarningnum: 0,
-              monthwarningtime: 0,
-              monthonmonthnum: 0,
-              monthonmonthtime: 0,
-              yearoveryearnum: 0,
-              yearoveryeartime: 0,
-            });
+            that.faultclass = res.data.healthreport.faultclass.sort(
+              that.compare("monthwarningnum")
+            );
 
             // 功率对部件温度影响
             that.partwds = [];
@@ -2038,6 +2045,16 @@ export default {
                 bj = "齿轮箱";
               } else if (item.part == "bj") {
                 bj = "变桨";
+              } else if (item.part.indexOf("ph")) {
+                bj = "偏航";
+              } else if (item.part == "bj") {
+                bj = "变桨";
+              } else if (item.part.indexOf("yy")) {
+                bj = "液压";
+              } else if (item.part.indexOf("cdl")) {
+                bj = "传动链";
+              } else if (item.part.indexOf("cf")) {
+                bj = "测风系统";
               }
 
               partwd.push({
@@ -2357,7 +2374,6 @@ export default {
         fail(err) {
           that.datas = {};
           that.healthreport = {};
-          that.bjzb = [];
         },
       });
     },
@@ -2375,17 +2391,18 @@ export default {
     },
     // 初始化评价展望
     randomInitDate() {
+      this.bjzb = [];
       let obj1 = {
         partname: "曲线偏差率(5-11m/s)",
-        q1yjkqk: (Math.random() * 15).toFixed(2),
-        q2yjkqk: (Math.random() * 15).toFixed(2),
-        q3yjkqk: (Math.random() * 15).toFixed(2),
+        q1yjkqk: (Math.random() * 5 + 6).toFixed(2),
+        q2yjkqk: (Math.random() * 5 + 6).toFixed(2),
+        q3yjkqk: (Math.random() * 5 + 6).toFixed(2),
       };
       let obj2 = {
         partname: "对风偏差率(5-11m/s)",
-        q1yjkqk: (Math.random() * 10).toFixed(2),
-        q2yjkqk: (Math.random() * 10).toFixed(2),
-        q3yjkqk: (Math.random() * 10).toFixed(2),
+        q1yjkqk: (Math.random() * 3 + 5).toFixed(2),
+        q2yjkqk: (Math.random() * 3 + 5).toFixed(2),
+        q3yjkqk: (Math.random() * 3 + 5).toFixed(2),
       };
       let obj3 = {
         partname: "小风切入",