From 74143a36857986a232941fc657d7c3d489414183 Mon Sep 17 00:00:00 2001 From: "gao.zhiyuan" Date: Mon, 3 Jul 2023 11:17:16 +0800 Subject: [PATCH] =?UTF-8?q?=E9=9A=90=E8=97=8F=E5=B7=A5=E5=8D=95=E5=88=86?= =?UTF-8?q?=E6=9E=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/client/src/sections/analysis/nav-item.jsx | 73 ++++++++++--------- web/client/src/sections/analysis/routes.js | 22 +++--- 2 files changed, 48 insertions(+), 47 deletions(-) diff --git a/web/client/src/sections/analysis/nav-item.jsx b/web/client/src/sections/analysis/nav-item.jsx index 2389033..68ea5ec 100644 --- a/web/client/src/sections/analysis/nav-item.jsx +++ b/web/client/src/sections/analysis/nav-item.jsx @@ -2,40 +2,41 @@ import React from 'react'; import { IconCode } from '@douyinfe/semi-icons'; export function getNavItem (user, dispatch) { - return ( - [ - { - itemKey: 'analysis', - text: '分析', - icon: , - items: [ - { - itemKey: 'problemAnalysis', - text: '问题分析', - icon: , - to: '/analysis/problemAnalysis/problemData', - items: [{ - itemKey: 'problemData', to: '/analysis/problemAnalysis/problemData', text: '问题数据' - }] - }, { - itemKey: 'operationAnalysis', - text: '运维分析', - icon: , - to: '/analysis/operationAnalysis/operationData', - items: [{ - itemKey: 'operationData', to: '/analysis/operationAnalysis/operationData', text: '运维数据' - }] - },{ - itemKey: 'workorderAnalysis', - text: '工单分析', - icon: , - to: '/analysis/workorderAnalysis/workorderData', - items: [{ - itemKey: 'workorderData', to: '/analysis/workorderAnalysis/workorderData', text: '工单数据' - }] - }, - ] - }, - ] - ); + return ( + [ + { + itemKey: 'analysis', + text: '分析', + icon: , + items: [ + { + itemKey: 'problemAnalysis', + text: '问题分析', + icon: , + to: '/analysis/problemAnalysis/problemData', + items: [{ + itemKey: 'problemData', to: '/analysis/problemAnalysis/problemData', text: '问题数据' + }] + }, { + itemKey: 'operationAnalysis', + text: '运维分析', + icon: , + to: '/analysis/operationAnalysis/operationData', + items: [{ + itemKey: 'operationData', to: '/analysis/operationAnalysis/operationData', text: '运维数据' + }] + }, + // { + // itemKey: 'workorderAnalysis', + // text: '工单分析', + // icon: , + // to: '/analysis/workorderAnalysis/workorderData', + // items: [{ + // itemKey: 'workorderData', to: '/analysis/workorderAnalysis/workorderData', text: '工单数据' + // }] + // }, + ] + }, + ] + ); } \ No newline at end of file diff --git a/web/client/src/sections/analysis/routes.js b/web/client/src/sections/analysis/routes.js index 1b07435..02475e9 100644 --- a/web/client/src/sections/analysis/routes.js +++ b/web/client/src/sections/analysis/routes.js @@ -29,17 +29,17 @@ export default [{ breadcrumb: '运维数据', }] }, - // { - // path: '/workorderAnalysis', - // key: 'workorderAnalysis', - // breadcrumb: '工单分析', - // childRoutes: [{ - // path: '/workorderData', - // key: 'workorderData', - // component: WorkorderData, - // breadcrumb: '工单数据', - // }] - // } + { + path: '/workorderAnalysis', + key: 'workorderAnalysis', + breadcrumb: '工单分析', + childRoutes: [{ + path: '/workorderData', + key: 'workorderData', + component: WorkorderData, + breadcrumb: '工单数据', + }] + } ] } }]; \ No newline at end of file