|
|
@@ -397,7 +397,6 @@ export default {
|
|
|
// width: that.$refs.wrap.offsetWidth,
|
|
|
// height: that.$refs.wrap.offsetHeight,
|
|
|
// });
|
|
|
- // console.log(that.domsize, "domsizethat");
|
|
|
window.onresize = () => {
|
|
|
return (() => {
|
|
|
window.fullHeight = document.documentElement.clientHeight;
|
|
|
@@ -457,13 +456,13 @@ export default {
|
|
|
},
|
|
|
returnifShow(t, h, p, qiya) {
|
|
|
let ifshow = "";
|
|
|
- if (t == 999 && h === 999) {
|
|
|
- ifshow = "true";
|
|
|
- return ifshow;
|
|
|
- }
|
|
|
+ // if (t == 999 && h === 999&&p==999) {
|
|
|
+ // ifshow = "true";
|
|
|
+ // return ifshow;
|
|
|
+ // }
|
|
|
let temp = t.toFixed(2); //温度
|
|
|
let humidness = h.toFixed(2); //湿度
|
|
|
- let airPressure =Math.abs(p.toFixed(2)) ; //气压
|
|
|
+ let airPressure =Number(p.toFixed(2)) ; //气压
|
|
|
// let ifshow = "";
|
|
|
|
|
|
if (temp > 999 || temp <= 0) {
|
|
|
@@ -479,15 +478,22 @@ export default {
|
|
|
} else {
|
|
|
ifshow = "false";
|
|
|
}
|
|
|
-
|
|
|
- if (airPressure > 999) {
|
|
|
+ console.log(airPressure > qiya,airPressure ,qiya,"数据")
|
|
|
+ if(qiya ==-10){
|
|
|
+ if(airPressure > -30 && airPressure < qiya){
|
|
|
+ ifshow = "true";
|
|
|
+ }
|
|
|
+
|
|
|
+ }else{
|
|
|
+ if (airPressure > 999) {
|
|
|
//不给予赋值
|
|
|
- } else if (airPressure >= qiya) {
|
|
|
- console.log(airPressure > qiya,Math.abs(airPressure),airPressure ,qiya,"数据")
|
|
|
- ifshow = "true";
|
|
|
- } else {
|
|
|
- ifshow = "false";
|
|
|
+ } else if (airPressure >= qiya) {
|
|
|
+ ifshow = "true";
|
|
|
+ } else {
|
|
|
+ ifshow = "false";
|
|
|
+ }
|
|
|
}
|
|
|
+
|
|
|
return ifshow;
|
|
|
},
|
|
|
|
|
|
@@ -495,8 +501,7 @@ export default {
|
|
|
// 大屏数据列表赋值
|
|
|
let this_ = this;
|
|
|
let zhi_wu_yi_run='';
|
|
|
- let sql =
|
|
|
- "select * FROM DATA WHERE deviceName = 'HAU01' ORDER BY saveTime DESC LIMIT 1";//细胞的退更缓冲区域
|
|
|
+ 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;
|
|
|
@@ -577,19 +582,19 @@ export default {
|
|
|
10
|
|
|
);
|
|
|
this_.newweizhi[17].run = data[0].run;
|
|
|
- this_.newweizhi[18].airPressure = data[0].p1; //p1; //p1 万
|
|
|
+ this_.newweizhi[18].airPressure = data[0].p1; //万级洁净走廊
|
|
|
this_.newweizhi[18].ifshow = this_.returnifShow(
|
|
|
999,
|
|
|
999,
|
|
|
data[0].p1,
|
|
|
- 10
|
|
|
+ 5
|
|
|
);
|
|
|
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 data = res.variables.data;
|
|
|
- this_.newweizhi[4].temp = data[0].t1;
|
|
|
+ this_.newweizhi[4].temp = data[0].t1; //分练区1
|
|
|
this_.newweizhi[4].humidness = data[0].h1;
|
|
|
this_.newweizhi[4].airPressure = data[0].p1;
|
|
|
this_.newweizhi[4].run = data[0].run;
|
|
|
@@ -599,7 +604,7 @@ export default {
|
|
|
data[0].p1,
|
|
|
5
|
|
|
);
|
|
|
- this_.newweizhi[5].temp = data[0].t2;
|
|
|
+ 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;
|
|
|
@@ -638,8 +643,7 @@ export default {
|
|
|
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;
|
|
|
@@ -657,7 +661,7 @@ export default {
|
|
|
999,
|
|
|
999,
|
|
|
data[0].p2,
|
|
|
- 5
|
|
|
+ 10
|
|
|
);
|
|
|
this_.newweizhi[22].run = data[0].run;
|
|
|
|
|
|
@@ -670,16 +674,16 @@ export default {
|
|
|
data[0].p3,
|
|
|
10
|
|
|
);
|
|
|
- this_.newweizhi[23].run = data[0].run;
|
|
|
+ this_.newweizhi[23].run = data[0].run;//二更
|
|
|
|
|
|
- this_.newweizhi[24].airPressure = data[0].p4;
|
|
|
+ this_.newweizhi[24].airPressure =data[0].p4;
|
|
|
this_.newweizhi[24].ifshow = this_.returnifShow(
|
|
|
999,
|
|
|
999,
|
|
|
data[0].p4,
|
|
|
- 10
|
|
|
+ 5
|
|
|
);
|
|
|
- this_.newweizhi[24].run = data[0].run;
|
|
|
+ this_.newweizhi[24].run = data[0].run; //缓冲
|
|
|
|
|
|
// this_.newweizhi[25].airPressure = data[0].p3; //无菌二更
|
|
|
// this_.newweizhi[25].ifshow = this_.returnifShow(
|
|
|
@@ -694,7 +698,7 @@ export default {
|
|
|
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].temp = data[0].t1; //无菌检测室
|
|
|
this_.newweizhi[7].humidness = data[0].h1;
|
|
|
this_.newweizhi[7].airPressure = data[0].p1;
|
|
|
this_.newweizhi[7].run = data[0].run;
|
|
|
@@ -709,7 +713,7 @@ export default {
|
|
|
999,
|
|
|
999,
|
|
|
data[0].p4,
|
|
|
- 5
|
|
|
+ 10
|
|
|
);
|
|
|
zhi_wu_yi_run !=1?this_.newweizhi[22].run = data[0].run:'';
|
|
|
|
|
|
@@ -718,9 +722,9 @@ export default {
|
|
|
999,
|
|
|
999,
|
|
|
data[0].p2,
|
|
|
- 5
|
|
|
+ 10
|
|
|
);
|
|
|
- this_.newweizhi[25].run = data[0].run;
|
|
|
+ this_.newweizhi[25].run = data[0].run; //二更
|
|
|
|
|
|
|
|
|
this_.newweizhi[26].airPressure = data[0].p3;
|
|
|
@@ -728,15 +732,11 @@ export default {
|
|
|
999,
|
|
|
999,
|
|
|
data[0].p3,
|
|
|
- 10
|
|
|
+ 5
|
|
|
);
|
|
|
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;
|
|
|
@@ -758,7 +758,7 @@ export default {
|
|
|
data[0].t2,
|
|
|
data[0].h2,
|
|
|
data[0].p2,
|
|
|
- -25
|
|
|
+ -10
|
|
|
);
|
|
|
|
|
|
this_.newweizhi[10].temp = data[0].t3;
|
|
|
@@ -831,20 +831,21 @@ export default {
|
|
|
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;
|
|
|
this_.newweizhi[12].ifshow = this_.returnifShow(
|
|
|
data[0].t1,
|
|
|
data[0].h1,
|
|
|
- data[0].p2
|
|
|
+ data[0].p2,
|
|
|
+ -10
|
|
|
);
|
|
|
- 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;
|
|
|
@@ -852,38 +853,31 @@ export default {
|
|
|
this_.newweizhi[13].ifshow = this_.returnifShow(
|
|
|
data[0].t2,
|
|
|
data[0].h2,
|
|
|
- data[0].p1
|
|
|
+ data[0].p1,
|
|
|
+ -10
|
|
|
);
|
|
|
-
|
|
|
-
|
|
|
|
|
|
- this_.newweizhi[33].airPressure = data[0].p1;
|
|
|
- this_.newweizhi[33].ifshow = this_.returnifShow(999, 999, data[0].p5);
|
|
|
- this_.newweizhi[33].run = data[0].run;
|
|
|
+ this_.newweizhi[33].airPressure = data[0].p5;
|
|
|
+ this_.newweizhi[33].ifshow = this_.returnifShow(999, 999, data[0].p5,5);
|
|
|
+ this_.newweizhi[33].run = data[0].run; //无菌阳性二更
|
|
|
|
|
|
|
|
|
- this_.newweizhi[34].airPressure = data[0].p5;//无菌阳性二更
|
|
|
- this_.newweizhi[34].ifshow = this_.returnifShow(999, 999, data[0].p5);
|
|
|
+ this_.newweizhi[34].airPressure = data[0].p7;//无菌阳性缓冲
|
|
|
+ this_.newweizhi[34].ifshow = this_.returnifShow(999, 999, data[0].p7,5);
|
|
|
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);
|
|
|
+ this_.newweizhi[35].ifshow = this_.returnifShow(999, 999, data[0].p4,5);
|
|
|
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);
|
|
|
+
|
|
|
+ this_.newweizhi[37].airPressure = data[0].p3; //无菌阳性 支原体 一更
|
|
|
+ this_.newweizhi[37].ifshow = this_.returnifShow(999, 999, data[0].p3,15);
|
|
|
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);
|
|
|
+ this_.newweizhi[36].airPressure = data[0].p6; //支原体性缓冲
|
|
|
+ this_.newweizhi[36].ifshow = this_.returnifShow(999, 999, data[0].p6,5);
|
|
|
this_.newweizhi[36].run = data[0].run;
|
|
|
-
|
|
|
- // this_.newweizhi[37].airPressure = data[0].p1;
|
|
|
- // this_.newweizhi[31].ifshow = this_.returnifShow(999,999,data[0].p5);
|
|
|
- // this_.newweizhi[37].run = data[0].run;
|
|
|
|
|
|
});
|
|
|
},
|
|
|
@@ -1146,14 +1140,14 @@ li {
|
|
|
color: black;
|
|
|
z-index: 99;
|
|
|
}
|
|
|
- .envir-conditoin {
|
|
|
+ /deep/ .envir-conditoin {
|
|
|
text-align: left;
|
|
|
width: 80px;
|
|
|
white-space: nowrap;
|
|
|
height: 20px;
|
|
|
line-height: 20px;
|
|
|
overflow: hidden;
|
|
|
- z-index: 99;
|
|
|
+ z-index: 999;
|
|
|
}
|
|
|
.content {
|
|
|
position: absolute;
|
|
|
@@ -1161,6 +1155,8 @@ li {
|
|
|
width: 90px;
|
|
|
left: 0px;
|
|
|
top: 0px;
|
|
|
+ padding-top: 15px;
|
|
|
+ height: 17px;
|
|
|
color: black;
|
|
|
opacity: 0;
|
|
|
padding-left: 20px;
|