Parcourir la source

Merge branch 'mw2' of ssh://61.161.152.110:29418/electronic-map into tjj2

darker il y a 3 ans
Parent
commit
9983cb552a
1 fichiers modifiés avec 22 ajouts et 12 suppressions
  1. 22 12
      src/components/other/healthReport/index.vue

+ 22 - 12
src/components/other/healthReport/index.vue

@@ -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: [],
       //性能评价明细
@@ -2035,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") {
@@ -2072,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;
 
             // 性能评价结果
@@ -2624,5 +2633,6 @@ export default {
   .el-table td {
     color: black;
   }
+  .red{color: #BA3237;}
 }
 </style>