From 6ebcb3f87016f58847897298c36fbaa434fd13b1 Mon Sep 17 00:00:00 2001 From: zhang1106 <849185023@qq.com> Date: Wed, 25 Mar 2026 09:16:57 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E8=AE=BE=E5=A4=87=E7=8A=B6=E6=80=81):=20?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E7=A9=BA=E9=97=B2=E7=8A=B6=E6=80=81=E5=B9=B6?= =?UTF-8?q?=E6=9B=B4=E6=96=B0UI=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在设备状态映射中添加空闲状态及其颜色配置 - 移除盘点按钮的图标以简化界面 - 更新设备详情模态框的背景渐变颜色 --- frontend/src/components/device/DeviceDetailModal.jsx | 2 +- frontend/src/pages/InventoryTaskExecution.jsx | 6 +----- frontend/src/utils/deviceUtils.jsx | 1 + 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/frontend/src/components/device/DeviceDetailModal.jsx b/frontend/src/components/device/DeviceDetailModal.jsx index 040f5bb..39f8cfe 100644 --- a/frontend/src/components/device/DeviceDetailModal.jsx +++ b/frontend/src/components/device/DeviceDetailModal.jsx @@ -283,7 +283,7 @@ const DeviceDetailModal = ({
{ ) : null} - diff --git a/frontend/src/utils/deviceUtils.jsx b/frontend/src/utils/deviceUtils.jsx index ae17ac0..0a665f8 100644 --- a/frontend/src/utils/deviceUtils.jsx +++ b/frontend/src/utils/deviceUtils.jsx @@ -12,6 +12,7 @@ export const STATUS_MAP = { maintenance: { text: '维护中', color: '#faad14', badgeColor: 'orange' }, offline: { text: '离线', color: '#8c8c8c', badgeColor: 'default' }, fault: { text: '故障', color: '#ff4d4f', badgeColor: 'red' }, + idle: { text: '空闲', color: '#36cfc9', badgeColor: 'cyan' }, }; export const TYPE_MAP = {