运维服务中台
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

43 lines
1.9 KiB

import React from 'react';
import { IconCode } from '@douyinfe/semi-icons';
export function getNavItem (user, dispatch) {
return (
[
{
itemKey: 'facility',
text: '设备',
icon: <IconCode />,
items: [
{
itemKey: 'deviceQuery',
text: '设备查询',
icon: <iconpark-icon style={{ width: 20, height: 20 }} name="iconjianshezhong"></iconpark-icon>,
to: '/facility/deviceQuery/maintenanceRecords1',
items: [{
itemKey: 'maintenanceRecords1', to: '/facility/deviceQuery/maintenanceRecords1', text: '维护记录'
}]
}, {
itemKey: 'serverInformation',
text: '服务器信息',
icon: <iconpark-icon style={{ width: 20, height: 20 }} name="iconjianshezhong"></iconpark-icon>,
to: '/facility/serverInformation/monitor',
items: [{
itemKey: 'monitor', to: '/facility/serverInformation/monitor', text: '运维监控'
},{
itemKey: 'maintenanceRecords', to: '/facility/serverInformation/maintenanceRecords', text: '维护记录'
}]
},{
itemKey: 'other',
text: '其他',
icon: <iconpark-icon style={{ width: 20, height: 20 }} name="iconjianshezhong"></iconpark-icon>,
to: '/facility/other/other1',
items: [{
itemKey: 'other1', to: '/facility/other/other1', text: '其他'
}]
}
]
},
]
);
}