Browse Source

路由修改

zhongxiaoyu 2 years ago
parent
commit
3c030eb0dd

+ 33 - 33
src/router/routes/routes-file-four.ts

@@ -13,13 +13,13 @@ const HomeRoutes = {
     roles: ["system_settings_menu"],
   },
   children: [
-    {
-      path: "/systemSettings/securityPolicy",
-      name: "SecurityPolicy",
-      meta: { title: "登录策略", roles: ["login_strategy_page"] },
-      component: () =>
-        import("@/views/systemSettings/securityPolicy/index.vue"),
-    },
+    // {
+    //   path: "/systemSettings/securityPolicy",
+    //   name: "SecurityPolicy",
+    //   meta: { title: "登录策略", roles: ["login_strategy_page"] },
+    //   component: () =>
+    //     import("@/views/systemSettings/securityPolicy/index.vue"),
+    // },
     {
       path: "/systemSettings/securityPolicyedit",
       name: "SecurityPolicyedit",
@@ -28,32 +28,32 @@ const HomeRoutes = {
       component: () =>
         import("@/views/systemSettings/securityPolicy/securityPolicyedit.vue"),
     },
-    {
-      path: "/systemSettings/warningSet",
-      name: "WarningSet",
-      meta: { title: "预警告警维护", roles: ["alert_alarm_settings_page"] },
-      redirect: "/systemSettings/warningSet",
-      component: {
-        render: () => h(resolveComponent("router-view")),
-      },
-      children: [
-        {
-          path: "/systemSettings/warningSet",
-          name: "WarningSet",
-          hidden: true,
-          component: () =>
-            import("@/views/systemSettings/warningSet/index.vue"),
-        },
-        {
-          path: "/systemSettings/warningEdit",
-          name: "WarningEdit",
-          hidden: true,
-          meta: { title: "预警告警维护编辑" },
-          component: () =>
-            import("@/views/systemSettings/warningEdit/index.vue"),
-        },
-      ],
-    },
+    // {
+    //   path: "/systemSettings/warningSet",
+    //   name: "WarningSet",
+    //   meta: { title: "预警告警维护", roles: ["alert_alarm_settings_page"] },
+    //   redirect: "/systemSettings/warningSet",
+    //   component: {
+    //     render: () => h(resolveComponent("router-view")),
+    //   },
+    //   children: [
+    //     {
+    //       path: "/systemSettings/warningSet",
+    //       name: "WarningSet",
+    //       hidden: true,
+    //       component: () =>
+    //         import("@/views/systemSettings/warningSet/index.vue"),
+    //     },
+    //     {
+    //       path: "/systemSettings/warningEdit",
+    //       name: "WarningEdit",
+    //       hidden: true,
+    //       meta: { title: "预警告警维护编辑" },
+    //       component: () =>
+    //         import("@/views/systemSettings/warningEdit/index.vue"),
+    //     },
+    //   ],
+    // },
     {
       path: "/systemSettings/log",
       name: "log",

+ 26 - 0
src/router/routes/routes-file-three.ts

@@ -150,6 +150,32 @@ const HomeRoutes = {
       component: () =>
         import('@/views/BasicsData/equipmentMaintenance/index.vue'),
     },
+    {
+      path: "/BasicsData/warningSet",
+      name: "WarningSet",
+      meta: { title: "预警告警维护", roles: ["alert_alarm_settings_page"] },
+      redirect: "/BasicsData/warningSet",
+      component: {
+        render: () => h(resolveComponent("router-view")),
+      },
+      children: [
+        {
+          path: "/BasicsData/warningSet",
+          name: "WarningSet",
+          hidden: true,
+          component: () =>
+            import("@/views/systemSettings/warningSet/index.vue"),
+        },
+        {
+          path: "/BasicsData/warningEdit",
+          name: "WarningEdit",
+          hidden: true,
+          meta: { title: "预警告警维护编辑" },
+          component: () =>
+            import("@/views/systemSettings/warningEdit/index.vue"),
+        },
+      ],
+    },
   ],
 }
 

+ 7 - 0
src/router/routes/routes-file-two.ts

@@ -77,6 +77,13 @@ const HomeRoutes = {
       meta: { title: '应用管理', roles: ['application_managemen_page'] },
       component: () => import('@/views/userManagement/application/index.vue'),
     },
+    {
+      path: "/userManagement/securityPolicy",
+      name: "SecurityPolicy",
+      meta: { title: "登录策略", roles: ["login_strategy_page"] },
+      component: () =>
+        import("@/views/systemSettings/securityPolicy/index.vue"),
+    },
   ],
 }