Commit 56afe8d5 authored by Administrator's avatar Administrator

导航

parent d7ab67f9
Pipeline #33 failed with stages
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1588665671458" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="1995" xmlns:xlink="http://www.w3.org/1999/xlink" width="128" height="128"><defs><style type="text/css"></style></defs><path d="M812.459479 754.517158c10.779874 5.389937 16.168811 14.820826 17.515795 26.947684 0 10.778874-5.389937 21.557747-14.820827 28.293669-9.431889 6.736921-21.557747 6.736921-30.989636 1.347984l-127.9985-64.673242c-10.778874-5.389937-17.514795-16.167811-17.514795-28.294669V572.62529c0-17.515795 14.819826-32.336621 32.335621-32.336622s32.336621 14.819826 32.336621 32.336622v126.650515l109.135721 55.241353z m-629.212626-342.22699c-9.431889 0-18.863779 2.693968-25.5997 9.43089-5.389937 5.389937-9.431889 14.820826-9.43189 22.905732 0 9.430889 2.693968 17.514795 9.43089 24.251715 6.736921 6.736921 14.820826 9.431889 25.5997 9.43189h140.124358c9.431889 0 18.863779-2.694968 25.5997-9.43189 6.736921-6.736921 9.431889-14.819826 9.431889-24.251715s-2.694968-17.515795-9.431889-22.905732c-6.735921-6.736921-16.167811-9.430889-25.5997-9.43089H183.245853z m0-161.682105c-12.126858 0-22.905732 6.735921-29.642653 17.514795-6.736921 9.431889-6.736921 22.905732 0 32.336621 6.736921 10.779874 16.167811 16.168811 29.641653 16.168811h408.248215c9.430889 0 17.515795-2.694968 24.251716-9.43189 6.736921-5.389937 9.431889-14.820826 9.43189-22.904732 0-9.431889-2.694968-17.515795-9.43189-24.252715s-14.819826-9.430889-24.251716-9.43089H183.245853z m688.495931 635.949548c48.505432-48.504432 72.757147-107.788737 74.105132-177.849916-1.347984-74.104132-25.5997-133.388437-74.105132-180.545884-47.157447-47.156447-106.440753-72.756147-179.1979-75.451116-72.757147 2.694968-132.040453 26.946684-179.1979 74.104131s-72.757147 106.440753-74.104131 179.1979c2.694968 72.757147 26.946684 130.693468 75.452115 179.1979 47.157447 47.157447 106.440753 71.409163 179.1979 74.104132 71.409163-1.346984 130.692468-25.5997 177.849916-72.757147z m45.809463-402.858279c59.284305 59.283305 90.273942 134.735421 92.968911 223.660379-2.694968 88.925958-32.337621 164.378074-92.968911 223.661379-59.282305 59.283305-134.734421 90.271942-223.659379 92.96691-74.105132-1.346984-137.430389-22.904732-191.324757-63.325258H91.625926c-36.378574 0-64.673242-29.641653-64.673242-66.020226v-788.200763c0-35.031589 28.294668-66.021226 64.673242-66.021227h662.897232c36.379574 0 64.673242 29.641653 64.673242 66.020227v309.891368c36.378574 16.167811 70.062179 39.073542 98.356847 67.367211z m0 0" p-id="1996" fill="#333333"></path></svg>
\ No newline at end of file
export default {
route: {
monitor: '实时监测',
dangerousChemicals: '危化监测',
fireControl: '消防监测',
map: '地图模式',
history: '记录',
historyAlarms: '报警记录',
historyData: '历史数据',
administrator: '超级管理员',
users: '用户',
dashboard: '首页',
introduction: '简述',
documentation: '文档',
......
......@@ -24,6 +24,8 @@ import nestedRoutes from './modules/nested';
import errorRoutes from './modules/error';
import excelRoutes from './modules/excel';
import permissionRoutes from './modules/permission';
import historyRoutes from './modules/history.js';
import monitorRoutes from './modules/monitor.js';
/**
* Sub-menu only appear when children.length>=1
......@@ -99,6 +101,24 @@ export const constantRoutes = [
},
],
},
{
path: '/map',
component: Layout,
redirect: '/map',
children: [
{
path: 'map',
component: () => import('@/views/map/index'),
name: 'Map',
meta: { title: 'map', icon: 'international', noCache: false },
},
],
},
monitorRoutes,
historyRoutes,
deviceRoutes,
usersRoutes,
adminRoutes,
{
path: '/documentation',
component: Layout,
......@@ -134,9 +154,6 @@ export const asyncRoutes = [
chartsRoutes,
nestedRoutes,
tableRoutes,
adminRoutes,
deviceRoutes,
usersRoutes,
{
path: '/theme',
component: Layout,
......@@ -213,19 +230,6 @@ export const asyncRoutes = [
},
],
},
{
path: '/wx_user',
component: Layout,
meta: { permissions: ['view menu wx_user'] },
children: [
{
path: 'wxuser/wxlist',
component: () => import('@/views/wx_user'),
name: 'wx_user',
meta: { title: 'wx_user', icon: 'wechat' },
},
],
},
{ path: '*', redirect: '/404', hidden: true },
];
......
......@@ -16,7 +16,13 @@ const deviceRoutes = {
path: 'device',
component: () => import('@/views/device/index'),
name: 'Device',
meta: { title: '设备列表', icon: 'devicelist', permissions: ['manage user'] },
meta: { title: '设备列表', icon: 'devicelist', permissions: ['manage device'] },
},
{
path: 'categories',
component: () => import('@/views/device/categories'),
name: 'Categories',
meta: { title: '设备分类', icon: 'tree-table', permissions: ['manage categories'] },
},
],
};
......
import Layout from '@/layout';
const historyRoutes = {
path: '/history',
component: Layout,
redirect: '/history/alarms',
name: 'HistoryAlarms',
meta: {
title: 'history',
icon: 'nested',
permissions: ['view menu history alarms'],
},
children: [
{
path: 'alarms',
name: 'Alarms',
component: () => import('@/views/history/alarms'),
meta: { title: 'historyAlarms', icon: 'form' },
},
{
path: 'index',
component: () => import('@/views/history/index'),
name: 'Index',
meta: { title: 'historyData', icon: 'chart', noCache: true },
},
],
};
export default historyRoutes;
import Layout from '@/layout';
const monitorRoutes = {
path: '/monitor',
component: Layout,
redirect: '/monitor/dangerous_chemicals',
name: 'Mointor',
meta: {
title: 'monitor',
icon: 'devicelist',
permissions: ['view menu monitor'],
},
children: [
{
path: 'dangerous_chemicals',
name: 'DangerousChemicals',
component: () => import('@/views/monitor/chemicals'),
meta: { title: 'dangerousChemicals', icon: 'form' },
},
{
path: 'fire',
component: () => import('@/views/monitor/fire'),
name: 'Fire',
meta: { title: 'fireControl', icon: 'chart', noCache: true },
},
],
};
export default monitorRoutes;
......@@ -18,6 +18,18 @@ const usersRoutes = {
name: 'Userlist',
meta: { title: '用户列表', icon: 'user', permissions: ['manage user'] },
},
{
path: 'wechat',
component: () => import('@/views/wx_user'),
name: 'wechat',
meta: { title: 'wx_user', icon: 'wechat' },
},
{
path: 'installer',
component: () => import('@/views/user/installer'),
name: 'Installer',
meta: { title: '装维人员', icon: 'role' },
},
],
};
export default usersRoutes;
<template>
<div>设备分类</div>
</template>
<script>
</script>
<style>
</style>
<template>
<div>报警记录</div>
</template>
<script>
</script>
<style>
</style>
<template>
<div>设备记录</div>
</template>
<script>
</script>
<style>
</style>
<template>
<div>地图模式</div>
</template>
<script>
</script>
<style>
</style>
<template>
<div>危化监测</div>
</template>
<script>
</script>
<style>
</style>
<template>
<div>消防监测</div>
</template>
<script>
</script>
<style>
</style>
<template>
<div>装维人员</div>
</template>
<script>
</script>
<style>
</style>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment