From aa05304d221b1883d746e686f390d6f3fba598a7 Mon Sep 17 00:00:00 2001
From: ZhangXianQiang <1135831638@qq.com>
Date: 星期五, 24 五月 2024 09:36:09 +0800
Subject: [PATCH] feat:动态数据中心

---
 src/router/index.js |   87 +++++++++----------------------------------
 1 files changed, 19 insertions(+), 68 deletions(-)

diff --git a/src/router/index.js b/src/router/index.js
index 1d08e0d..ca9f532 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -47,74 +47,6 @@
     hidden: true
   },
   {
-    path: '/car/vehicle-data-monitor',
-    component: Layout,
-    hidden: true,
-    children: [
-      {
-        path: 'index',
-        name: 'vehicle-data-monitor',
-        component: () => import('@/views/system/vehicle-data-monitor/index'),
-        meta: { title: '杞﹁締杩囧崱鍙f暟鎹竴鑷存��', activeMenu: '/system/vehicle-data-monitor' }
-      }
-    ]
-  },
-  {
-    path: '/car/equipment',
-    component: Layout,
-    hidden: true,
-    children: [
-      {
-        path: 'index',
-        name: 'equipment',
-        component: () => import('@/views/system/equipment/index'),
-        meta: { title: '璧勪骇绠$悊', activeMenu: '/system/equipment' }
-      }
-    ]
-  },
-  {
-    path: '/contract/score',
-    component: Layout,
-    hidden: true,
-    children: [
-      {
-        path: 'index',
-        name: 'score',
-        component: () => import('@/views/system/score/default/index'),
-        meta: { title: '鍚堝悓绉垎', activeMenu: '/system/score' }
-      }
-    ]
-  },
-  {
-    path: '/check-result/contract',
-    component: Layout,
-    hidden: true,
-    children: [
-      {
-        path: 'detail',
-        name: 'check-result-contract',
-        component: () => import('@/views/system/result/default/detail'),
-        meta: { title: '鍚堝悓缁撴灉璇︽儏', activeMenu: '/system/check-result/contract' }
-      }
-    ]
-  },
-  {
-    path: '/check-result/city',
-    component: Layout,
-    hidden: true,
-    children: [
-
-    ]
-  },
-  {
-    path: '/check-result/province',
-    component: Layout,
-    hidden: true,
-    children: [
-
-    ]
-  },
-  {
     path: '/register',
     component: () => import('@/views/register'),
     hidden: true
@@ -179,6 +111,25 @@
 
 // 鍔ㄦ�佽矾鐢憋紝鍩轰簬鐢ㄦ埛鏉冮檺鍔ㄦ�佸幓鍔犺浇
 export const dynamicRoutes = [
+
+  {
+    path: '/data-manage/data-detail',
+    component: Layout,
+    hidden: true,
+    permissions: ['data:manage:detail'],
+    children: [
+      {
+        path: 'index/:type/:typeId',
+        component: () => import('@/views/system/data-manage/data-detail'),
+        name: 'DataDetail',
+        meta: {  
+          title: '鏁版嵁璇︽儏',
+          activeMenu: '/data-manage'
+         }
+      }
+    ]
+  },
+
   {
     path: '/system/user-auth',
     component: Layout,

--
Gitblit v1.8.0