feat(资产盘点): 新增暂存设备管理功能
This commit is contained in:
@@ -34,6 +34,7 @@ import {
|
||||
ApiOutlined,
|
||||
PartitionOutlined,
|
||||
CodepenOutlined,
|
||||
CloudUploadOutlined,
|
||||
} from '@ant-design/icons';
|
||||
import {
|
||||
BrowserRouter as Router,
|
||||
@@ -73,6 +74,7 @@ const CableManagement = lazy(() => import('./pages/CableManagement'));
|
||||
const PortManagement = lazy(() => import('./pages/PortManagement'));
|
||||
const InventoryManagement = lazy(() => import('./pages/InventoryManagement'));
|
||||
const InventoryTaskExecution = lazy(() => import('./pages/InventoryTaskExecution'));
|
||||
const PendingDeviceManagement = lazy(() => import('./pages/PendingDeviceManagement'));
|
||||
|
||||
const { Header, Content, Sider } = Layout;
|
||||
|
||||
@@ -199,6 +201,7 @@ const AppLayout = ({ children }) => {
|
||||
)
|
||||
return 'system-management';
|
||||
if (path.startsWith('/tickets')) return 'ticket-management';
|
||||
if (path.startsWith('/inventory') || path.startsWith('/pending-devices')) return 'inventory-management';
|
||||
return 'dashboard';
|
||||
};
|
||||
|
||||
@@ -321,6 +324,11 @@ const AppLayout = ({ children }) => {
|
||||
icon: <InboxOutlined style={{ fontSize: '16px' }} />,
|
||||
label: <Link to="/inventory">盘点计划</Link>,
|
||||
},
|
||||
{
|
||||
key: 'pending-devices',
|
||||
icon: <CloudUploadOutlined style={{ fontSize: '16px' }} />,
|
||||
label: <Link to="/pending-devices">暂存设备</Link>,
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
@@ -721,6 +729,14 @@ const ThemeConfig = () => {
|
||||
</PrivateRoute>
|
||||
}
|
||||
/>
|
||||
<Route
|
||||
path="/pending-devices"
|
||||
element={
|
||||
<PrivateRoute>
|
||||
<PendingDeviceManagement />
|
||||
</PrivateRoute>
|
||||
}
|
||||
/>
|
||||
<Route
|
||||
path="/ports"
|
||||
element={
|
||||
|
||||
Reference in New Issue
Block a user