Parcourir la source

feat(views): 优化设备工况冷水主机卡片

1. 增加吸气温度和排气温度
2. 调整冷凝和蒸发相关参数编码
wangcong il y a 2 semaines
Parent
commit
c38e955554

+ 6 - 4
src/constants/device-params.ts

@@ -46,10 +46,12 @@ export const enum DevParamChillerUnit {
   本月耗电量 = 'energyMonth',
   冷冻水回水温度 = 'evapWaterTempIn',
   冷冻水出水温度 = 'evapWaterTempOut',
-  蒸发压力 = 'evapPre',
-  蒸发温度 = 'evapTemp',
+  蒸发压力 = 'cir_1_evapPre',
+  蒸发温度 = 'cir_1_evapTemp',
   冷却水回水温度 = 'condWaterTempIn',
   冷却水出水温度 = 'condWaterTempOut',
-  冷凝压力 = 'condPre',
-  冷凝温度 = 'condTemp',
+  冷凝压力 = 'cir_1_condPre',
+  冷凝温度 = 'cir_1_condTemp',
+  排气温度 = 'cir_1_comp_1_disTemp',
+  吸气温度 = 'cir_1_comp_1_sucTemp',
 }

+ 24 - 0
src/views/device-work-status/device-card/ChillerUnit.vue

@@ -108,6 +108,20 @@ const activePowerPercent = computed(() => {
         >
           {{ realTimeData?.[DevParamChillerUnit.冷凝温度] }}°C
         </div>
+        <div
+          v-if="realTimeData?.[DevParamChillerUnit.排气温度] !== undefined"
+          class="chiller-unit-img-text dis-temp"
+          :data-param-code="DevParamChillerUnit.排气温度"
+        >
+          {{ realTimeData?.[DevParamChillerUnit.排气温度] }}°C
+        </div>
+        <div
+          v-if="realTimeData?.[DevParamChillerUnit.吸气温度] !== undefined"
+          class="chiller-unit-img-text suc-temp"
+          :data-param-code="DevParamChillerUnit.吸气温度"
+        >
+          {{ realTimeData?.[DevParamChillerUnit.吸气温度] }}°C
+        </div>
       </div>
     </div>
     <div class="chiller-unit-bottom">
@@ -222,6 +236,16 @@ const activePowerPercent = computed(() => {
   &.cond-temp {
     top: 102px;
   }
+
+  &.dis-temp {
+    top: 52px;
+    right: 71px;
+  }
+
+  &.suc-temp {
+    top: 29px;
+    left: 104px;
+  }
 }
 
 .chiller-unit-bottom {

+ 2 - 0
src/views/device-work-status/device-card/index.ts

@@ -106,6 +106,8 @@ export const deviceCardData: DeviceCardData = {
       DevParamChillerUnit.冷却水出水温度,
       DevParamChillerUnit.冷凝压力,
       DevParamChillerUnit.冷凝温度,
+      DevParamChillerUnit.排气温度,
+      DevParamChillerUnit.吸气温度,
     ],
   },
 };