|
@@ -1,13 +1,13 @@
|
|
|
import Layout from "@/layout/index.vue";
|
|
|
import type { RouteRecordRaw } from "vue-router";
|
|
|
|
|
|
-const routes: Array<RouteRecordRaw> = [
|
|
|
+export const constantRoutes: Array<RouteRecordRaw> = [
|
|
|
{
|
|
|
path: "/",
|
|
|
- name: "index",
|
|
|
+ name: "RoleSelect",
|
|
|
component: () => import("@/views/index.vue"),
|
|
|
meta: {
|
|
|
- title: import.meta.env.VITE_APP_TITLE
|
|
|
+ title: '角色选择'
|
|
|
}
|
|
|
},
|
|
|
{
|
|
@@ -15,77 +15,6 @@ const routes: Array<RouteRecordRaw> = [
|
|
|
name: "YzyCallback",
|
|
|
component: () => import("@/components/YzyCallback/index.vue")
|
|
|
},
|
|
|
- {
|
|
|
- path: "/leader",
|
|
|
- name: "Leader",
|
|
|
- component: Layout,
|
|
|
- redirect: { name: "LeaderIndex" },
|
|
|
- children: [
|
|
|
- {
|
|
|
- path: "index",
|
|
|
- name: "LeaderIndex",
|
|
|
- component: () => import("@/views/leader/index.vue"),
|
|
|
- meta: {
|
|
|
- title: "首页",
|
|
|
- noCache: true
|
|
|
- }
|
|
|
- },
|
|
|
- {
|
|
|
- path: "mobile_control",
|
|
|
- name: "MobileControl",
|
|
|
- component: () => import("@/views/mobileControl/index.vue"),
|
|
|
- meta: {
|
|
|
- title: "移动指挥(平时态)",
|
|
|
- noCache: true
|
|
|
- }
|
|
|
- },
|
|
|
- {
|
|
|
- path: "rollCallDetails",
|
|
|
- name: "RollCallDetails",
|
|
|
- component: () => import("@/views/onlineRollCall/rollCallDetails.vue"),
|
|
|
- meta: {
|
|
|
- title: "选择抽查单位",
|
|
|
- noCache: true
|
|
|
- }
|
|
|
- },
|
|
|
- {
|
|
|
- path: "rollCallRecord2",
|
|
|
- name: "rollCallRecord2",
|
|
|
- component: () => import("@/views/onlineRollCall/rollCallRecord2.vue"),
|
|
|
- meta: {
|
|
|
- title: "点名记录",
|
|
|
- noCache: true
|
|
|
- }
|
|
|
- },
|
|
|
- // {
|
|
|
- // path: "mobile_control2",
|
|
|
- // name: "MobileControl2",
|
|
|
- // component: () => import("@/views/mobileControl2/index.vue"),
|
|
|
- // meta: {
|
|
|
- // title: "移动指挥(应急态)",
|
|
|
- // noCache: true
|
|
|
- // }
|
|
|
- // },
|
|
|
- {
|
|
|
- path: "address_book",
|
|
|
- name: "AddressBook",
|
|
|
- component: () => import("@/views/addressBook/index.vue"),
|
|
|
- meta: {
|
|
|
- title: "通讯录",
|
|
|
- noCache: true
|
|
|
- }
|
|
|
- },
|
|
|
- {
|
|
|
- path: "my",
|
|
|
- name: "My",
|
|
|
- component: () => import("@/views/about/index.vue"),
|
|
|
- meta: {
|
|
|
- title: "我",
|
|
|
- noCache: true
|
|
|
- }
|
|
|
- }
|
|
|
- ]
|
|
|
- },
|
|
|
{
|
|
|
path: "/warningSituation",
|
|
|
name: "WarningSituation",
|
|
@@ -122,6 +51,24 @@ const routes: Array<RouteRecordRaw> = [
|
|
|
noCache: true
|
|
|
}
|
|
|
},
|
|
|
+ {
|
|
|
+ path: "/hydrologicalMonitor",
|
|
|
+ name: "HydrologicalMonitor",
|
|
|
+ component: () => import("@/views/disasterRiskMonitor/hydrologicalMonitor/index.vue"),
|
|
|
+ meta: {
|
|
|
+ title: "水文监测",
|
|
|
+ noCache: true
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: "/reservoirMonitor",
|
|
|
+ name: "ReservoirMonitor",
|
|
|
+ component: () => import("@/views/disasterRiskMonitor/hydrologicalMonitor/reservoirMonitor.vue"),
|
|
|
+ meta: {
|
|
|
+ title: "水库监测",
|
|
|
+ noCache: true
|
|
|
+ }
|
|
|
+ },
|
|
|
{
|
|
|
path: "/infoReception",
|
|
|
name: "InfoReception",
|
|
@@ -270,4 +217,87 @@ const routes: Array<RouteRecordRaw> = [
|
|
|
}
|
|
|
];
|
|
|
|
|
|
-export default routes;
|
|
|
+// 领导端动态菜单
|
|
|
+export const leaderRoute: Array<RouteRecordRaw> = [
|
|
|
+ {
|
|
|
+ path: "/leader",
|
|
|
+ name: "Leader",
|
|
|
+ component: Layout,
|
|
|
+ children: [
|
|
|
+ {
|
|
|
+ path: "index",
|
|
|
+ name: "LeaderIndex",
|
|
|
+ component: () => import("@/views/leader/index.vue"),
|
|
|
+ meta: {
|
|
|
+ title: "首页",
|
|
|
+ noCache: true
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: "mobile_control",
|
|
|
+ name: "MobileControl",
|
|
|
+ component: () => import("@/views/mobileControl/index.vue"),
|
|
|
+ meta: {
|
|
|
+ title: "移动指挥(平时态)",
|
|
|
+ noCache: true
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: "rollCallDetails",
|
|
|
+ name: "RollCallDetails",
|
|
|
+ component: () => import("@/views/onlineRollCall/rollCallDetails.vue"),
|
|
|
+ meta: {
|
|
|
+ title: "选择抽查单位",
|
|
|
+ noCache: true
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: "rollCallRecord2",
|
|
|
+ name: "rollCallRecord2",
|
|
|
+ component: () => import("@/views/onlineRollCall/rollCallRecord2.vue"),
|
|
|
+ meta: {
|
|
|
+ title: "点名记录",
|
|
|
+ noCache: true
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: "address_book",
|
|
|
+ name: "AddressBook",
|
|
|
+ component: () => import("@/views/addressBook/index.vue"),
|
|
|
+ meta: {
|
|
|
+ title: "通讯录",
|
|
|
+ noCache: true
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: "my",
|
|
|
+ name: "My",
|
|
|
+ component: () => import("@/views/about/index.vue"),
|
|
|
+ meta: {
|
|
|
+ title: "我",
|
|
|
+ noCache: true
|
|
|
+ }
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ }
|
|
|
+];
|
|
|
+
|
|
|
+export const workerRoute = [
|
|
|
+ {
|
|
|
+ path: "/worker",
|
|
|
+ name: 'Worker',
|
|
|
+ component: Layout,
|
|
|
+ redirect: 'Index',
|
|
|
+ children: [
|
|
|
+ {
|
|
|
+ path: "index",
|
|
|
+ name: "WorkerIndex",
|
|
|
+ component: () => import("@/views/worker/index.vue"),
|
|
|
+ meta: {
|
|
|
+ title: "首页",
|
|
|
+ noCache: true
|
|
|
+ }
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ }
|
|
|
+];
|