123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184 |
- // 菜单 mock 假数据
- module.exports = [
- {
- url: '/menu/getMenuData',
- type: 'get',
- response: _ => {
- const menuData = [
- {
- path: '/plan',
- redirect: '/plan/index',
- name: 'plan',
- component: 'Layout',
- meta: {
- title: '检测方案',
- icon: 'el-icon-document',
- roles: ['xxx', 'admin', 'editor']
- },
- children: [
- {
- path: 'index',
- component: 'plan/index',
- name: 'plan index',
- hidden: true,
- meta: {
- title: '方案列表',
- roles: ['admin']
- }
- },
- {
- path: 'save',
- component: 'plan/save',
- name: 'plan save',
- hidden: true,
- meta: {
- title: '新建方案',
- roles: ['admin']
- }
- }
- ]
- },
- {
- path: '/device',
- component: 'Layout',
- redirect: '/device/index',
- name: '设备检测',
- meta: {
- title: '设备检测',
- icon: 'el-icon-document',
- roles: ['admin', 'editor']
- },
- children: [
- {
- path: 'index',
- component: 'device/index',
- name: 'device index',
- hidden: true,
- meta: {
- title: '设备检测列表',
- roles: ['admin']
- }
- },
- {
- path: 'save',
- component: 'device/save',
- name: 'device save',
- hidden: true,
- meta: {
- title: '新建设备检测',
- roles: ['admin']
- }
- },
- {
- path: 'check',
- component: 'device/check',
- name: 'device check',
- hidden: true,
- meta: {
- title: '设备检测中',
- roles: ['admin']
- }
- },
- {
- path: 'mqtt',
- component: 'device/mqtt',
- name: 'device mqtt',
- hidden: true,
- meta: {
- title: '设备检测 MQTT',
- roles: ['admin']
- }
- }
- ]
- },
- {
- path: '/testreport',
- component: 'Layout',
- redirect: '/testreport/index',
- children: [
- {
- path: 'index',
- component: 'testreport/index',
- name: 'testreport',
- meta: { title: '测试报告', icon: 'el-icon-document-copy', affix: true }
- }
- ]
- },
- // 基础数据 界面隐藏
- // 聊天记录: 20230609一致性检测沟通问题清单.docx
- // {
- // path: '/basedata',
- // component: 'Layout',
- // redirect: '/basedata/index',
- // children: [
- // {
- // path: 'index',
- // component: 'basedata/index',
- // name: 'basedata',
- // meta: { title: '基础数据', icon: 'el-icon-coin', affix: true }
- // }
- // ]
- // },
- {
- path: '/system',
- component: 'Layout',
- redirect: '/system/index',
- name: '系统管理',
- meta: {
- title: '系统管理',
- icon: 'el-icon-document',
- roles: ['admin', 'editor']
- },
- children: [
- {
- path: 'index',
- component: 'system/index',
- name: 'system authority',
- hidden: true,
- meta: {
- title: '角色管理',
- roles: ['admin']
- }
- },
- {
- path: 'log',
- component: 'system/index',
- name: 'system log',
- hidden: true,
- meta: {
- title: '操作日志',
- roles: ['admin']
- }
- },
- {
- path: 'user',
- component: 'system/index',
- name: 'system user',
- hidden: true,
- meta: {
- title: '用户管理',
- roles: ['admin']
- }
- },
- {
- path: 'menu',
- component: 'system/index.vue',
- name: 'system user',
- hidden: true,
- meta: {
- title: '菜单管理',
- roles: ['admin']
- }
- }
- ]
- },
- { path: '*', redirect: '/404', hidden: true }
- ]
- return {
- code: 20000,
- data: menuData
- }
- }
- }
- ]
|