From a9e70a832f89154190e14eeea4161a3fb32b29da Mon Sep 17 00:00:00 2001 From: tq <1916474859@qq,com> Date: Fri, 18 Oct 2024 15:58:03 +0800 Subject: [PATCH] =?UTF-8?q?=E6=AD=A5=E5=BA=8F=E5=9B=BD=E9=99=85=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Controllers/SwapMonitorController.cs | 5 ++ .../Controllers.SwapMonitorController.en.resx | 62 +++++++++---------- .../Controllers.SwapMonitorController.zh.resx | 26 ++++---- 3 files changed, 49 insertions(+), 44 deletions(-) diff --git a/WebStarter/Controllers/SwapMonitorController.cs b/WebStarter/Controllers/SwapMonitorController.cs index b8112c0..f0df26c 100644 --- a/WebStarter/Controllers/SwapMonitorController.cs +++ b/WebStarter/Controllers/SwapMonitorController.cs @@ -56,6 +56,11 @@ public class SwapMonitorController : ControllerBase { var respList = _swapMonitorService.GetSwapMonitorData(); + foreach (var item in respList.Data?.StateInfo) + { + item.StepName = _localizer[item.StepNo.ToString()]; + } + return respList; } diff --git a/WebStarter/Resources/Controllers.SwapMonitorController.en.resx b/WebStarter/Resources/Controllers.SwapMonitorController.en.resx index 7a86621..7c1177a 100644 --- a/WebStarter/Resources/Controllers.SwapMonitorController.en.resx +++ b/WebStarter/Resources/Controllers.SwapMonitorController.en.resx @@ -41,50 +41,50 @@ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - + - Idle - + Idel + - Vehicle Arrived (Entrance Radar Detected Vehicle Entering) - + RadarInFlag + - RFID Scan Completed - + Plc + - Cloud Platform Vehicle Authentication - + RfidReadFlag + - Vehicle In Position - + Carradar + - Vehicle Unlocked - + CarInPositionFlag + - Start Swapping - + SelectPackSuccess + - Old Battery Removed - + VelUnlockFlag + - Old Battery Stored - + DistributeSelectPackFlag + - New Battery Moved - + StartSwappingFlag + - New Battery Installed - + UnOldBatteryFlag + - Installation Completed - + InstallNewBatteryFlag + - Vehicle Locked - + FinishNewBatteryFlag + - Swapping Completed (Vehicle Departed) - + VelLockFlag + - Swapping Failed (Vehicle Departed) - + RadarOutFlag + \ No newline at end of file diff --git a/WebStarter/Resources/Controllers.SwapMonitorController.zh.resx b/WebStarter/Resources/Controllers.SwapMonitorController.zh.resx index 9924726..a425f1f 100644 --- a/WebStarter/Resources/Controllers.SwapMonitorController.zh.resx +++ b/WebStarter/Resources/Controllers.SwapMonitorController.zh.resx @@ -49,42 +49,42 @@ 车辆到站(入口雷达检测到车辆驶入) - rfid扫描完成 + PLC状态检测 - 云平台车辆认证 + rfid扫描完成 - 车辆到位 + 二次雷达检测 - 车辆解锁 + 车辆到位 - 开始换电 + 选包成功 - 拆旧电池完成 + 车辆解锁 - 入库旧电池完成 + 下发plc选包 - 搬运新电池完成 + 开始换电 - 安装新电池完成 + 拆旧电池完成 - 安装完成 + 安装新电池完成 - 车辆上锁 + 安装完成 - 换电完成(车辆驶离) + 车辆上锁 - 换电失败(车辆驶离) + 换电完成(车辆驶离) \ No newline at end of file