|
@@ -2,7 +2,7 @@
|
|
import { computed } from 'vue';
|
|
import { computed } from 'vue';
|
|
|
|
|
|
import { t } from '@/i18n';
|
|
import { t } from '@/i18n';
|
|
-import { calcPercentage, isNotEmptyVal } from '@/utils';
|
|
|
|
|
|
+import { calcPercentage, getFixedNum, isNotEmptyVal } from '@/utils';
|
|
import { DevParamChillerUnit } from '@/constants/device-params';
|
|
import { DevParamChillerUnit } from '@/constants/device-params';
|
|
|
|
|
|
import type { DevWorkCardProps } from '@/types';
|
|
import type { DevWorkCardProps } from '@/types';
|
|
@@ -23,9 +23,9 @@ const coolingCapacityTip = computed(() => {
|
|
const isNominalCoolingcapacityNotEmpty = isNotEmptyVal(nominalCoolingcapacity);
|
|
const isNominalCoolingcapacityNotEmpty = isNotEmptyVal(nominalCoolingcapacity);
|
|
const percent = isCoolingcapacityNotEmpty && isNominalCoolingcapacityNotEmpty ? coolingCapacityPercent.value : '-';
|
|
const percent = isCoolingcapacityNotEmpty && isNominalCoolingcapacityNotEmpty ? coolingCapacityPercent.value : '-';
|
|
|
|
|
|
- return `${t('deviceWorkStatus.chillerUnit.coolingCapacityPercentage')}: ${percent}%
|
|
|
|
-${t('deviceWorkStatus.chillerUnit.coolingCapacity')}: ${coolingCapacity ?? '-'}kW
|
|
|
|
-${t('deviceWorkStatus.chillerUnit.coolingCapacityNominal')}: ${nominalCoolingcapacity ?? '-'}kW`;
|
|
|
|
|
|
+ return `${t('deviceWorkStatus.chillerUnit.coolingCapacityPercentage')}: ${getFixedNum(percent, 1)}%
|
|
|
|
+${t('deviceWorkStatus.chillerUnit.coolingCapacity')}: ${getFixedNum(coolingCapacity, 1)}kW
|
|
|
|
+${t('deviceWorkStatus.chillerUnit.coolingCapacityNominal')}: ${getFixedNum(nominalCoolingcapacity, 1)}kW`;
|
|
});
|
|
});
|
|
|
|
|
|
const activePowerPercent = computed(() => {
|
|
const activePowerPercent = computed(() => {
|
|
@@ -42,9 +42,9 @@ const activePowerTip = computed(() => {
|
|
const isPowerRatingNotEmpty = isNotEmptyVal(powerRating);
|
|
const isPowerRatingNotEmpty = isNotEmptyVal(powerRating);
|
|
const percent = isActivePowerNotEmpty && isPowerRatingNotEmpty ? activePowerPercent.value : '-';
|
|
const percent = isActivePowerNotEmpty && isPowerRatingNotEmpty ? activePowerPercent.value : '-';
|
|
|
|
|
|
- return `${t('deviceWorkStatus.chillerUnit.activePowerPercentage')}: ${percent}%
|
|
|
|
-${t('deviceWorkStatus.chillerUnit.activePower')}: ${activePower ?? '-'}kW
|
|
|
|
-${t('deviceList.ratedPower')}: ${powerRating ?? '-'}kW`;
|
|
|
|
|
|
+ return `${t('deviceWorkStatus.chillerUnit.activePowerPercentage')}: ${getFixedNum(percent, 1)}%
|
|
|
|
+${t('deviceWorkStatus.chillerUnit.activePower')}: ${getFixedNum(activePower, 1)}kW
|
|
|
|
+${t('deviceList.ratedPower')}: ${getFixedNum(powerRating, 1)}kW`;
|
|
});
|
|
});
|
|
|
|
|
|
const showEvapCondTempPre = computed(() => {
|
|
const showEvapCondTempPre = computed(() => {
|
|
@@ -67,7 +67,7 @@ const showDisSucTemp = computed(() => {
|
|
<ATooltip overlay-class-name="hvac-tooltip">
|
|
<ATooltip overlay-class-name="hvac-tooltip">
|
|
<template #title>{{ coolingCapacityTip }}</template>
|
|
<template #title>{{ coolingCapacityTip }}</template>
|
|
<ProgressTextBar
|
|
<ProgressTextBar
|
|
- :text="realTimeData?.[DevParamChillerUnit.制冷量]"
|
|
|
|
|
|
+ :text="getFixedNum(realTimeData?.[DevParamChillerUnit.制冷量], 1)"
|
|
:percent="coolingCapacityPercent"
|
|
:percent="coolingCapacityPercent"
|
|
:data-param-code="DevParamChillerUnit.制冷量"
|
|
:data-param-code="DevParamChillerUnit.制冷量"
|
|
/>
|
|
/>
|
|
@@ -82,7 +82,7 @@ const showDisSucTemp = computed(() => {
|
|
<ATooltip overlay-class-name="hvac-tooltip">
|
|
<ATooltip overlay-class-name="hvac-tooltip">
|
|
<template #title>{{ activePowerTip }}</template>
|
|
<template #title>{{ activePowerTip }}</template>
|
|
<ProgressTextBar
|
|
<ProgressTextBar
|
|
- :text="realTimeData?.[DevParamChillerUnit.有功功率]"
|
|
|
|
|
|
+ :text="getFixedNum(realTimeData?.[DevParamChillerUnit.有功功率], 1)"
|
|
:percent="activePowerPercent"
|
|
:percent="activePowerPercent"
|
|
:data-param-code="DevParamChillerUnit.有功功率"
|
|
:data-param-code="DevParamChillerUnit.有功功率"
|
|
/>
|
|
/>
|
|
@@ -91,7 +91,7 @@ const showDisSucTemp = computed(() => {
|
|
<div>
|
|
<div>
|
|
<div class="device-card-label">{{ $t('deviceWorkStatus.chillerUnit.loadRate') }}</div>
|
|
<div class="device-card-label">{{ $t('deviceWorkStatus.chillerUnit.loadRate') }}</div>
|
|
<ProgressTextBar
|
|
<ProgressTextBar
|
|
- :text="realTimeData?.[DevParamChillerUnit.负载率] + '%'"
|
|
|
|
|
|
+ :text="getFixedNum(realTimeData?.[DevParamChillerUnit.负载率], 1) + '%'"
|
|
:percent="realTimeData?.[DevParamChillerUnit.负载率] || 0"
|
|
:percent="realTimeData?.[DevParamChillerUnit.负载率] || 0"
|
|
:data-param-code="DevParamChillerUnit.负载率"
|
|
:data-param-code="DevParamChillerUnit.负载率"
|
|
/>
|
|
/>
|
|
@@ -107,9 +107,9 @@ const showDisSucTemp = computed(() => {
|
|
<ATooltip>
|
|
<ATooltip>
|
|
<template #title>
|
|
<template #title>
|
|
{{ $t('deviceWorkStatus.chillerUnit.evapWaterTempIn') }}:
|
|
{{ $t('deviceWorkStatus.chillerUnit.evapWaterTempIn') }}:
|
|
- {{ realTimeData?.[DevParamChillerUnit.冷冻水回水温度] }}°C
|
|
|
|
|
|
+ {{ getFixedNum(realTimeData?.[DevParamChillerUnit.冷冻水回水温度]) }}°C
|
|
</template>
|
|
</template>
|
|
- {{ realTimeData?.[DevParamChillerUnit.冷冻水回水温度] }}°C
|
|
|
|
|
|
+ {{ getFixedNum(realTimeData?.[DevParamChillerUnit.冷冻水回水温度]) }}°C
|
|
</ATooltip>
|
|
</ATooltip>
|
|
</div>
|
|
</div>
|
|
<div
|
|
<div
|
|
@@ -120,9 +120,9 @@ const showDisSucTemp = computed(() => {
|
|
<ATooltip>
|
|
<ATooltip>
|
|
<template #title>
|
|
<template #title>
|
|
{{ $t('deviceWorkStatus.chillerUnit.evapWaterTempOut') }}:
|
|
{{ $t('deviceWorkStatus.chillerUnit.evapWaterTempOut') }}:
|
|
- {{ realTimeData?.[DevParamChillerUnit.冷冻水出水温度] }}°C
|
|
|
|
|
|
+ {{ getFixedNum(realTimeData?.[DevParamChillerUnit.冷冻水出水温度]) }}°C
|
|
</template>
|
|
</template>
|
|
- {{ realTimeData?.[DevParamChillerUnit.冷冻水出水温度] }}°C
|
|
|
|
|
|
+ {{ getFixedNum(realTimeData?.[DevParamChillerUnit.冷冻水出水温度]) }}°C
|
|
</ATooltip>
|
|
</ATooltip>
|
|
</div>
|
|
</div>
|
|
<div
|
|
<div
|
|
@@ -133,9 +133,9 @@ const showDisSucTemp = computed(() => {
|
|
<ATooltip>
|
|
<ATooltip>
|
|
<template #title>
|
|
<template #title>
|
|
{{ $t('deviceWorkStatus.chillerUnit.condWaterTempIn') }}:
|
|
{{ $t('deviceWorkStatus.chillerUnit.condWaterTempIn') }}:
|
|
- {{ realTimeData?.[DevParamChillerUnit.冷却水回水温度] }}°C
|
|
|
|
|
|
+ {{ getFixedNum(realTimeData?.[DevParamChillerUnit.冷却水回水温度]) }}°C
|
|
</template>
|
|
</template>
|
|
- {{ realTimeData?.[DevParamChillerUnit.冷却水回水温度] }}°C
|
|
|
|
|
|
+ {{ getFixedNum(realTimeData?.[DevParamChillerUnit.冷却水回水温度]) }}°C
|
|
</ATooltip>
|
|
</ATooltip>
|
|
</div>
|
|
</div>
|
|
<div
|
|
<div
|
|
@@ -146,9 +146,9 @@ const showDisSucTemp = computed(() => {
|
|
<ATooltip>
|
|
<ATooltip>
|
|
<template #title>
|
|
<template #title>
|
|
{{ $t('deviceWorkStatus.chillerUnit.condWaterTempOut') }}:
|
|
{{ $t('deviceWorkStatus.chillerUnit.condWaterTempOut') }}:
|
|
- {{ realTimeData?.[DevParamChillerUnit.冷却水出水温度] }}°C
|
|
|
|
|
|
+ {{ getFixedNum(realTimeData?.[DevParamChillerUnit.冷却水出水温度]) }}°C
|
|
</template>
|
|
</template>
|
|
- {{ realTimeData?.[DevParamChillerUnit.冷却水出水温度] }}°C
|
|
|
|
|
|
+ {{ getFixedNum(realTimeData?.[DevParamChillerUnit.冷却水出水温度]) }}°C
|
|
</ATooltip>
|
|
</ATooltip>
|
|
</div>
|
|
</div>
|
|
<template v-if="showEvapCondTempPre">
|
|
<template v-if="showEvapCondTempPre">
|
|
@@ -159,9 +159,10 @@ const showDisSucTemp = computed(() => {
|
|
>
|
|
>
|
|
<ATooltip>
|
|
<ATooltip>
|
|
<template #title>
|
|
<template #title>
|
|
- {{ $t('deviceWorkStatus.chillerUnit.evapPre') }}: {{ realTimeData?.[DevParamChillerUnit.蒸发压力] }}kPa
|
|
|
|
|
|
+ {{ $t('deviceWorkStatus.chillerUnit.evapPre') }}:
|
|
|
|
+ {{ getFixedNum(realTimeData?.[DevParamChillerUnit.蒸发压力]) }}kPa
|
|
</template>
|
|
</template>
|
|
- {{ realTimeData?.[DevParamChillerUnit.蒸发压力] }}kPa
|
|
|
|
|
|
+ {{ getFixedNum(realTimeData?.[DevParamChillerUnit.蒸发压力]) }}kPa
|
|
</ATooltip>
|
|
</ATooltip>
|
|
</div>
|
|
</div>
|
|
<div
|
|
<div
|
|
@@ -171,9 +172,10 @@ const showDisSucTemp = computed(() => {
|
|
>
|
|
>
|
|
<ATooltip>
|
|
<ATooltip>
|
|
<template #title>
|
|
<template #title>
|
|
- {{ $t('deviceWorkStatus.chillerUnit.evapTemp') }}: {{ realTimeData?.[DevParamChillerUnit.蒸发温度] }}°C
|
|
|
|
|
|
+ {{ $t('deviceWorkStatus.chillerUnit.evapTemp') }}:
|
|
|
|
+ {{ getFixedNum(realTimeData?.[DevParamChillerUnit.蒸发温度]) }}°C
|
|
</template>
|
|
</template>
|
|
- {{ realTimeData?.[DevParamChillerUnit.蒸发温度] }}°C
|
|
|
|
|
|
+ {{ getFixedNum(realTimeData?.[DevParamChillerUnit.蒸发温度]) }}°C
|
|
</ATooltip>
|
|
</ATooltip>
|
|
</div>
|
|
</div>
|
|
<div
|
|
<div
|
|
@@ -183,9 +185,10 @@ const showDisSucTemp = computed(() => {
|
|
>
|
|
>
|
|
<ATooltip>
|
|
<ATooltip>
|
|
<template #title>
|
|
<template #title>
|
|
- {{ $t('deviceWorkStatus.chillerUnit.condPre') }}: {{ realTimeData?.[DevParamChillerUnit.冷凝压力] }}kPa
|
|
|
|
|
|
+ {{ $t('deviceWorkStatus.chillerUnit.condPre') }}:
|
|
|
|
+ {{ getFixedNum(realTimeData?.[DevParamChillerUnit.冷凝压力]) }}kPa
|
|
</template>
|
|
</template>
|
|
- {{ realTimeData?.[DevParamChillerUnit.冷凝压力] }}kPa
|
|
|
|
|
|
+ {{ getFixedNum(realTimeData?.[DevParamChillerUnit.冷凝压力]) }}kPa
|
|
</ATooltip>
|
|
</ATooltip>
|
|
</div>
|
|
</div>
|
|
<div
|
|
<div
|
|
@@ -195,9 +198,10 @@ const showDisSucTemp = computed(() => {
|
|
>
|
|
>
|
|
<ATooltip>
|
|
<ATooltip>
|
|
<template #title>
|
|
<template #title>
|
|
- {{ $t('deviceWorkStatus.chillerUnit.condTemp') }}: {{ realTimeData?.[DevParamChillerUnit.冷凝温度] }}°C
|
|
|
|
|
|
+ {{ $t('deviceWorkStatus.chillerUnit.condTemp') }}:
|
|
|
|
+ {{ getFixedNum(realTimeData?.[DevParamChillerUnit.冷凝温度]) }}°C
|
|
</template>
|
|
</template>
|
|
- {{ realTimeData?.[DevParamChillerUnit.冷凝温度] }}°C
|
|
|
|
|
|
+ {{ getFixedNum(realTimeData?.[DevParamChillerUnit.冷凝温度]) }}°C
|
|
</ATooltip>
|
|
</ATooltip>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
@@ -209,9 +213,10 @@ const showDisSucTemp = computed(() => {
|
|
>
|
|
>
|
|
<ATooltip>
|
|
<ATooltip>
|
|
<template #title>
|
|
<template #title>
|
|
- {{ $t('deviceWorkStatus.chillerUnit.disTemp') }}: {{ realTimeData?.[DevParamChillerUnit.排气温度] }}°C
|
|
|
|
|
|
+ {{ $t('deviceWorkStatus.chillerUnit.disTemp') }}:
|
|
|
|
+ {{ getFixedNum(realTimeData?.[DevParamChillerUnit.排气温度], 1) }}°C
|
|
</template>
|
|
</template>
|
|
- {{ realTimeData?.[DevParamChillerUnit.排气温度] }}°C
|
|
|
|
|
|
+ {{ getFixedNum(realTimeData?.[DevParamChillerUnit.排气温度], 1) }}°C
|
|
</ATooltip>
|
|
</ATooltip>
|
|
</div>
|
|
</div>
|
|
<div
|
|
<div
|
|
@@ -221,9 +226,10 @@ const showDisSucTemp = computed(() => {
|
|
>
|
|
>
|
|
<ATooltip>
|
|
<ATooltip>
|
|
<template #title>
|
|
<template #title>
|
|
- {{ $t('deviceWorkStatus.chillerUnit.sucTemp') }}: {{ realTimeData?.[DevParamChillerUnit.吸气温度] }}°C
|
|
|
|
|
|
+ {{ $t('deviceWorkStatus.chillerUnit.sucTemp') }}:
|
|
|
|
+ {{ getFixedNum(realTimeData?.[DevParamChillerUnit.吸气温度], 1) }}°C
|
|
</template>
|
|
</template>
|
|
- {{ realTimeData?.[DevParamChillerUnit.吸气温度] }}°C
|
|
|
|
|
|
+ {{ getFixedNum(realTimeData?.[DevParamChillerUnit.吸气温度], 1) }}°C
|
|
</ATooltip>
|
|
</ATooltip>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
@@ -235,7 +241,7 @@ const showDisSucTemp = computed(() => {
|
|
<div class="device-card-value" :data-param-code="DevParamChillerUnit.冷冻水出水温度设定值反馈">
|
|
<div class="device-card-value" :data-param-code="DevParamChillerUnit.冷冻水出水温度设定值反馈">
|
|
{{
|
|
{{
|
|
isNotEmptyVal(realTimeData?.[DevParamChillerUnit.冷冻水出水温度设定值反馈])
|
|
isNotEmptyVal(realTimeData?.[DevParamChillerUnit.冷冻水出水温度设定值反馈])
|
|
- ? realTimeData?.[DevParamChillerUnit.冷冻水出水温度设定值反馈] + '°C'
|
|
|
|
|
|
+ ? getFixedNum(realTimeData?.[DevParamChillerUnit.冷冻水出水温度设定值反馈], 1) + '°C'
|
|
: '-'
|
|
: '-'
|
|
}}
|
|
}}
|
|
</div>
|
|
</div>
|
|
@@ -243,7 +249,7 @@ const showDisSucTemp = computed(() => {
|
|
<div>
|
|
<div>
|
|
<div class="device-card-label">{{ $t('deviceWorkStatus.chillerUnit.todayPowerConsumption') }} (kWh)</div>
|
|
<div class="device-card-label">{{ $t('deviceWorkStatus.chillerUnit.todayPowerConsumption') }} (kWh)</div>
|
|
<div class="device-card-value device-card-no-history">
|
|
<div class="device-card-value device-card-no-history">
|
|
- {{ realTimeData?.[DevParamChillerUnit.今日耗电量] ?? '-' }}
|
|
|
|
|
|
+ {{ getFixedNum(realTimeData?.[DevParamChillerUnit.今日耗电量], 1) }}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div>
|
|
@@ -251,7 +257,7 @@ const showDisSucTemp = computed(() => {
|
|
<div class="device-card-value device-card-no-history">
|
|
<div class="device-card-value device-card-no-history">
|
|
{{
|
|
{{
|
|
isNotEmptyVal(realTimeData?.[DevParamChillerUnit.本月耗电量])
|
|
isNotEmptyVal(realTimeData?.[DevParamChillerUnit.本月耗电量])
|
|
- ? realTimeData?.[DevParamChillerUnit.本月耗电量] + $t('common.tenThousand')
|
|
|
|
|
|
+ ? getFixedNum(realTimeData?.[DevParamChillerUnit.本月耗电量]) + $t('common.tenThousand')
|
|
: '-'
|
|
: '-'
|
|
}}
|
|
}}
|
|
</div>
|
|
</div>
|
|
@@ -356,7 +362,7 @@ const showDisSucTemp = computed(() => {
|
|
|
|
|
|
&.dis-temp {
|
|
&.dis-temp {
|
|
top: 52px;
|
|
top: 52px;
|
|
- right: 71px;
|
|
|
|
|
|
+ right: 65px;
|
|
}
|
|
}
|
|
|
|
|
|
&.suc-temp {
|
|
&.suc-temp {
|