Explorar o código

feat: 添加保卫保密菜单

wyf hai 7 meses
pai
achega
0e7d56a76e

+ 2 - 2
src/constant/nav.ts

@@ -31,8 +31,8 @@ export const NAV_LIST = [
     },
   },
   {
-    name: '保卫保密',
-    path: '',
+    name: 'SecurityConfidentiality',
+    path: '/security-confidentiality',
     meta: {
       title: '保卫保密',
     },

+ 2 - 0
src/router/full-routes.ts

@@ -14,6 +14,7 @@ import {
   platformRoutes,
   largeScreenRoutes,
   trafficRoutes,
+  securityConfidentialityRoutes,
 } from './routers';
 
 type RouteRecordString = Omit<AppRouteRecordRaw, 'component'> & { component?: string };
@@ -44,6 +45,7 @@ export const fullRoutes: AppRouteRecordRaw[] = [
   platformRoutes,
   largeScreenRoutes,
   trafficRoutes,
+  securityConfidentialityRoutes,
 ] as const;
 
 /**

+ 9 - 0
src/router/router-icons.ts

@@ -75,4 +75,13 @@ export const constantRouterIcon = {
   TrafficViolationIcon: renderSvg('traffic-violation'),
   TrafficAccidentIcon: renderSvg('traffic-accident'),
   TrafficVehicleIcon: renderSvg('traffic-vehicle'),
+  // TODO 修改
+  SecurityRegulationIcon: renderSvg('traffic-vehicle'),
+  ConfidentialityRegulationIcon: renderSvg('traffic-vehicle'),
+  SecurityPersonIcon: renderSvg('traffic-vehicle'),
+  SecurityAccessIcon: renderSvg('traffic-vehicle'),
+  SecurityVehicleIcon: renderSvg('traffic-vehicle'),
+  SecurityPositionIcon: renderSvg('traffic-vehicle'),
+  ConfidentialityPositionIcon: renderSvg('traffic-vehicle'),
+  SecuritySurveillanceIcon: renderSvg('traffic-vehicle'),
 };

+ 2 - 0
src/router/routers/index.ts

@@ -4,6 +4,7 @@ import emergencyManagementRoute from './emergency';
 import exceptionRouters from './exception';
 import largeScreenRoutes from './large-screen';
 import trafficRoutes from './traffic';
+import securityConfidentialityRoutes from './security-confidentiality';
 
 export {
   platformRoutes,
@@ -12,4 +13,5 @@ export {
   exceptionRouters,
   largeScreenRoutes,
   trafficRoutes,
+  securityConfidentialityRoutes,
 };

+ 222 - 0
src/router/routers/security-confidentiality.ts

@@ -0,0 +1,222 @@
+const securityConfidentialityRoutes = {
+  id: 5000,
+  parentId: -1,
+  name: 'SecurityConfidentiality',
+  path: '/security-confidentiality',
+  component: 'MENU_LAYOUT',
+  meta: {
+    title: '保卫保密',
+    icon: 'CameraOutlined',
+    isRoot: false,
+    hidden: false,
+    noCache: false,
+  },
+  children: [
+    {
+      id: 5001,
+      parentId: 5000,
+      name: 'security-confidentiality-overview',
+      path: 'overview',
+      component: '/security-confidentiality/overview/Overview',
+      redirect: '',
+      meta: {
+        title: '总览',
+        icon: 'OverviewIcon',
+        isRoot: false,
+        hidden: false,
+        noCache: false,
+      },
+    },
+    {
+      id: 5002,
+      parentId: 5000,
+      name: 'security-regulation-notice',
+      path: 'security-regulation-notice',
+      component: '/security-confidentiality/security-regulation-notice/SecurityRegulationNotice',
+      redirect: '',
+      meta: {
+        title: '保卫管理规定与通知',
+        icon: 'SecurityRegulationIcon',
+        isRoot: false,
+        hidden: false,
+        noCache: false,
+      },
+    },
+    {
+      id: 5003,
+      parentId: 5000,
+      name: 'security-regulation-notice-item',
+      path: 'security-regulation-notice-item',
+      component: '/security-confidentiality/security-regulation-notice/SecurityRegulationNoticeItem',
+      meta: {
+        activeMenu: '/security-confidentiality/security-regulation-notice',
+        title: '保卫管理规定与通知详情',
+        isRoot: false,
+        hidden: true,
+        noCache: false,
+      },
+    },
+    {
+      id: 5004,
+      parentId: 5000,
+      name: 'confidentiality-regulation-notice',
+      path: 'confidentiality-regulation-notice',
+      component: '/security-confidentiality/confidentiality-regulation-notice/ConfidentialityRegulationNotice',
+      redirect: '',
+      meta: {
+        title: '保密管理规定与通知',
+        icon: 'ConfidentialityRegulationIcon',
+        isRoot: false,
+        hidden: false,
+        noCache: false,
+      },
+    },
+    {
+      id: 5005,
+      parentId: 5000,
+      name: 'confidentiality-regulation-notice-item',
+      path: 'confidentiality-regulation-notice-item',
+      component: '/security-confidentiality/confidentiality-regulation-notice/ConfidentialityRegulationNoticeItem',
+      meta: {
+        activeMenu: '/security-confidentiality/confidentiality-regulation-notice',
+        title: '保密管理规定与通知详情',
+        isRoot: false,
+        hidden: true,
+        noCache: false,
+      },
+    },
+    {
+      id: 5006,
+      parentId: 5000,
+      name: 'security-confidentiality-person-management',
+      path: 'person-management',
+      redirect: '',
+      meta: {
+        title: '人员管理',
+        icon: 'SecurityPersonIcon',
+        isRoot: false,
+        hidden: false,
+        noCache: false,
+      },
+      children: [
+        {
+          id: 500601,
+          parentId: 5006,
+          name: 'security-confidentiality-inner-person-management',
+          path: 'inner-person',
+          component: '/security-confidentiality/person-management/inner-person/InnerPerson',
+          meta: {
+            title: '内部人员',
+            isRoot: false,
+            hidden: false,
+            noCache: false,
+          },
+        },
+        {
+          id: 500602,
+          parentId: 5006,
+          name: 'security-confidentiality-outer-person-management',
+          path: 'outer-person',
+          component: '/security-confidentiality/person-management/outer-person/OuterPerson',
+          meta: {
+            title: '外部人员',
+            isRoot: false,
+            hidden: false,
+            noCache: false,
+          },
+        },
+      ],
+    },
+    {
+      id: 5007,
+      parentId: 5000,
+      name: 'security-confidentiality-access-control',
+      path: 'access-control',
+      component: '/security-confidentiality/access-control/AccessControl',
+      redirect: '',
+      meta: {
+        title: '门禁事件记录',
+        icon: 'SecurityAccessIcon',
+        isRoot: false,
+        hidden: false,
+        noCache: false,
+      },
+    },
+    {
+      id: 5008,
+      parentId: 5000,
+      name: 'security-confidentiality-access-control-item',
+      path: 'access-control-item',
+      component: '/security-confidentiality/access-control/AccessControlItem',
+      meta: {
+        activeMenu: '/security-confidentiality/access-control',
+        title: '门禁事件记录详情',
+        isRoot: false,
+        hidden: true,
+        noCache: false,
+      },
+    },
+    {
+      id: 5009,
+      parentId: 5000,
+      name: 'security-confidentiality-vehicle-management',
+      path: 'vehicle-management',
+      component: '/security-confidentiality/vehicle-management/VehicleManagement',
+      redirect: '',
+      meta: {
+        title: '车辆出入记录',
+        icon: 'SecurityVehicleIcon',
+        isRoot: false,
+        hidden: false,
+        noCache: false,
+      },
+    },
+    {
+      id: 5010,
+      parentId: 5000,
+      name: 'security-confidentiality-security-position',
+      path: 'security-position',
+      component: '/security-confidentiality/security-position/SecurityPosition',
+      redirect: '',
+      meta: {
+        title: '治安重点部位',
+        icon: 'SecurityPositionIcon',
+        isRoot: false,
+        hidden: false,
+        noCache: false,
+      },
+    },
+    {
+      id: 5011,
+      parentId: 5000,
+      name: 'security-confidentiality-confidentiality-position',
+      path: 'confidentiality-position',
+      component: '/security-confidentiality/confidentiality-position/ConfidentialityPosition',
+      redirect: '',
+      meta: {
+        title: '保密要害部位',
+        icon: 'ConfidentialityPositionIcon',
+        isRoot: false,
+        hidden: false,
+        noCache: false,
+      },
+    },
+    {
+      id: 5012,
+      parentId: 5000,
+      name: 'security-confidentiality-surveillance-management',
+      path: 'surveillance-management',
+      component: '/security-confidentiality/surveillance-management/SurveillanceManagement',
+      redirect: '',
+      meta: {
+        title: '监控调阅记录',
+        icon: 'SecuritySurveillanceIcon',
+        isRoot: false,
+        hidden: false,
+        noCache: false,
+      },
+    },
+  ],
+};
+
+export default securityConfidentialityRoutes;

+ 7 - 0
src/views/security-confidentiality/access-control/AccessControl.vue

@@ -0,0 +1,7 @@
+<template>
+  <div> overview </div>
+</template>
+
+<script setup lang="ts"></script>
+
+<style scoped></style>

+ 7 - 0
src/views/security-confidentiality/access-control/AccessControlItem.vue

@@ -0,0 +1,7 @@
+<template>
+  <div> overview </div>
+</template>
+
+<script setup lang="ts"></script>
+
+<style scoped></style>

+ 7 - 0
src/views/security-confidentiality/confidentiality-position/ConfidentialityPosition.vue

@@ -0,0 +1,7 @@
+<template>
+  <div> overview </div>
+</template>
+
+<script setup lang="ts"></script>
+
+<style scoped></style>

+ 7 - 0
src/views/security-confidentiality/confidentiality-regulation-notice/ConfidentialityRegulationNotice.vue

@@ -0,0 +1,7 @@
+<template>
+  <div> overview </div>
+</template>
+
+<script setup lang="ts"></script>
+
+<style scoped></style>

+ 7 - 0
src/views/security-confidentiality/confidentiality-regulation-notice/ConfidentialityRegulationNoticeItem.vue

@@ -0,0 +1,7 @@
+<template>
+  <div> overview </div>
+</template>
+
+<script setup lang="ts"></script>
+
+<style scoped></style>

+ 7 - 0
src/views/security-confidentiality/overview/Overview.vue

@@ -0,0 +1,7 @@
+<template>
+  <div> overview </div>
+</template>
+
+<script setup lang="ts"></script>
+
+<style scoped></style>

+ 7 - 0
src/views/security-confidentiality/person-management/inner-person/InnerPerson.vue

@@ -0,0 +1,7 @@
+<template>
+  <div> overview </div>
+</template>
+
+<script setup lang="ts"></script>
+
+<style scoped></style>

+ 7 - 0
src/views/security-confidentiality/person-management/outer-person/OuterPerson.vue

@@ -0,0 +1,7 @@
+<template>
+  <div> overview </div>
+</template>
+
+<script setup lang="ts"></script>
+
+<style scoped></style>

+ 7 - 0
src/views/security-confidentiality/security-position/SecurityPosition.vue

@@ -0,0 +1,7 @@
+<template>
+  <div> overview </div>
+</template>
+
+<script setup lang="ts"></script>
+
+<style scoped></style>

+ 7 - 0
src/views/security-confidentiality/security-regulation-notice/SecurityRegulationNotice.vue

@@ -0,0 +1,7 @@
+<template>
+  <div> overview </div>
+</template>
+
+<script setup lang="ts"></script>
+
+<style scoped></style>

+ 7 - 0
src/views/security-confidentiality/security-regulation-notice/SecurityRegulationNoticeItem.vue

@@ -0,0 +1,7 @@
+<template>
+  <div> overview </div>
+</template>
+
+<script setup lang="ts"></script>
+
+<style scoped></style>

+ 7 - 0
src/views/security-confidentiality/surveillance-management/SurveillanceManagement.vue

@@ -0,0 +1,7 @@
+<template>
+  <div> overview </div>
+</template>
+
+<script setup lang="ts"></script>
+
+<style scoped></style>

+ 7 - 0
src/views/security-confidentiality/vehicle-management/VehicleManagement.vue

@@ -0,0 +1,7 @@
+<template>
+  <div> overview </div>
+</template>
+
+<script setup lang="ts"></script>
+
+<style scoped></style>