|
|
@@ -0,0 +1,154 @@
|
|
|
+import { id } from 'element-plus/es/locale';
|
|
|
+
|
|
|
+const trafficRoutes = {
|
|
|
+ id: 4000,
|
|
|
+ parentId: -1,
|
|
|
+ name: 'Traffic',
|
|
|
+ path: '/traffic',
|
|
|
+ component: 'MENU_LAYOUT',
|
|
|
+ meta: {
|
|
|
+ title: '交通安全',
|
|
|
+ icon: 'CameraOutlined',
|
|
|
+ isRoot: false,
|
|
|
+ hidden: false,
|
|
|
+ noCache: false,
|
|
|
+ },
|
|
|
+ children: [
|
|
|
+ {
|
|
|
+ id: 4001,
|
|
|
+ parentId: 4000,
|
|
|
+ name: 'traffic-overview',
|
|
|
+ path: 'overview',
|
|
|
+ component: '/traffic/overview/Overview',
|
|
|
+ redirect: '',
|
|
|
+ meta: {
|
|
|
+ title: '总览',
|
|
|
+ icon: 'OverviewIcon',
|
|
|
+ isRoot: false,
|
|
|
+ hidden: false,
|
|
|
+ noCache: false,
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ id: 4002,
|
|
|
+ parentId: 4000,
|
|
|
+ name: 'traffic-regulation',
|
|
|
+ path: 'regulation',
|
|
|
+ component: '/traffic/regulation/Regulation',
|
|
|
+ redirect: '',
|
|
|
+ meta: {
|
|
|
+ title: '管理规定与通知',
|
|
|
+ icon: 'TrafficRegulationIcon',
|
|
|
+ isRoot: false,
|
|
|
+ hidden: false,
|
|
|
+ noCache: false,
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ id: 4003,
|
|
|
+ parentId: 4000,
|
|
|
+ name: 'traffic-regulation-item',
|
|
|
+ path: 'regulation-item',
|
|
|
+ component: '/traffic/regulation-item/RegulationItem',
|
|
|
+ redirect: '',
|
|
|
+ meta: {
|
|
|
+ title: '管理规定与通知详情',
|
|
|
+ activeMenu: '/traffic/regulation',
|
|
|
+ isRoot: false,
|
|
|
+ hidden: true,
|
|
|
+ noCache: false,
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ id: 4004,
|
|
|
+ parentId: 4000,
|
|
|
+ name: 'traffic-violation',
|
|
|
+ path: 'violation',
|
|
|
+ redirect: '',
|
|
|
+ meta: {
|
|
|
+ title: '交通违规管理',
|
|
|
+ icon: 'TrafficViolationIcon',
|
|
|
+ isRoot: false,
|
|
|
+ hidden: false,
|
|
|
+ noCache: false,
|
|
|
+ },
|
|
|
+ children: [
|
|
|
+ {
|
|
|
+ id: 400401,
|
|
|
+ parentId: 4004,
|
|
|
+ name: 'traffic-violation-act',
|
|
|
+ path: 'act',
|
|
|
+ redirect: '',
|
|
|
+ component: '/traffic/violation/act/Act',
|
|
|
+ meta: {
|
|
|
+ title: '违规行为',
|
|
|
+ isRoot: false,
|
|
|
+ hidden: false,
|
|
|
+ noCache: false,
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ id: 400402,
|
|
|
+ parentId: 4004,
|
|
|
+ name: 'traffic-violation-act-item',
|
|
|
+ path: 'act-item',
|
|
|
+
|
|
|
+ component: '/traffic/violation/act-item/ActItem',
|
|
|
+ meta: {
|
|
|
+ activeMenu: '/traffic/violation/act',
|
|
|
+ title: '违规行为详情',
|
|
|
+ isRoot: false,
|
|
|
+ hidden: true,
|
|
|
+ noCache: false,
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ id: 400403,
|
|
|
+ parentId: 4004,
|
|
|
+ name: 'traffic-violation-notice',
|
|
|
+ path: 'notice',
|
|
|
+
|
|
|
+ component: '/traffic/violation/notice/Notice',
|
|
|
+ meta: {
|
|
|
+ title: '违规通知',
|
|
|
+ isRoot: false,
|
|
|
+ hidden: false,
|
|
|
+ noCache: false,
|
|
|
+ },
|
|
|
+ },
|
|
|
+ ],
|
|
|
+ },
|
|
|
+ {
|
|
|
+ id: 4005,
|
|
|
+ parentId: 4000,
|
|
|
+ name: 'traffic-accident',
|
|
|
+ path: 'accident',
|
|
|
+ component: '/traffic/accidents/Accident',
|
|
|
+ redirect: '',
|
|
|
+ meta: {
|
|
|
+ title: '交通事故管理',
|
|
|
+ icon: 'TrafficAccidentIcon',
|
|
|
+ isRoot: false,
|
|
|
+ hidden: false,
|
|
|
+ noCache: false,
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ id: 4006,
|
|
|
+ parentId: 4000,
|
|
|
+ name: 'traffic-vehicle',
|
|
|
+ path: 'vehicle',
|
|
|
+ component: '/traffic/vehicle/Vehicle',
|
|
|
+ redirect: '',
|
|
|
+ meta: {
|
|
|
+ title: '车辆信息管理',
|
|
|
+ icon: 'TrafficVehicleIcon',
|
|
|
+ isRoot: false,
|
|
|
+ hidden: true,
|
|
|
+ noCache: false,
|
|
|
+ },
|
|
|
+ },
|
|
|
+ ],
|
|
|
+};
|
|
|
+
|
|
|
+export default trafficRoutes;
|