|
|
|
import Vue from "vue";
|
|
|
|
import VueRouter from "vue-router";
|
|
|
|
|
|
|
|
Vue.use(VueRouter);
|
|
|
|
|
|
|
|
const routes = [
|
|
|
|
{
|
|
|
|
path: "/login",
|
|
|
|
component: () => import("../views/login/index.vue"),
|
|
|
|
meta: { title: "登录" },
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: "/",
|
|
|
|
redirect: "/dataReport",
|
|
|
|
component: () => import("../components/Home.vue"),
|
|
|
|
children: [
|
|
|
|
{
|
|
|
|
path: "/home",
|
|
|
|
component: () => import("../views/homePage/index.vue"),
|
|
|
|
name: "homepage",
|
|
|
|
meta: {
|
|
|
|
title: "首页",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: "/dataReport",
|
|
|
|
component: () => import("../views/dataReport/index.vue"),
|
|
|
|
name: "dataR1eport",
|
|
|
|
meta: {
|
|
|
|
title: "数据报表",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: "/equipment",
|
|
|
|
component: () => import("../views/equipment/index.vue"),
|
|
|
|
name: "equipment",
|
|
|
|
redirect: "/equipment/bdz",
|
|
|
|
meta: {
|
|
|
|
title: "设备台账管理",
|
|
|
|
},
|
|
|
|
children: [
|
|
|
|
{
|
|
|
|
path: "/equipment/bdz",
|
|
|
|
component: () => import("../views/equipment/bdz/index.vue"),
|
|
|
|
name: "bdz",
|
|
|
|
meta: {
|
|
|
|
title: "变电站",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: "/equipment/qyjg",
|
|
|
|
component: () => import("../views/equipment/qyjg/index.vue"),
|
|
|
|
name: "qyjg",
|
|
|
|
meta: {
|
|
|
|
title: "区域间隔",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: "/equipment/sblx",
|
|
|
|
component: () => import("../views/equipment/sblx/index.vue"),
|
|
|
|
name: "sblx",
|
|
|
|
meta: {
|
|
|
|
title: "设备类型",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: "/equipment/zsb",
|
|
|
|
component: () => import("../views/equipment/zsb/index.vue"),
|
|
|
|
name: "zsb",
|
|
|
|
meta: {
|
|
|
|
title: "主设备",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: "/equipment/jcsb",
|
|
|
|
component: () => import("../views/equipment/jcsb/index.vue"),
|
|
|
|
name: "jcsb",
|
|
|
|
meta: {
|
|
|
|
title: "监测设备",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: "/equipment/modevtype",
|
|
|
|
component: () => import("../views/equipment/modevtype/index.vue"),
|
|
|
|
name: "modevtype",
|
|
|
|
meta: {
|
|
|
|
title: "监测设备类型",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: "/equipment/monitoring",
|
|
|
|
component: () => import("../views/equipment/monitoring/index.vue"),
|
|
|
|
name: "monitoring",
|
|
|
|
meta: {
|
|
|
|
title: "监测设备管理",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: "/equipment/unitController",
|
|
|
|
component: () =>
|
|
|
|
import("../views/equipment/unitController/index.vue"),
|
|
|
|
name: "unitController",
|
|
|
|
meta: {
|
|
|
|
title: "计量单位配置",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: "/systemManagement",
|
|
|
|
component: () => import("../views/systemManagement/index.vue"),
|
|
|
|
name: "systemManagement",
|
|
|
|
meta: {
|
|
|
|
title: "系统管理",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: "/icdConfig",
|
|
|
|
component: () => import("../views/icdConfig/index.vue"),
|
|
|
|
name: "icdConfig",
|
|
|
|
meta: {
|
|
|
|
title: "icd配置",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: "/paramBinding",
|
|
|
|
component: () => import("../views/paramBinding/index.vue"),
|
|
|
|
name: "paramBinding",
|
|
|
|
meta: {
|
|
|
|
title: "参数绑定",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
];
|
|
|
|
|
|
|
|
const router = new VueRouter({
|
|
|
|
mode: "hash",
|
|
|
|
base: process.env.BASE_URL,
|
|
|
|
routes,
|
|
|
|
});
|
|
|
|
|
|
|
|
export default router;
|