Browse Source

生活水箱水位值减去0.1再计算百分比

gh_ers
selia-zx 2 months ago
parent
commit
b1dc33207f
  1. 2
      src/views/boilerSys/steamHeating/steamHeatingDetails.vue
  2. 6
      src/views/hotWater/waterMonitor/waterMonitorDetails.vue

2
src/views/boilerSys/steamHeating/steamHeatingDetails.vue

@ -17,7 +17,7 @@
src="../../../assets/images/title-right.png" src="../../../assets/images/title-right.png"
alt="" alt=""
/> />
<div class="sys-title" @click="goSys">蒸汽采暖系统运行监测</div> <div class="sys-title" @click="goSys">采暖系统运行监测</div>
<!-- logo --> <!-- logo -->
<img src="../../../assets/images/logo-3.png" class="sys-logo" alt="" /> <img src="../../../assets/images/logo-3.png" class="sys-logo" alt="" />
<div class="nowTime">{{ formattedDate }}</div> <div class="nowTime">{{ formattedDate }}</div>

6
src/views/hotWater/waterMonitor/waterMonitorDetails.vue

@ -995,7 +995,11 @@ export default {
handlerow(row, event, column) { handlerow(row, event, column) {
console.log("row", row); console.log("row", row);
// //
if (this.isShowHotWater) {
this.progress1 = row.waterLevel1; this.progress1 = row.waterLevel1;
} else {
this.progress1 = row.waterLevel1 - 0.1;
}
this.progress2 = row.waterLevel2; this.progress2 = row.waterLevel2;
this.temdata = row.waterTemp; this.temdata = row.waterTemp;
this.pumname = row.pumpName; this.pumname = row.pumpName;
@ -1092,7 +1096,7 @@ export default {
}, },
getPercentage(value) { getPercentage(value) {
// progress1 // progress1
return (((value - 0.1) / 3.2) * 100).toFixed(2); return ((value / 3.2) * 100).toFixed(2);
}, },
}, },
}; };

Loading…
Cancel
Save