feat(设备状态): 添加空闲状态并更新UI样式

- 在设备状态映射中添加空闲状态及其颜色配置
- 移除盘点按钮的图标以简化界面
- 更新设备详情模态框的背景渐变颜色
This commit is contained in:
zhang1106
2026-03-25 09:16:57 +08:00
parent 4e8d9be864
commit 6ebcb3f870
3 changed files with 3 additions and 6 deletions
@@ -283,7 +283,7 @@ const DeviceDetailModal = ({
<div <div
style={{ style={{
background: `linear-gradient(135deg, ${colors.primary.main} 0%, ${colors.primary.dark} 50%, ${colors.purple.main} 100%)`, background: `linear-gradient(135deg, #10b981 0%, #34d399 50%, #6ee7b7 100%)`,
padding: '28px 32px', padding: '28px 32px',
color: '#fff', color: '#fff',
position: 'relative', position: 'relative',
@@ -854,11 +854,7 @@ const InventoryTaskExecution = () => {
</Tooltip> </Tooltip>
</> </>
) : null} ) : null}
<Button <Button type="link" onClick={() => handleCheck(record)}>
type="link"
icon={<ScanOutlined />}
onClick={() => handleCheck(record)}
>
盘点 盘点
</Button> </Button>
</Space> </Space>
+1
View File
@@ -12,6 +12,7 @@ export const STATUS_MAP = {
maintenance: { text: '维护中', color: '#faad14', badgeColor: 'orange' }, maintenance: { text: '维护中', color: '#faad14', badgeColor: 'orange' },
offline: { text: '离线', color: '#8c8c8c', badgeColor: 'default' }, offline: { text: '离线', color: '#8c8c8c', badgeColor: 'default' },
fault: { text: '故障', color: '#ff4d4f', badgeColor: 'red' }, fault: { text: '故障', color: '#ff4d4f', badgeColor: 'red' },
idle: { text: '空闲', color: '#36cfc9', badgeColor: 'cyan' },
}; };
export const TYPE_MAP = { export const TYPE_MAP = {