From 9d36ae6b00c25c5144ea17543902876ee2b5f91f Mon Sep 17 00:00:00 2001 From: huang <1724659546@qq.com> Date: Mon, 8 Sep 2025 19:56:05 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E6=8E=89=E8=AE=BE=E5=A4=87=E4=BF=A1?= =?UTF-8?q?=E6=81=AF=E4=B8=AD=E7=9A=84status=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- TODO-List | 6 + frontend/device.html | 28 -- frontend/src/pages/Device.vue | 450 ++++++++++----------------- internal/controller/device/device.go | 5 +- internal/model/device.go | 3 - 5 files changed, 168 insertions(+), 324 deletions(-) create mode 100644 TODO-List diff --git a/TODO-List b/TODO-List new file mode 100644 index 0000000..07243fc --- /dev/null +++ b/TODO-List @@ -0,0 +1,6 @@ +// TODO 列表 + +1. websocket不是安全的wss +2. 添加设备时应该激活一下设备状态采集 +3. 设备Model缺少硬件地址 + diff --git a/frontend/device.html b/frontend/device.html index 4d6b379..bc66784 100644 --- a/frontend/device.html +++ b/frontend/device.html @@ -292,15 +292,6 @@ color: white; } - .status-active { - color: #28a745; - font-weight: bold; - } - - .status-inactive { - color: #dc3545; - font-weight: bold; - } @media (max-width: 768px) { .dashboard-grid { @@ -378,13 +369,6 @@ -