From d5df7d3bcc3fa1b3c9c671a614c4123e2a758558 Mon Sep 17 00:00:00 2001 From: zhaojingkui <1553836110@qq.com> Date: Sat, 17 May 2025 23:21:45 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=BA=86=E7=BD=91=E9=A1=B5?= =?UTF-8?q?=E6=93=8D=E4=BD=9C=E7=9A=84=E5=8A=9F=E8=83=BD,=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=E4=BA=86=E6=97=B6=E9=97=B4=E6=93=8D=E4=BD=9C=E6=98=BE?= =?UTF-8?q?=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pPowerManger/httpserver/dashboard.h | 170 ++++++++++++++++++--- src/pPowerManger/httpserver/httpserver.cpp | 2 +- 2 files changed, 154 insertions(+), 18 deletions(-) diff --git a/src/pPowerManger/httpserver/dashboard.h b/src/pPowerManger/httpserver/dashboard.h index 01ded9c..ee21935 100644 --- a/src/pPowerManger/httpserver/dashboard.h +++ b/src/pPowerManger/httpserver/dashboard.h @@ -106,6 +106,15 @@ const std::string DASHBOARD_HTML = R"row( background-color: rgba(231, 76, 60, 0.1); color: #c0392b; } + .status-pending { + background-color: rgba(241, 196, 15, 0.1); + color: #f39c12; + } + .status-timer { + font-size: 12px; + color: #7f8c8d; + margin-top: 4px; + } @@ -119,7 +128,8 @@ const std::string DASHBOARD_HTML = R"row( -
+
+
动力锂电池断路器
@@ -127,6 +137,8 @@ const std::string DASHBOARD_HTML = R"row(
+
+
推进电机断路器
@@ -134,6 +146,8 @@ const std::string DASHBOARD_HTML = R"row(
+
+
锂电池组仪表断路器
@@ -141,6 +155,8 @@ const std::string DASHBOARD_HTML = R"row(
+
+
DC/DC5模块断路器
@@ -148,6 +164,8 @@ const std::string DASHBOARD_HTML = R"row(
+
+
艏部高压配电箱断路器
@@ -155,6 +173,8 @@ const std::string DASHBOARD_HTML = R"row(
+
+
艉部FT装置4/5断路器
@@ -162,6 +182,8 @@ const std::string DASHBOARD_HTML = R"row(
+
+
艉舵开关1断路器
@@ -169,6 +191,8 @@ const std::string DASHBOARD_HTML = R"row(
+
+
艉舵开关2断路器
@@ -176,6 +200,8 @@ const std::string DASHBOARD_HTML = R"row(
+
+
FB预留断路器
@@ -183,6 +209,8 @@ const std::string DASHBOARD_HTML = R"row(
+
+
TYZ预留断路器
@@ -190,6 +218,8 @@ const std::string DASHBOARD_HTML = R"row(
+
+
预留断路器
@@ -197,6 +227,8 @@ const std::string DASHBOARD_HTML = R"row(
+
+
DC/DC5模块启动
@@ -204,6 +236,8 @@ const std::string DASHBOARD_HTML = R"row(
+
+
冷却系统启动
@@ -211,6 +245,8 @@ const std::string DASHBOARD_HTML = R"row(
+
+
@@ -223,7 +259,8 @@ const std::string DASHBOARD_HTML = R"row( -
+
+
启闭机构断路器
@@ -231,6 +268,8 @@ const std::string DASHBOARD_HTML = R"row(
+
+
桅杆舵机控制箱断路器
@@ -238,6 +277,8 @@ const std::string DASHBOARD_HTML = R"row(
+
+
XCZ断路器
@@ -245,6 +286,8 @@ const std::string DASHBOARD_HTML = R"row(
+
+
艏舵控制箱断路器
@@ -252,6 +295,8 @@ const std::string DASHBOARD_HTML = R"row(
+
+
敞水盖启动电缸断路器
@@ -259,6 +304,8 @@ const std::string DASHBOARD_HTML = R"row(
+
+
@@ -271,7 +318,8 @@ const std::string DASHBOARD_HTML = R"row( -
+
+
艏部低压配电箱断路器
@@ -279,6 +327,8 @@ const std::string DASHBOARD_HTML = R"row(
+
+
UNIT4仪表DC48V断路器
@@ -286,6 +336,8 @@ const std::string DASHBOARD_HTML = R"row(
+
+
DC-C1直流配电板断路器
@@ -293,6 +345,8 @@ const std::string DASHBOARD_HTML = R"row(
+
+
预留断路器1
@@ -300,6 +354,8 @@ const std::string DASHBOARD_HTML = R"row(
+
+
预留断路器2
@@ -307,6 +363,8 @@ const std::string DASHBOARD_HTML = R"row(
+
+
应急锂电池组2断路器
@@ -314,6 +372,8 @@ const std::string DASHBOARD_HTML = R"row(
+
+
@@ -326,7 +386,8 @@ const std::string DASHBOARD_HTML = R"row( -
+
+
UNIT2断路器
@@ -334,6 +395,8 @@ const std::string DASHBOARD_HTML = R"row(
+
+
UNIT3断路器
@@ -341,6 +404,8 @@ const std::string DASHBOARD_HTML = R"row(
+
+
UNIT5断路器
@@ -348,6 +413,8 @@ const std::string DASHBOARD_HTML = R"row(
+
+
艏部PZ装置断路器
@@ -355,6 +422,8 @@ const std::string DASHBOARD_HTML = R"row(
+
+
预留断路器1
@@ -362,6 +431,8 @@ const std::string DASHBOARD_HTML = R"row(
+
+
预留断路器2
@@ -369,6 +440,8 @@ const std::string DASHBOARD_HTML = R"row(
+
+
应急锂电池组1断路器
@@ -376,26 +449,89 @@ const std::string DASHBOARD_HTML = R"row(
+
+