From 2f8efde07d3ecba6065635874126360b3ea82fd1 Mon Sep 17 00:00:00 2001
From: hcong <1050828145@qq.com>
Date: 星期四, 21 十一月 2024 13:43:43 +0800
Subject: [PATCH] 1. 添加echart的依赖、对应工具类 2. 添加基础产品以及对应菜单

---
 src/constants/menu.js |  149 ++++++++++++++++++++++++++++++++++++-------------
 1 files changed, 110 insertions(+), 39 deletions(-)

diff --git a/src/constants/menu.js b/src/constants/menu.js
index 5740439..87bb58f 100644
--- a/src/constants/menu.js
+++ b/src/constants/menu.js
@@ -4,7 +4,15 @@
     icon: 'Connection',
     name: '璐︽埛鍖归厤'
   }
-]
+];
+
+if (import.meta.env.DEV) {
+  MENU_COMMON.push({
+    path: '/common/docTest',
+    icon: 'Connection',
+    name: '鏂囨。鐢熸垚'
+  });
+}
 
 const MENU_FYSP = [
   // {
@@ -17,7 +25,81 @@
   {
     path: '/fysp/procheck',
     icon: 'CircleCheck',
-    name: '闂瀹℃牳'
+    name: '闂鏁存敼'
+  },
+  {
+    icon: 'List',
+    name: '浠诲姟绠$悊',
+    children: [
+      {
+        path: '/fysp/task/manage',
+        icon: 'CircleCheck',
+        name: '鐩戠浠诲姟'
+      },
+      {
+        path: '/fysp/sceneInfo',
+        icon: 'Files',
+        name: '鍦烘櫙淇℃伅'
+      }
+    ]
+  },
+  {
+    icon: 'DataAnalysis',
+    name: '鍩虹鏁版嵁浜у搧',
+    children: [
+      {
+        path: '/fysp/data-product/ProdScenseInfo',
+        icon: 'Document',
+        name: '鍦烘櫙娓呭崟',
+      },
+      {
+        path: '/fysp/data-product/ProdMonitorTaskInfo',
+        icon: 'Document',
+        name: '鐩戠娓呭崟',
+      },
+      {
+        path: '/fysp/data-product/ProdTreatmentDeviceInfo',
+        icon: 'Document',
+        name: '闃叉不璁惧娓呭崟',
+      },
+    ]
+  },
+  {
+    icon: 'DataAnalysis',
+    name: '涓棿鏁版嵁浜у搧',
+    children: [
+      {
+        path: '/fysp/data-product/profollow',
+        icon: 'Document',
+        name: '闂鍔ㄦ�佽窡韪�'
+      },
+      {
+        path: '/fysp/data-product/proanalysis',
+        icon: 'Document',
+        name: '闂鏁存敼鍒嗘瀽'
+      },
+      {
+        path: '/fysp/data-product/standardjudge',
+        icon: 'Document',
+        name: '瑙勮寖鎬ц瘎浼�'
+      },
+      {
+        path: '/fysp/data-product/dailyreport',
+        icon: 'Document',
+        name: '鏃ユ姤绠$悊'
+      }
+    ]
+  },
+  {
+    icon: 'DataAnalysis',
+    name: '鏈�缁堟暟鎹骇鍝�',
+    children: [
+      {
+        path: '/fysp/data-product/scenereport',
+        icon: 'Document',
+        name: '鍦烘櫙鍒嗘瀽鎶ュ憡'
+      }
+    ]
   },
   // {
   //   path: '/changecheck',
@@ -25,25 +107,20 @@
   //   name: '鏁存敼瀹℃牳',
   // },
   {
-    path: '/fysp/sceneInfo',
-    icon: 'Files',
-    name: '鍦烘櫙淇℃伅'
-  },
-  {
     icon: 'DocumentChecked',
     name: '鑷姩璇勪及',
     children: [
       {
         path: '/fysp/evaluation/evalutationTask',
         icon: 'MessageBox',
-        name: '璇勪及浠诲姟',
+        name: '璇勪及浠诲姟'
       },
       {
         path: '/fysp/evaluation/evalutationRecord',
         icon: 'Tickets',
-        name: '璇勪及璁板綍',
-      },
-    ],
+        name: '璇勪及璁板綍'
+      }
+    ]
   },
   {
     icon: 'Setting',
@@ -52,32 +129,26 @@
       {
         path: '/fysp/config/problemType',
         icon: 'List',
-        name: '鐩戠闂',
+        name: '鐩戠闂'
       },
-    ],
+      {
+        path: '/fysp/config/deviceMatch',
+        icon: 'List',
+        name: '璁惧鍖归厤'
+      },
+      {
+        //璇勪及瑙勫垯绠$悊
+        path: '/fysp/config/evalutationRule',
+        icon: 'List',
+        name: '璇勪及瑙勫垯'
+      }
+    ]
   },
-
-  // {
-  //   icon: 'Search',
-  //   name: '涓氬姟鍒嗘瀽',
-  //   children: [
-  //     {
-  //       path: '/analysis/profollow',
-  //       icon: 'Search',
-  //       name: '闂鍔ㄦ�佽窡韪�',
-  //     },
-  //     {
-  //       path: '/analysis/proanalysis',
-  //       icon: 'Search',
-  //       name: '闂鏁存敼鍒嗘瀽',
-  //     },
-  //     {
-  //       path: '/analysis/standardjudge',
-  //       icon: 'Search',
-  //       name: '瑙勮寖鎬ц瘎浼�',
-  //     },
-  //   ],
-  // },
+  {
+    path: '/fysp/support',
+    icon: 'Files',
+    name: '瀵瑰鏀寔'
+  },
   // {
   //   path: '/dailyreport',
   //   icon: 'Search',
@@ -124,7 +195,7 @@
   //   ]
   // },
   ...MENU_COMMON
-]
+];
 
 const MENU_FYTZ = [
   {
@@ -154,7 +225,7 @@
     ]
   },
   ...MENU_COMMON
-]
+];
 
 const MENU_FYPW = [
   {
@@ -162,6 +233,6 @@
     icon: 'Search',
     name: '鎺掓薄鎶借繍'
   }
-]
+];
 
-export { MENU_FYSP, MENU_FYTZ, MENU_FYPW, MENU_COMMON }
+export { MENU_FYSP, MENU_FYTZ, MENU_FYPW, MENU_COMMON };

--
Gitblit v1.9.3