样式和工单列表接口

This commit is contained in:
mmc
2026-05-15 15:39:28 +08:00
parent ae7368b3d0
commit bc48abc038
20 changed files with 251 additions and 93 deletions

View File

@@ -1,5 +1,5 @@
import React, { useState, useEffect } from 'react';
import { Layout, Typography, Menu } from 'antd';
import { Layout, Typography, Menu, Tabs } from 'antd';
import { AimOutlined, AppstoreOutlined, SettingOutlined } from '@ant-design/icons';
import DeviceOverviewPage from '../components/devices/DeviceOverviewPage';
import DeviceStatusPage from '../components/devices/DeviceStatusPage';
@@ -96,21 +96,30 @@ export default function DeviceIndexPage() {
};
return (
<Layout style={{ minHeight: '100vh', background: '#fff', overflow: 'hidden', scrollbarWidth: "thin", scrollbarColor: '#ccc transparent' }}>
<Layout style={{ minHeight: '100vh', overflow: 'hidden', scrollbarWidth: "thin", scrollbarColor: '#ccc transparent' }}>
<div style={{ display: 'flex', paddingBottom: "4px" }}>
<div style={{ padding: '8px 12px 0', flexShrink: 0 }}>
<Typography.Title level={4} style={{ margin: 0, fontSize: 'clamp(14px, 1.2vw, 18px)' }}>装备控制</Typography.Title>
<Text type="secondary" style={{ fontSize: '12px' }}>装备总览、状态监控与参数配置</Text>
{/*<Text type="secondary" style={{ fontSize: '12px' }}>装备总览、状态监控与参数配置</Text>*/}
</div>
<Header style={{ flex: 1, background: '#fff', padding: 0, borderBottom: '1px solid #f0f0f0', height: 40, lineHeight: '40px' }}>
<Header style={{
flex: 1, padding: 0, background: 'transparent',
backgroundColor: 'transparent', borderBottom: '1px solid #f0f0f0', height: 40, lineHeight: '40px'
}}>
<Menu
mode="horizontal"
selectedKeys={[activeTab]}
onClick={({ key }) => setActiveTab(key)}
items={tabs}
style={{ border: 0, height: 40, lineHeight: '40px' }}
/>
style={{
border: '0',
height: 40,
lineHeight: '40px',
background: 'transparent', // 这里直接写,不需要 !important
backgroundColor: 'transparent' // 兼容更好
}} />
</Header>
</div>
@@ -118,7 +127,7 @@ export default function DeviceIndexPage() {
maxHeight: 'calc(100vh - 40px)',
overflowY: 'auto',
background: '#f5f7fa',
padding: '8px',
padding: '8px 0px',
scrollbarWidth: "thin"
}}>
{renderContent()}