From 5b86df5dd2fcea9a5825d39ea25b372d15c3cc5e Mon Sep 17 00:00:00 2001 From: root <295172551@qq.com> Date: Thu, 26 Jun 2025 00:27:34 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B4=A2=E6=94=BF=E8=B5=A4=E5=AD=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- LTEMvcApp/Views/Home/Index.cshtml | 82 +++++++++++++++++++++++-------- 1 file changed, 62 insertions(+), 20 deletions(-) diff --git a/LTEMvcApp/Views/Home/Index.cshtml b/LTEMvcApp/Views/Home/Index.cshtml index 732c526..fd38e46 100644 --- a/LTEMvcApp/Views/Home/Index.cshtml +++ b/LTEMvcApp/Views/Home/Index.cshtml @@ -9,10 +9,10 @@ } .client-table th { - background-color: #f8f9fa; + background-color: #f8f9fa !important; + color: #212529 !important; border-top: none; font-weight: 600; - color: #495057; } .client-table td { @@ -36,6 +36,19 @@ padding: 0.375rem 0.75rem; } + .badge-red, .badge.badge-red { + background-color: #ffd6d6 !important; + color: #111 !important; + font-weight: bold !important; + font-size: 1.1rem !important; + letter-spacing: 1px !important; + box-shadow: none !important; + padding: 0.375rem 0.75rem !important; + border-radius: 0.375rem !important; + display: inline-block !important; + text-shadow: none !important; + } + /* 页面容器 */ .card-body { max-height: calc(100vh - 280px); @@ -93,6 +106,29 @@ max-height: calc(100vh - 220px); } } + + .status-dot { + display: inline-block; + width: 12px; + height: 12px; + border-radius: 50%; + margin-right: 6px; + vertical-align: middle; + } + .status-running { + background: #28a745; + } + .status-stopped { + background: #dc3545; + } + .status-idle { + background: #adb5bd; + } + .status-text { + font-weight: bold; + color: #333; + vertical-align: middle; + }
@@ -131,19 +167,15 @@ @if (state == LTEMvcApp.Models.ClientState.Connected) { - 已连接 - } - else if (state == LTEMvcApp.Models.ClientState.Connecting) - { - 连接中 + 运行 } - else if (state == LTEMvcApp.Models.ClientState.Error) + else if (state == LTEMvcApp.Models.ClientState.Stop) { - 错误 + 未启动 } else { - 已停止 + 停止 } @@ -202,25 +234,35 @@ @section Scripts {