ソースを参照

fix:环境监控

zhangjingyuan 3 年 前
コミット
9f0f47b230
1 ファイル変更215 行追加171 行削除
  1. 215 171
      src/views/huanjingjiankong/huanjingjiankong.vue

+ 215 - 171
src/views/huanjingjiankong/huanjingjiankong.vue

@@ -5,25 +5,17 @@
         明鉴检测实验室温湿度负压动态监控系统
       </div>
       <div class="info-right">
-        <span style="color: #c12530; margin-right: 5px">采集时间:</span
-        ><span style="color: #276bcc; margin-right: 15px">{{ newTiMe }}</span>
+        <span style="color: #c12530; margin-right: 5px">采集时间:</span><span style="color: #276bcc; margin-right: 15px">{{ newTiMe }}</span>
         <button @click="returnBlack" class="black">返回</button>
       </div>
     </div>
     <div class="body-content">
       <div class="marquee-wrap" v-if="false">
         <div>
-          <ul
-            class="marquee-list"
-            :class="{ 'animate-up': animateUp }"
-            :style="{ width: btnShow ? '360px' : '0px' }"
-          >
+          <ul class="marquee-list" :class="{ 'animate-up': animateUp }" :style="{ width: btnShow ? '360px' : '0px' }">
             <li v-for="(item, index) in envirListData" :key="index">
               <span>{{ item.deviceName }}</span> &nbsp;
-              <span>{{ item.t1 | numToFixed }}</span
-              >&nbsp; <span>{{ item.h1 | numToFixed }}</span
-              >&nbsp; <span>{{ item.p1 | numToFixed }}</span
-              >&nbsp;
+              <span>{{ item.t1 | numToFixed }}</span>&nbsp; <span>{{ item.h1 | numToFixed }}</span>&nbsp; <span>{{ item.p1 | numToFixed }}</span>&nbsp;
             </li>
           </ul>
           <div class="button">
@@ -35,40 +27,23 @@
       <div class="mapShow">
         <div class="mapurl"></div>
         <div class="img-box" @click="mapEvent">
-          <img
-            src="images/shiyanshijiankong/shiyanshi.png"
-            class="img"
-            alt=""
-            ref="wrap"
-          />
-          <div
-            ref="shijiku1"
-            v-for="(item, index) in newweizhi"
-            :key="index"
-            :style="{ top: `${item.y}px`, left: `${item.x}px` }"
-            :class="[
+          <img src="images/shiyanshijiankong/shiyanshi.png" class="img" alt="" ref="wrap" />
+          <div ref="shijiku1" v-for="(item, index) in newweizhi" :key="index" :style="{ top: `${item.y}px`, left: `${item.x}px` }" :class="[
               item.run == '1'
                 ? item.ifshow == 'false'
                   ? 'shiyanshi_false'
                   : 'shiyanshi_success'
                 : 'bggray',
-            ]"
-          >
-            <div
-              :class="[item.ifshow == 'false' ? 'contentshow' : 'content']"
-              v-show="item.run == 1"
-            >
+            ]">
+            <div :class="[item.ifshow == 'false' ? 'contentshow' : 'content']" v-show="item.run == 1">
               <!-- <div class="contentshow"> -->
               <div class="envir-conditoin" v-show="item.temp ? true : false">
                 温度:{{ item.temp|numToFixed }}
               </div>
-              <div
-                class="envir-conditoin"
-                v-show="item.humidness ? true : false"
-              >
+              <div class="envir-conditoin" v-show="item.humidness ? true : false">
                 湿度:{{ item.humidness|numToFixed }}
               </div>
-              <div class="envir-conditoin">气压:{{ item.airPressure |numToFixed}}</div>
+              <div class="envir-conditoin" v-if="item.airPressure != 66">气压:{{ item.airPressure|numToFixed}}</div>
             </div>
           </div>
         </div>
@@ -92,7 +67,7 @@
 
 <script>
 import curdPost from "@/business/platform/form/utils/custom/joinCURD.js";
-import { number } from 'echarts/lib/export';
+import { number } from "echarts/lib/export";
 export default {
   name: "DataView",
   data() {
@@ -150,7 +125,7 @@ export default {
           y: 653,
         },
         {
-          x: 847,//3
+          x: 847, //3
           y: 653,
         },
         {
@@ -159,7 +134,7 @@ export default {
           y: 655,
         },
         {
-          x: 1460,//5
+          x: 1460, //5
           y: 450,
         },
         {
@@ -174,7 +149,7 @@ export default {
         },
         //产物分析室
         {
-          x: 950,//8
+          x: 950, //8
           y: 127,
         },
         {
@@ -186,7 +161,7 @@ export default {
           y: 127,
         },
         {
-          x: 1353,//11
+          x: 1353, //11
           y: 127,
         },
         {
@@ -195,12 +170,12 @@ export default {
           y: 99,
         },
         {
-          x: 357,//13
+          x: 357, //13
           y: 200,
         },
         //细胞->更
         {
-          x: 584,//14
+          x: 584, //14
           y: 420,
         },
         {
@@ -209,19 +184,19 @@ export default {
         },
         {
           x: 710,
-          y: 480//退更缓冲
+          y: 480, //退更缓冲
         },
         {
-          x: 710,//退更
+          x: 710, //退更
           y: 420,
         },
         {
-          x: 584,//万级
+          x: 584, //万级
           y: 547,
         },
         // 分练区 ->更
         {
-          x: 1390,//19
+          x: 1390, //19
           y: 560,
         },
         {
@@ -234,7 +209,7 @@ export default {
         },
         {
           //支原体检测->更
-          x: 850,//22
+          x: 850, //22
           y: 250,
         },
         {
@@ -243,16 +218,16 @@ export default {
         },
         {
           x: 780,
-          y: 235,//24
+          y: 235, //24
         },
 
         {
           //无菌检测->更
-          x: 850,//25
+          x: 850, //25
           y: 180,
         },
         {
-          x: 850,//26
+          x: 850, //26
           y: 70,
         },
         {
@@ -265,7 +240,7 @@ export default {
           y: 270,
         },
         {
-          x: 965,//29
+          x: 965, //29
           y: 220,
         },
         {
@@ -273,7 +248,7 @@ export default {
           y: 220,
         },
         {
-          x: 1190,//31
+          x: 1190, //31
           y: 220,
         },
         //无菌阳性->
@@ -317,10 +292,10 @@ export default {
   },
   filters: {
     numToFixed: function (value) {
-      if(!value){
-        return
-      }
-      return value.toFixed(2);
+      let str = value.toString();
+      let strIndex = str.indexOf('.');
+      str = str.substring(0, strIndex + 3);
+      return str;
     },
   },
   methods: {
@@ -342,7 +317,16 @@ export default {
       var d = "0" + date.getDate();
       var h = date.getHours();
       var min = date.getMinutes();
+      if(h <10){
+        h = '0'+h
+      }
+      if(min <10){
+        min = '0' + min
+      }
       var s = date.getMinutes();
+      if(s<10){
+        s = '0' +s;
+      }
       return (
         y +
         "-" +
@@ -386,8 +370,7 @@ export default {
       this.screenChange();
       this.mapChange();
     },
-    mapEvent(e) {
-    },
+    mapEvent(e) {},
     screenChange() {
       this.fullHeight = `${document.documentElement.clientHeight}`;
       // this.fullWidth = `${document.documentElement.clientWidth}`; //默认值
@@ -454,15 +437,15 @@ export default {
         this_.timeData();
       }, 300000); /// 300000
     },
-    returnifShow(t, h, p, qiya) {
+    returnifShow(t, h, p, qiya, qiyaer) {
       let ifshow = "";
       // if (t == 999 && h === 999&&p==999) {
       //   ifshow = "true";
       //   return ifshow;
       // }
-      let temp = t.toFixed(2); //温度
-      let humidness = h.toFixed(2); //湿度
-      let airPressure =Number(p.toFixed(2)) ; //气压
+      let temp =  t.toFixed(2); //温度
+      let humidness = Number(h.toFixed(2)) ; //湿度
+      let airPressure = Number(p.toFixed(2)); //气压
       // let ifshow = "";
 
       if (temp > 999 || temp <= 0) {
@@ -478,31 +461,29 @@ export default {
       } else {
         ifshow = "false";
       }
-      console.log(airPressure > qiya,airPressure ,qiya,"数据")
-      if(qiya ==-10){
-        if(airPressure > -30 && airPressure < qiya){
-          ifshow = "true";
-        }
-        
-      }else{
-        if (airPressure > 999) {
+      console.log(airPressure > qiya, airPressure, qiya, qiyaer, "数据");
+
+      if (airPressure >= 999) {
         //不给予赋值
-        } else if (airPressure >= qiya) {
+      } else if (airPressure >= qiya && airPressure <= qiyaer && airPressure >0) {
+        ifshow = "true";
+      } else if (airPressure <= qiya && airPressure >= qiyaer && airPressure <= 0) {
           ifshow = "true";
-        } else {
-          ifshow = "false";
-        }
+      }
+       else {
+        ifshow = "false";
       }
 
       return ifshow;
     },
 
-   async timeData() {
+    async timeData() {
       // 大屏数据列表赋值
       let this_ = this;
-      let zhi_wu_yi_run='';
-      let sql ="select * FROM DATA WHERE deviceName = 'HAU01'  ORDER BY saveTime DESC LIMIT 1";//细胞的退更缓冲区域
-    await  curdPost("sql", sql).then((res) => {
+      let zhi_wu_yi_run = "";
+      let sql =
+        "select * FROM DATA WHERE deviceName = 'HAU01'  ORDER BY saveTime DESC LIMIT 1"; //细胞的退更缓冲区域
+      await curdPost("sql", sql).then((res) => {
         let data = res.variables.data;
         this_.newweizhi[0].temp = data[0].t1;
         this_.newweizhi[0].humidness = data[0].h1;
@@ -510,11 +491,13 @@ export default {
         this_.newweizhi[0].run = data[0].run;
         this_.newTiMe = this_.fmtDate(data[0].saveTime);
         this_.newweizhi[0].ifshow = this_.returnifShow(
+          //细胞1
           //数据范围校准
           data[0].t1,
           data[0].h1,
           data[0].p6,
-          5
+          5,
+          30
         );
 
         this_.newweizhi[1].temp = data[0].t2;
@@ -522,10 +505,12 @@ export default {
         this_.newweizhi[1].airPressure = data[0].p7;
         this_.newweizhi[1].run = data[0].run;
         this_.newweizhi[1].ifshow = this_.returnifShow(
+          ////细胞2
           data[0].t2,
           data[0].h2,
           data[0].p7,
-          5
+          5,
+          30
         );
 
         this_.newweizhi[2].temp = data[0].t3;
@@ -533,27 +518,32 @@ export default {
         this_.newweizhi[2].airPressure = data[0].p8;
         this_.newweizhi[2].run = data[0].run;
         this_.newweizhi[2].ifshow = this_.returnifShow(
+          //细胞三
           data[0].t3,
           data[0].h3,
           data[0].p8,
-          5
+          5,
+          30
         );
         this_.newweizhi[3].temp = data[0].t4;
         this_.newweizhi[3].humidness = data[0].h4;
         this_.newweizhi[3].airPressure = data[0].p9;
         this_.newweizhi[3].run = data[0].run;
         this_.newweizhi[3].ifshow = this_.returnifShow(
+          //细胞四
           data[0].t4,
           data[0].h4,
           data[0].p9,
-          5
+          5,
+          30
         );
         this_.newweizhi[14].airPressure = data[0].p1; //; 1更
         this_.newweizhi[14].ifshow = this_.returnifShow(
           999,
           999,
-          data[0].p2,
-          10
+          data[0].p1,
+          10,
+          30
         );
         this_.newweizhi[14].run = data[0].run;
 
@@ -562,7 +552,8 @@ export default {
           999,
           999,
           data[0].p3,
-          10
+          5,
+          30
         );
         this_.newweizhi[15].run = data[0].run;
         this_.newweizhi[16].airPressure = data[0].p4; //退更缓冲
@@ -570,7 +561,8 @@ export default {
           999,
           999,
           data[0].p4,
-          5
+          5,
+          30
         );
         this_.newweizhi[16].run = data[0].run;
 
@@ -579,7 +571,8 @@ export default {
           999,
           999,
           data[0].p5,
-          10
+          5,
+          30
         );
         this_.newweizhi[17].run = data[0].run;
         this_.newweizhi[18].airPressure = data[0].p1; //万级洁净走廊
@@ -587,12 +580,14 @@ export default {
           999,
           999,
           data[0].p1,
-          5
+          5,
+          30
         );
         this_.newweizhi[18].run = data[0].run;
       });
-      let sql1 ="select * FROM DATA WHERE deviceName ='HAU02'  ORDER BY saveTime DESC LIMIT 1";
-    await  curdPost("sql", sql1).then((res) => {
+      let sql1 =
+        "select * FROM DATA WHERE deviceName ='HAU02'  ORDER BY saveTime DESC LIMIT 1";
+      await curdPost("sql", sql1).then((res) => {
         let data = res.variables.data;
         this_.newweizhi[4].temp = data[0].t1; //分练区1
         this_.newweizhi[4].humidness = data[0].h1;
@@ -602,9 +597,10 @@ export default {
           data[0].t1,
           data[0].h1,
           data[0].p1,
-          5
+          5,
+          30
         );
-        this_.newweizhi[5].temp = data[0].t2;//分练区2
+        this_.newweizhi[5].temp = data[0].t2; //分练区2
         this_.newweizhi[5].humidness = data[0].h2;
         this_.newweizhi[5].airPressure = data[0].p2;
         this_.newweizhi[5].run = data[0].run;
@@ -613,24 +609,28 @@ export default {
           data[0].t2,
           data[0].h2,
           data[0].p2,
-          5
+          5,
+          30
         );
 
         this_.newweizhi[19].airPressure = data[0].p3;
         this_.newweizhi[19].ifshow = this_.returnifShow(
+          //1更
           999,
           999,
           data[0].p3,
-          10
+          10,
+          30
         );
-        this_.newweizhi[19].run = data[0].run;    
-  
+        this_.newweizhi[19].run = data[0].run;
+
         this_.newweizhi[20].airPressure = data[0].p4;
         this_.newweizhi[20].ifshow = this_.returnifShow(
           999,
           999,
           data[0].p4,
-          10
+          10,
+          30
         );
         this_.newweizhi[20].run = data[0].run;
         this_.newweizhi[21].airPressure = data[0].p5;
@@ -638,12 +638,13 @@ export default {
           999,
           999,
           data[0].p5,
-          5
+          5,
+          30
         );
         this_.newweizhi[21].run = data[0].run;
-        
       });
-      let sql2 ="select * FROM DATA WHERE deviceName ='HAU03' ORDER BY saveTime DESC LIMIT 1"; //支原体室
+      let sql2 =
+        "select * FROM DATA WHERE deviceName ='HAU03' ORDER BY saveTime DESC LIMIT 1"; //支原体室
       await curdPost("sql", sql2).then((res) => {
         let data = res.variables.data;
         this_.newweizhi[6].temp = data[0].t1;
@@ -654,37 +655,41 @@ export default {
           data[0].t1,
           data[0].h1,
           data[0].p1,
-          5
+          5,
+          30
         );
-        this_.newweizhi[22].airPressure = data[0].p2;//支原体 与无菌共用一更
+        this_.newweizhi[22].airPressure = data[0].p2; //支原体 与无菌共用一更
         this_.newweizhi[22].ifshow = this_.returnifShow(
           999,
           999,
           data[0].p2,
-          10
+          10,
+          30
         );
         this_.newweizhi[22].run = data[0].run;
-        
-        zhi_wu_yi_run=data[0].run;
-        
+
+        zhi_wu_yi_run = data[0].run;
+
         this_.newweizhi[23].airPressure = data[0].p3;
         this_.newweizhi[23].ifshow = this_.returnifShow(
           999,
           999,
           data[0].p3,
-          10
+          10,
+          30
         );
-        this_.newweizhi[23].run = data[0].run;//二更
-        
-        this_.newweizhi[24].airPressure =data[0].p4;
+        this_.newweizhi[23].run = data[0].run; //二更
+
+        this_.newweizhi[24].airPressure = data[0].p4;
         this_.newweizhi[24].ifshow = this_.returnifShow(
           999,
           999,
           data[0].p4,
-          5
+          5,
+          30
         );
         this_.newweizhi[24].run = data[0].run; //缓冲
-        
+
         // this_.newweizhi[25].airPressure = data[0].p3; //无菌二更
         // this_.newweizhi[25].ifshow = this_.returnifShow(
         //   999,
@@ -693,50 +698,53 @@ export default {
         //   5
         // );
         // this_.newweizhi[25].run = data[0].run;
-        
       });
       let sql3 ="select * FROM DATA WHERE deviceName ='HAU04'  ORDER BY saveTime DESC LIMIT 1";
       await curdPost("sql", sql3).then((res) => {
         let data = res.variables.data;
         this_.newweizhi[7].temp = data[0].t1; //无菌检测室
-        this_.newweizhi[7].humidness = data[0].h1;
+        this_.newweizhi[7].humidness = data[0].h1;  
         this_.newweizhi[7].airPressure = data[0].p1;
-        this_.newweizhi[7].run = data[0].run;       
+        this_.newweizhi[7].run = data[0].run;
         this_.newweizhi[7].ifshow = this_.returnifShow(
           data[0].t1,
           data[0].h1,
           data[0].p1,
-          5
+          5,
+          30
         );
-        this_.newweizhi[22].airPressure = data[0].p4;//支原体 与无菌共用一更
+        this_.newweizhi[22].airPressure = data[0].p4; //支原体 与无菌共用一更
         this_.newweizhi[22].ifshow = this_.returnifShow(
           999,
           999,
           data[0].p4,
-          10
+          10,
+          30
         );
-        zhi_wu_yi_run !=1?this_.newweizhi[22].run = data[0].run:'';
-        
+        zhi_wu_yi_run != 1 ? (this_.newweizhi[22].run = data[0].run) : "";
+
         this_.newweizhi[25].airPressure = data[0].p2;
         this_.newweizhi[25].ifshow = this_.returnifShow(
           999,
           999,
           data[0].p2,
-          10
+          10,
+          30
         );
         this_.newweizhi[25].run = data[0].run; //二更
-        
 
         this_.newweizhi[26].airPressure = data[0].p3;
         this_.newweizhi[26].ifshow = this_.returnifShow(
           999,
           999,
           data[0].p3,
-          5
+          5,
+          30
         );
         this_.newweizhi[26].run = data[0].run;
       });
-      let sql4 ="select * FROM DATA WHERE deviceName ='PAU01'  ORDER BY saveTime DESC LIMIT 1";
+      let sql4 =
+        "select * FROM DATA WHERE deviceName ='PAU01'  ORDER BY saveTime DESC LIMIT 1";
       await curdPost("sql", sql4).then((res) => {
         let data = res.variables.data;
         this_.newweizhi[8].temp = data[0].t1;
@@ -747,18 +755,20 @@ export default {
           data[0].t1,
           data[0].h1,
           data[0].p1,
-          -10
+          -10,
+          -30
         );
 
         this_.newweizhi[9].temp = data[0].t2;
         this_.newweizhi[9].humidness = data[0].h2;
         this_.newweizhi[9].airPressure = data[0].p2; //扩增
-        this_.newweizhi[9].run = data[0].run;    
+        this_.newweizhi[9].run = data[0].run;
         this_.newweizhi[9].ifshow = this_.returnifShow(
           data[0].t2,
           data[0].h2,
           data[0].p2,
-          -10
+          -10,
+          -30
         );
 
         this_.newweizhi[10].temp = data[0].t3;
@@ -769,73 +779,78 @@ export default {
           data[0].t3,
           data[0].h3,
           data[0].p3,
-          5
+          5,
+          30
         );
 
         this_.newweizhi[11].temp = data[0].t4;
         this_.newweizhi[11].humidness = data[0].h4;
-        this_.newweizhi[11].airPressure = 66 //试剂准备
-        this_.newweizhi[11].run = data[0].run;    
+        this_.newweizhi[11].airPressure = data[0].p4 //试剂准备
+        this_.newweizhi[11].run = data[0].run;
         this_.newweizhi[11].ifshow = this_.returnifShow(
           data[0].t4,
           data[0].h4,
-          66,
-          15
+          data[0].p4,
+          15,
+          30
         );
 
-        this_.newweizhi[28].airPressure = data[0].p4; //pcr
+        this_.newweizhi[28].airPressure = data[0].p9; //试剂准备缓冲
         this_.newweizhi[28].ifshow = this_.returnifShow(
           999,
           999,
-          data[0].p4,
-          5
+          data[0].p9,
+          5,
+          30
         );
         this_.newweizhi[28].run = data[0].run;
-        
-        this_.newweizhi[29].airPressure = data[0].p6; //试剂准备缓冲
+
+        this_.newweizhi[29].airPressure = data[0].p6; 
         this_.newweizhi[29].ifshow = this_.returnifShow(
           999,
           999,
           data[0].p6,
-          5
+          5,
+          30
         );
-        this_.newweizhi[29].run = data[0].run;
-        
-        this_.newweizhi[30].airPressure = data[0].p7 //产物缓冲
+        this_.newweizhi[29].run = data[0].run;//产物缓冲
+        this_.newweizhi[30].airPressure = data[0].p7; 
         this_.newweizhi[30].ifshow = this_.returnifShow(
           999,
           999,
           data[0].p7,
-          5
+          5,
+          30
         );
-        this_.newweizhi[30].run = data[0].run;
-        
-        this_.newweizhi[31].airPressure = data[0].p8; //缓冲三
+        this_.newweizhi[30].run = data[0].run; //扩增缓冲
+
+        this_.newweizhi[31].airPressure = data[0].p8; 
         this_.newweizhi[31].ifshow = this_.returnifShow(
           999,
           999,
           data[0].p8,
-          5
+          5,
+          30
         );
-        this_.newweizhi[31].run = data[0].run;
-        
+        this_.newweizhi[31].run = data[0].run; //样本缓冲三
 
         this_.newweizhi[27].run = data[0].run;
-        this_.newweizhi[27].airPressure = data[0].p9; //PCR走廊
+        this_.newweizhi[27].airPressure = data[0].p5; //PCR走廊
         this_.newweizhi[27].ifshow = this_.returnifShow(
           999,
           999,
-          data[0].p9,
-          5
+          data[0].p5,
+          5,
+          30
         );
         this_.newweizhi[27].run = data[0].run;
-        
       });
-      let sql5 ="select * FROM DATA WHERE deviceName ='PAU02'  ORDER BY saveTime DESC LIMIT 1";
+      let sql5 =
+        "select * FROM DATA WHERE deviceName ='PAU02'  ORDER BY saveTime DESC LIMIT 1";
       // console.log()
       await curdPost("sql", sql5).then((res) => {
         let data = res.variables.data;
-        this_.newweizhi[12].temp = data[0].t1;//无菌阳性制备室
+        this_.newweizhi[12].temp = data[0].t1; //无菌阳性制备室
         this_.newweizhi[12].humidness = data[0].h1;
         this_.newweizhi[12].airPressure = data[0].p2;
         this_.newweizhi[12].run = data[0].run;
@@ -843,42 +858,71 @@ export default {
           data[0].t1,
           data[0].h1,
           data[0].p2,
-          -10
+          -10,
+          -30
         );
-        this_.newweizhi[13].temp = data[0].t2;//支原体阳性制备室
+        this_.newweizhi[13].temp = data[0].t2; //支原体阳性制备室
         this_.newweizhi[13].humidness = data[0].h2;
         this_.newweizhi[13].airPressure = data[0].p1;
         this_.newweizhi[13].run = data[0].run;
-        
+
         this_.newweizhi[13].ifshow = this_.returnifShow(
           data[0].t2,
           data[0].h2,
           data[0].p1,
-          -10
+          -10,
+          -30
         );
-        
+
         this_.newweizhi[33].airPressure = data[0].p5;
-        this_.newweizhi[33].ifshow = this_.returnifShow(999, 999, data[0].p5,5);
+        this_.newweizhi[33].ifshow = this_.returnifShow(
+          999,
+          999,
+          data[0].p5,
+          5,
+          30
+        );
         this_.newweizhi[33].run = data[0].run; //无菌阳性二更
-        
-        
-        this_.newweizhi[34].airPressure = data[0].p7;//无菌阳性缓冲
-        this_.newweizhi[34].ifshow = this_.returnifShow(999, 999, data[0].p7,5);
+
+        this_.newweizhi[34].airPressure = data[0].p7; //无菌阳性缓冲
+        this_.newweizhi[34].ifshow = this_.returnifShow(
+          999,
+          999,
+          data[0].p7,
+          5,
+          30
+        );
         this_.newweizhi[34].run = data[0].run;
-       
 
         this_.newweizhi[35].airPressure = data[0].p4; //支原体二更
-        this_.newweizhi[35].ifshow = this_.returnifShow(999, 999, data[0].p4,5);
+        this_.newweizhi[35].ifshow = this_.returnifShow(
+          999,
+          999,
+          data[0].p4,
+          5,
+          30
+        );
         this_.newweizhi[35].run = data[0].run;
-  
+
         this_.newweizhi[37].airPressure = data[0].p3; //无菌阳性 支原体 一更
-        this_.newweizhi[37].ifshow = this_.returnifShow(999, 999, data[0].p3,15);
+        this_.newweizhi[37].ifshow = this_.returnifShow(
+          999,
+          999,
+          data[0].p3,
+          15,
+          30
+        );
         this_.newweizhi[37].run = data[0].run;
-        
+
         this_.newweizhi[36].airPressure = data[0].p6; //支原体性缓冲
-        this_.newweizhi[36].ifshow = this_.returnifShow(999, 999, data[0].p6,5);
+        this_.newweizhi[36].ifshow = this_.returnifShow(
+          999,
+          999,
+          data[0].p6,
+          5,
+          30
+        );
         this_.newweizhi[36].run = data[0].run;
-
       });
     },
   },
@@ -1140,7 +1184,7 @@ li {
         color: black;
         z-index: 99;
       }
-     /deep/ .envir-conditoin {
+      /deep/ .envir-conditoin {
         text-align: left;
         width: 80px;
         white-space: nowrap;