mw_666 пре 3 година
родитељ
комит
91a8f9e479
1 измењених фајлова са 35 додато и 24 уклоњено
  1. 35 24
      src/components/other/healthReport/index.vue

+ 35 - 24
src/components/other/healthReport/index.vue

@@ -113,7 +113,7 @@
                   faultclass[1].monthwarningnum
                 }}次
               </p>
-              <p class="purple">
+              <p class="purple" v-if="yhmxdbs2.length > 0">
                 隐患集中在{{ yhmxdbs2[0] }}、{{ yhmxdbs2[1] }}、{{
                   yhmxdbs2[2]
                 }}
@@ -121,8 +121,8 @@
               <p class="info">功率对部件温度影响较高是齿轮箱、主轴</p>
               <p class="info">部件劣化较高是发电机、主轴</p>
               <p>定捡已超过三个月,近三个月无维修记录</p>
-              <p v-if="String(healthreport.pjzw).indexOf('差') != -1">该机组总体运行状态{{ healthreport.pjzw }}可安排检修人员排查。</p>
-              <p v-else>该机组总体运行状态{{ healthreport.pjzw }},不需要作为重点关注。</p>
+              <p v-if="Number(datas.isrecommend) == 1">该机组总体运行状态不佳,可安排检修人员排查。</p>
+              <p v-else>该机组总体运行状态良好,不需要作为重点关注。</p>
             </div>
           </el-form>
         </div>
@@ -253,7 +253,7 @@
               yhbjcount.tdgtime
             }}分钟。
           </el-form-item>
-          <el-form-item class="text-indent-2"
+          <el-form-item class="text-indent-2" v-if="bjyhcount.length > 0"
             >其中以{{ bjyhcount[0].yhmx }}发生频次最高,为{{
               bjyhcount[0].count
             }}次;{{ bjyhcount[1].yhmx }}次之,为{{ bjyhcount[1].count }}次;{{
@@ -395,16 +395,12 @@
 
       <div class="textBox">
         <el-form>
-          <el-form-item class="imp fw text-indent-2"
-            >功率对部件温度影响</el-form-item
-          >
-          <el-form-item class="text-indent-2"
-            >统计周期内,齿轮箱温度“900-1050”、
-            “1200-1350”大于平均值;主轴温度“450-600”、
-            “1200-1350”大于平均值。(只显示大于平均值的,没有就不显示,如果完全没有就显示在统计周期内,各个部件温度良好)
+          <el-form-item class="imp fw text-indent-2">功率对部件温度影响</el-form-item>
+          <el-form-item class="text-indent-2">
+			  统计周期内,{{partwdContent}}
           </el-form-item>
           <div class="logHead">
-            功率对部件温度影响统计(红字对比平均值高,绿字对比平均值低)
+            功率对部件温度影响统计
           </div>
           <el-table
             empty-text="暂无数据"
@@ -427,7 +423,7 @@
             <el-table-column prop="min750" label="750-900"></el-table-column>
             <el-table-column prop="min900" label="900-1050"></el-table-column>
             <el-table-column prop="min1050" label="1050-1200"></el-table-column>
-            <el-table-column prop="min1200" label="1200-1350"></el-table-column>
+            <el-table-column prop="min1200" label="1200-1350" class="red"></el-table-column>
             <el-table-column prop="min1350" label="1350-1500"></el-table-column>
           </el-table>
         </el-form>
@@ -439,8 +435,8 @@
             ><b>部件劣化状态</b></el-form-item
           >
           <el-form-item class="imp fw">总览:</el-form-item>
-          <el-form-item class="text-indent-2"
-            >统计周期内,发电机劣化频次为1次,齿轮箱劣化频次为0次;变桨劣化频次为0次;主轴劣化频次为1次。
+          <el-form-item class="text-indent-2">
+			  统计周期内,发电机劣化频次为1次,齿轮箱劣化频次为0次;变桨劣化频次为0次;主轴劣化频次为1次。
           </el-form-item>
           <div class="logHead">部件劣化频次总览</div>
           <el-table
@@ -1100,6 +1096,8 @@ export default {
       fnlyls: [],
       //功率对部件温度影响
       partwds: [],
+	  // 功率对部件温度影响的头部文字介绍
+	  partwdContent:[],
       // 性能评价
       xnpjjg: [],
       //性能评价明细
@@ -1877,20 +1875,21 @@ export default {
                 }
                 if (that.yhmxdbs2.length == 3) break;
               }
-              console.log(that.yhmxdbs2);
 
               // 部件隐患数据频次时长统计
-              that.bjyhcount = [];
               let ybmxdj1 = Object.assign([], ybmxdj);
               let ybmxdj2 = Object.assign([], ybmxdj);
               let array1 = ybmxdj1.sort(that.compare("count"));
               let array2 = ybmxdj2.sort(that.compare("times"));
-              that.bjyhcount.push(array1[0]);
-              that.bjyhcount.push(array1[1]);
-              that.bjyhcount.push(array1[2]);
-              that.bjyhcount.push(array2[0]);
-              that.bjyhcount.push(array2[1]);
-              that.bjyhcount.push(array2[2]);
+              if (array1.length > 0 && array2.length > 0){
+                that.bjyhcount = [];
+                that.bjyhcount.push(array1[0]);
+                that.bjyhcount.push(array1[1]);
+                that.bjyhcount.push(array1[2]);
+                that.bjyhcount.push(array2[0]);
+                that.bjyhcount.push(array2[1]);
+                that.bjyhcount.push(array2[2]);
+              }
             }
 
             //切入切出对比
@@ -2034,7 +2033,8 @@ export default {
             // 功率对部件温度影响
             that.partwds = [];
             let partwds = res.data.healthreport.partwds;
-            let partwd = [];
+            let partwd = [],
+				partwdContent = '';
             partwds.forEach((item, i) => {
               let bj = "";
               if (item.part == "zk") {
@@ -2071,7 +2071,17 @@ export default {
                 min1200: item.power == "1200kw-1350kw" ? item.value : 0,
                 min1350: item.power == "1350kw-1500kw" ? item.value : 0,
               });
+			  
+			  if(item.power == "1200kw-1350kw" || item.power == "1350kw-1500kw"){
+				  partwdContent += item.type+','
+			  }
+			  // (红字对比平均值高,绿字对比平均值低)
             });
+			if(partwdContent){
+				that.partwdContent = partwdContent.substring(0,partwdContent.length-1) +'大于平均值';
+			}else{
+				that.partwdContent = '各个部件温度良好。'
+			}
             that.partwds = partwd;
 
             // 性能评价结果
@@ -2623,5 +2633,6 @@ export default {
   .el-table td {
     color: black;
   }
+  .red{color: #BA3237;}
 }
 </style>