You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
xy-frontend/src/router/index.js

245 lines
6.2 KiB
JavaScript

2 years ago
import Vue from "vue";
import VueRouter from "vue-router";
Vue.use(VueRouter);
const routes = [
{
2 years ago
path: "/",
redirect: "/stritl",
2 years ago
component: () => import("../components/Home.vue"),
children: [
{
2 years ago
path: "/stritl",
2 years ago
component: () => import("../views/homePage/index.vue"),
2 years ago
name: "stritl",
2 years ago
meta: {
title: "首页",
icon: "el-icon-s-home",
2 years ago
keepAlive: true,
1 year ago
noAuth: true,
2 years ago
},
},
{
path: "/realTimeMonitor",
2 years ago
component: () => import("../views/realTimeMonitor/index.vue"),
name: "realTimeMonitor",
2 years ago
meta: {
title: "实时监控",
permission: true,
icon: "el-icon-camera",
2 years ago
keepAlive: true,
1 year ago
requiresAuth: true,
2 years ago
},
},
{
path: "/pictureRotation",
2 years ago
component: () => import("../views/pictureRotation/index.vue"),
name: "pictureRotation",
2 years ago
meta: {
title: "图片轮巡",
permission: true,
icon: "el-icon-camera",
2 years ago
keepAlive: true,
1 year ago
requiresAuth: true,
2 years ago
},
},
{
path: "/realTimeSearch",
2 years ago
component: () => import("../views/realTimeSearch/index.vue"),
name: "realTimeSearch",
2 years ago
meta: {
title: "历史图片",
permission: true,
icon: "el-icon-camera",
1 year ago
requiresAuth: true,
//keepAlive: true,
2 years ago
},
},
{
path: "/photoAlarm",
2 years ago
component: () => import("../views/alarmHandling/index.vue"),
name: "alarmHandling",
2 years ago
meta: {
title: "告警处理",
permission: true,
icon: "el-icon-camera",
2 years ago
keepAlive: true,
1 year ago
requiresAuth: true,
2 years ago
},
},
{
path: "/userManagement",
component: () => import("../views/system/user/userManagement.vue"),
2 years ago
name: "userManagement",
1 year ago
meta: {
title: "用户管理",
icon: "el-icon-monitor",
keepAlive: true,
requiresAuth: true,
},
2 years ago
},
{
path: "/roleManagement",
component: () => import("../views/system/roleManagement/index.vue"),
name: "roleManagement",
1 year ago
meta: {
title: "角色管理",
icon: "el-icon-monitor",
keepAlive: true,
requiresAuth: true,
},
},
{
path: "/menuManagement",
component: () => import("../views/system/menuManagement/index.vue"),
name: "menuManagement",
meta: {
title: "菜单功能管理",
icon: "el-icon-monitor",
keepAlive: true,
1 year ago
requiresAuth: true,
},
},
{
path: "/deviceUpgrade",
component: () => import("../views/system/deviceUpgrade/index.vue"),
name: "deviceUpgrade",
1 year ago
meta: {
title: "升级管理",
icon: "el-icon-monitor",
keepAlive: true,
requiresAuth: true,
},
},
2 years ago
{
path: "/globalTools",
2 years ago
component: () => import("../views/system/globalTools/index.vue"),
name: "globalTools",
1 year ago
meta: { title: "全局设置", keepAlive: true, requiresAuth: true },
2 years ago
},
{
path: "/lineInformation",
2 years ago
component: () => import("../views/lineInformation/index.vue"),
name: "lineInformation",
1 year ago
meta: {
title: "线路信息管理",
icon: "",
keepAlive: true,
requiresAuth: true,
},
2 years ago
},
{
path: "/towerInformation",
2 years ago
component: () => import("../views/towerInformation/index.vue"),
name: "towerInformation",
1 year ago
meta: {
title: "杆塔信息管理",
icon: "",
keepAlive: true,
requiresAuth: true,
},
2 years ago
},
{
path: "/cameraChannel",
2 years ago
component: () => import("../views/cameraChannel/index.vue"),
name: "cameraChannel",
1 year ago
meta: {
title: "通道管理",
icon: "",
keepAlive: true,
requiresAuth: true,
},
2 years ago
},
{
path: "/photographicDevice",
2 years ago
component: () => import("../views/photographicDevice/index.vue"),
name: "photographicDevice",
1 year ago
meta: {
title: "拍照装置管理",
icon: "",
keepAlive: true,
requiresAuth: true,
},
2 years ago
},
{
path: "/devicePhotoSchedule",
2 years ago
component: () => import("../views/devicePhotoSchedule/index.vue"),
name: "devicePhotoSchedule",
1 year ago
meta: {
title: "拍照时间表设置",
icon: "",
keepAlive: true,
requiresAuth: true,
},
2 years ago
},
2 years ago
{
path: "/waterMark",
2 years ago
component: () => import("../views/waterMark/index.vue"),
name: "waterMark",
1 year ago
meta: {
title: "水印下发",
icon: "",
keepAlive: true,
requiresAuth: true,
},
2 years ago
},
{
path: "/echarts",
2 years ago
component: () => import("../echartsDemo.vue"),
name: "echartsDemo",
1 year ago
meta: {
title: "echarts图表",
icon: "",
keepAlive: true,
requiresAuth: true,
},
},
1 year ago
2 years ago
//气象检测
1 year ago
{
path: "/weather",
component: () => import("../views/iceWeather/weather/index.vue"),
name: "weather",
meta: {
title: "气象检测",
icon: "",
keepAlive: true,
requiresAuth: true,
},
},
//覆冰
{
path: "/icing",
component: () => import("../views/iceWeather/icing/index.vue"),
name: "icing",
meta: { title: "覆冰", icon: "", keepAlive: true, requiresAuth: true },
},
2 years ago
],
},
{
path: "/login",
2 years ago
name: "login",
2 years ago
component: () => import("../views/login/index.vue"),
1 year ago
meta: { title: "登录", noAuth: true }, // 标记为免登录页面
},
{
// 权限页面
path: "/permission",
component: () =>
import(/* webpackChunkName: "permission" */ "../Permission.vue"),
meta: { title: "权限测试" },
2 years ago
},
];
const router = new VueRouter({
mode: "hash",
base: process.env.BASE_URL,
routes,
});
export default router;