Browse Source

隐藏工单分析

dev
巴林闲侠 2 years ago
parent
commit
74143a3685
  1. 73
      web/client/src/sections/analysis/nav-item.jsx
  2. 22
      web/client/src/sections/analysis/routes.js

73
web/client/src/sections/analysis/nav-item.jsx

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

22
web/client/src/sections/analysis/routes.js

@ -29,17 +29,17 @@ export default [{
breadcrumb: '运维数据', breadcrumb: '运维数据',
}] }]
}, },
// { {
// path: '/workorderAnalysis', path: '/workorderAnalysis',
// key: 'workorderAnalysis', key: 'workorderAnalysis',
// breadcrumb: '工单分析', breadcrumb: '工单分析',
// childRoutes: [{ childRoutes: [{
// path: '/workorderData', path: '/workorderData',
// key: 'workorderData', key: 'workorderData',
// component: WorkorderData, component: WorkorderData,
// breadcrumb: '工单数据', breadcrumb: '工单数据',
// }] }]
// } }
] ]
} }
}]; }];
Loading…
Cancel
Save