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.
41 lines
1.8 KiB
41 lines
1.8 KiB
import React from 'react';
|
|
import { IconCode } from '@douyinfe/semi-icons';
|
|
|
|
export function getNavItem (user, dispatch) {
|
|
return (
|
|
[
|
|
{
|
|
itemKey: 'analysis',
|
|
text: '分析',
|
|
icon: <IconCode />,
|
|
items: [
|
|
{
|
|
itemKey: 'problemAnalysis',
|
|
text: '问题分析',
|
|
icon: <iconpark-icon style={{ width: 20, height: 20 }} name="iconfxwenti"></iconpark-icon>,
|
|
to: '/analysis/problemAnalysis/problemData',
|
|
items: [{
|
|
itemKey: 'problemData', to: '/analysis/problemAnalysis/problemData', text: '问题数据'
|
|
}]
|
|
}, {
|
|
itemKey: 'operationAnalysis',
|
|
text: '运维分析',
|
|
icon: <iconpark-icon style={{ width: 20, height: 20 }} name="iconfxyunwei"></iconpark-icon>,
|
|
to: '/analysis/operationAnalysis/operationData',
|
|
items: [{
|
|
itemKey: 'operationData', to: '/analysis/operationAnalysis/operationData', text: '运维数据'
|
|
}]
|
|
},{
|
|
itemKey: 'workorderAnalysis',
|
|
text: '工单分析',
|
|
icon: <iconpark-icon style={{ width: 20, height: 20 }} name="iconfxgongdan"></iconpark-icon>,
|
|
to: '/analysis/workorderAnalysis/workorderData',
|
|
items: [{
|
|
itemKey: 'workorderData', to: '/analysis/workorderAnalysis/workorderData', text: '工单数据'
|
|
}]
|
|
},
|
|
]
|
|
},
|
|
]
|
|
);
|
|
}
|