瀏覽代碼

fix(views): 优化单位格式,单位是kw,全部改为kW

wangshun 2 周之前
父節點
當前提交
7c6e038674

+ 7 - 7
src/i18n/locales/zh.json

@@ -279,11 +279,11 @@
     "modelNumber": "型号",
     "motorCoolingMethod": "电机冷却方式",
     "newlyAddedGroup": "新增分组",
-    "nominalCoolingcapacity": "名义制冷量(kw)",
+    "nominalCoolingcapacity": "名义制冷量(kW)",
     "nominalCopHeating": "名义COP(制热)",
     "nominalCopRefrigeration": "名义COP(制冷)",
     "nominalVolumetric": "公称容积流量(m³/min)",
-    "nominalcalorificvalue": "名义制热量(kw)",
+    "nominalcalorificvalue": "名义制热量(kW)",
     "numberUnitCircuits": "机组回路数量",
     "outletPipeDiameter": "出水管径(mm)",
     "parameterEncodingEmpty": "设备参数编码不能为空!",
@@ -305,7 +305,7 @@
     "ratedCurrent": "额定电流(A)",
     "ratedFlow": "额定流量(m³/h)",
     "ratedHead": "额定扬程(m)",
-    "ratedPower": "额定功率(KW)",
+    "ratedPower": "额定功率(kW)",
     "ratedVoltage": "额定电压(V)",
     "ratedWorkingPressure": "额定工作压力(bar)",
     "refrigerantDosage": "制冷剂充注量(kg)",
@@ -324,7 +324,7 @@
     "singleLoopCompressor": "单回路压缩机数量",
     "suggestion": "建议按「设备名」「序号」的方式命名,比如:电表1",
     "superiorGroup": "上级分组",
-    "uninstallPower": "卸载功率(KW)",
+    "uninstallPower": "卸载功率(kW)",
     "usingDepartment": "使用部门",
     "verifyData": "验证数据",
     "voltageLevel": "电压等级",
@@ -405,13 +405,13 @@
     "cumulativeCoolingCapacity": "累计冷量",
     "cumulativeElectricityConsumption": "累计用电量",
     "cumulativeElectricityCost": "累计电费",
-    "dailyElectricityUnit": "日均用电量(kwh)",
+    "dailyElectricityUnit": "日均用电量(kWh)",
     "deviceGroupName": "设备(组)名称",
     "deviceType": "设备类型",
     "efficientRoomEnergyStandard": "高效机房能效标准",
     "electricityConsumption": "电量",
     "electricityConsumptionGrowthRate": "电量环比增长",
-    "electricityConsumptionUnit": "电量(kwh)",
+    "electricityConsumptionUnit": "电量(kWh)",
     "electricityCost": "电费",
     "electricityCostUnit": "电费(元)",
     "electricityRatioUnit": "电量占比(%)",
@@ -422,7 +422,7 @@
     "realTimeValue": "实时值",
     "refrigerationPumpGroup": "冷冻泵组",
     "subItemEnergyEfficiency": "分项能效",
-    "tenThousandKwh": "万kwh",
+    "tenThousandKwh": "万kWh",
     "tenThousandYuan": "万元",
     "totalElectricityConsumption": "总电量",
     "totalElectricityCost": "总电费",

+ 3 - 3
src/views/energy-analysis/EnergyConsumption.vue

@@ -254,7 +254,7 @@ const pieOption = computed<EChartsOption>(() => {
 });
 
 const lineOption = computed<EChartsOption>(() => {
-  const unitText = isElectricityConsume.value ? 'kwh' : t('energyAnalysis.yuan');
+  const unitText = isElectricityConsume.value ? 'kWh' : t('energyAnalysis.yuan');
   const tooltipTitle = isElectricityConsume.value
     ? t('energyAnalysis.totalElectricityConsumption')
     : t('energyAnalysis.totalElectricityCost');
@@ -493,7 +493,7 @@ const devElectricityOption = computed<EChartsOption>(() => {
   return {
     title: [
       {
-        text: `${t('common.unit')}(kwh)`,
+        text: `${t('common.unit')}(kWh)`,
         textStyle: {
           color: '#999',
           fontSize: 12,
@@ -530,7 +530,7 @@ const devElectricityOption = computed<EChartsOption>(() => {
           let unit = '';
 
           if (seriesName === t('energyAnalysis.electricityConsumption')) {
-            unit = 'kwh';
+            unit = 'kWh';
           } else if (seriesName === t('energyAnalysis.electricityCost')) {
             unit = t('energyAnalysis.yuan');
           }

+ 7 - 7
src/views/energy-analysis/EnergyEfficiency.vue

@@ -289,7 +289,7 @@ const energyCardList = computed<CoolingEnergyCardItem[]>(() => {
     {
       type: CoolingDataType.ColdStationEfficiency,
       value: coolingRTDResult.value?.coolingStationEnergyEfficiency ?? '-',
-      unit: 'kw/kw',
+      unit: 'kW/kW',
       description: t('energyAnalysis.coolingStationEfficiency'),
       icon: coolingStationEfficiency,
       bgColor: '#FFF6E6',
@@ -297,7 +297,7 @@ const energyCardList = computed<CoolingEnergyCardItem[]>(() => {
     {
       type: CoolingDataType.CoolingCapacity,
       value: coolingRTDResult.value?.coolingStationCoolingData ?? '-',
-      unit: 'kw',
+      unit: 'kW',
       description: t('energyAnalysis.coolingStationCoolingCapacity'),
       icon: coolingCapacity,
       bgColor: '#EFF1FE',
@@ -305,7 +305,7 @@ const energyCardList = computed<CoolingEnergyCardItem[]>(() => {
     {
       type: CoolingDataType.Power,
       value: coolingRTDResult.value?.coolingStationOutputActivePower ?? '-',
-      unit: 'kw',
+      unit: 'kW',
       description: t('energyAnalysis.coolingStationCoolingPower'),
       icon: coolingPower,
       bgColor: 'var(--antd-color-primary-opacity-15)',
@@ -428,7 +428,7 @@ const gaugeOption = computed<EChartsOption>(() => {
         data: [
           {
             value,
-            name: 'kw/kw',
+            name: 'kW/kW',
           },
         ],
       },
@@ -511,7 +511,7 @@ const energyEfficiencyLineOption = computed<EChartsOption>(() => {
 
   return {
     title: {
-      text: `${t('energyAnalysis.energyEfficiency')}(kw/kw)`,
+      text: `${t('energyAnalysis.energyEfficiency')}(kW/kW)`,
       textStyle: {
         color: '#999',
         fontSize: 10,
@@ -536,7 +536,7 @@ const energyEfficiencyLineOption = computed<EChartsOption>(() => {
         );
 
         if (isEfficientRoomExisted) {
-          tableHtml += `<tr><td>${t('energyAnalysis.efficientRoomEnergyStandard')}</td><td>5.00kw/kw</td></tr>`;
+          tableHtml += `<tr><td>${t('energyAnalysis.efficientRoomEnergyStandard')}</td><td>5.00kW/kW</td></tr>`;
         }
 
         tempParms.forEach((param) => {
@@ -544,7 +544,7 @@ const energyEfficiencyLineOption = computed<EChartsOption>(() => {
             return;
           }
 
-          tableHtml += `<tr><td>${param.marker}${param.seriesName}</td><td>${param.value}kw/kw</td></tr>`;
+          tableHtml += `<tr><td>${param.marker}${param.seriesName}</td><td>${param.value}kW/kW</td></tr>`;
         });
 
         tableHtml += '</table>';

+ 3 - 3
src/views/real-time-monitor/DeviceCtrlModal.vue

@@ -201,7 +201,7 @@ defineExpose({
       </div>
       <div class="dev-ctrl-modal-item">
         <span>{{ $t('realTimeMonitor.activePower') }}</span>
-        <span>{{ deviceRealTimeData[DevParamChillerUnit.有功功率] ?? '-' }}kw</span>
+        <span>{{ deviceRealTimeData[DevParamChillerUnit.有功功率] ?? '-' }}kW</span>
       </div>
     </template>
     <template v-if="deviceType === DeviceType.冷却塔">
@@ -211,7 +211,7 @@ defineExpose({
       </div>
       <div class="dev-ctrl-modal-item">
         <span>{{ $t('realTimeMonitor.activePower') }}</span>
-        <span>{{ deviceRealTimeData[DevParamCoolingTower.有功功率] ?? '-' }}kw</span>
+        <span>{{ deviceRealTimeData[DevParamCoolingTower.有功功率] ?? '-' }}kW</span>
       </div>
       <div class="dev-ctrl-modal-item">
         <span>{{ $t('realTimeMonitor.runningTime') }}</span>
@@ -225,7 +225,7 @@ defineExpose({
       </div>
       <div class="dev-ctrl-modal-item">
         <span>{{ $t('realTimeMonitor.activePower') }}</span>
-        <span>{{ deviceRealTimeData[DevParamCoolingPump.有功功率] ?? '-' }}kw</span>
+        <span>{{ deviceRealTimeData[DevParamCoolingPump.有功功率] ?? '-' }}kW</span>
       </div>
       <div class="dev-ctrl-modal-item">
         <span>{{ $t('realTimeMonitor.runningTime') }}</span>