Browse Source

添加菜单栏

master
song 3 years ago
parent
commit
44521415af
  1. 34
      src/router/menus/department.js
  2. 18
      src/router/menus/system.js

34
src/router/menus/department.js

@ -1,117 +1,117 @@
import Layout from '@/views/layout/Layout' import Layout from '@/views/layout/Layout'
const commodityManagement = { const commodityManagement = {
path: '/profile', path: '/department',
component: Layout, component: Layout,
meta: {title: '部门首页', icon: 'dingdan', noCache: true, affix: false}, meta: {title: '部门首页', icon: 'dingdan', noCache: true, affix: false},
children: [ children: [
{ {
path: '/profile1', path: '/department1',
code: '0901', code: '0901',
component: () => import('@/views/richText/index'), component: () => import('@/views/richText/index'),
name: '总经理工作部', name: '总经理工作部',
meta: {title: '总经理工作部', noCache: false, affix: false} meta: {title: '总经理工作部', noCache: false, affix: false}
}, },
{ {
path: '/profile2', path: '/department2',
code: '0902', code: '0902',
component: () => import('@/views/richText/index'), component: () => import('@/views/richText/index'),
name: '计划营销部', name: '计划营销部',
meta: {title: '计划营销部', noCache: false, affix: false}, meta: {title: '计划营销部', noCache: false, affix: false},
}, },
{ {
path: '/profile3', path: '/department3',
code: '0903', code: '0903',
component: () => import('@/views/richText/index'), component: () => import('@/views/richText/index'),
name: '财务管理部', name: '财务管理部',
meta: {title: '财务管理部', noCache: false, affix: false}, meta: {title: '财务管理部', noCache: false, affix: false},
}, },
{ {
path: '/profile4', path: '/department4',
code: '0904', code: '0904',
component: () => import('@/views/richText/index'), component: () => import('@/views/richText/index'),
name: '人力资源部', name: '人力资源部',
meta: {title: '人力资源部', noCache: false, affix: false}, meta: {title: '人力资源部', noCache: false, affix: false},
}, },
{ {
path: '/profile5', path: '/department5',
code: '0905', code: '0905',
component: () => import('@/views/richText/index'), component: () => import('@/views/richText/index'),
name: '党群工作部', name: '党群工作部',
meta: {title: '党群工作部', noCache: false, affix: false}, meta: {title: '党群工作部', noCache: false, affix: false},
}, },
{ {
path: '/profile6', path: '/department6',
code: '0906', code: '0906',
component: () => import('@/views/richText/index'), component: () => import('@/views/richText/index'),
name: '纪委办公室(审计部)', name: '纪委办公室(审计部)',
meta: {title: '纪委办公室(审计部)', noCache: false, affix: false}, meta: {title: '纪委办公室(审计部)', noCache: false, affix: false},
}, },
{ {
path: '/profile7', path: '/department7',
code: '0907', code: '0907',
component: () => import('@/views/richText/index'), component: () => import('@/views/richText/index'),
name: '燃料采购部', name: '燃料采购部',
meta: {title: '燃料采购部', noCache: false, affix: false}, meta: {title: '燃料采购部', noCache: false, affix: false},
}, },
{ {
path: '/profile8', path: '/department8',
code: '0908', code: '0908',
component: () => import('@/views/richText/index'), component: () => import('@/views/richText/index'),
name: '物资管理部', name: '物资管理部',
meta: {title: '物资管理部', noCache: false, affix: false}, meta: {title: '物资管理部', noCache: false, affix: false},
}, },
{ {
path: '/profile9', path: '/department9',
code: '0909', code: '0909',
component: () => import('@/views/richText/index'), component: () => import('@/views/richText/index'),
name: '项目开发部', name: '项目开发部',
meta: {title: '项目开发部', noCache: false, affix: false}, meta: {title: '项目开发部', noCache: false, affix: false},
}, },
{ {
path: '/profile10', path: '/department10',
code: '0910', code: '0910',
component: () => import('@/views/richText/index'), component: () => import('@/views/richText/index'),
name: '燃料质量验收部', name: '燃料质量验收部',
meta: {title: '燃料质量验收部', noCache: false, affix: false}, meta: {title: '燃料质量验收部', noCache: false, affix: false},
}, },
{ {
path: '/profile11', path: '/department11',
code: '0911', code: '0911',
component: () => import('@/views/richText/index'), component: () => import('@/views/richText/index'),
name: '安全监督部', name: '安全监督部',
meta: {title: '安全监督部', noCache: false, affix: false}, meta: {title: '安全监督部', noCache: false, affix: false},
}, },
{ {
path: '/profile12', path: '/department12',
code: '0912', code: '0912',
component: () => import('@/views/richText/index'), component: () => import('@/views/richText/index'),
name: '设备部', name: '设备部',
meta: {title: '设备部', noCache: false, affix: false}, meta: {title: '设备部', noCache: false, affix: false},
}, },
{ {
path: '/profile13', path: '/department13',
code: '0913', code: '0913',
component: () => import('@/views/richText/index'), component: () => import('@/views/richText/index'),
name: '发电部', name: '发电部',
meta: {title: '发电部', noCache: false, affix: false}, meta: {title: '发电部', noCache: false, affix: false},
}, },
{ {
path: '/profile14', path: '/department14',
code: '0914', code: '0914',
component: () => import('@/views/richText/index'), component: () => import('@/views/richText/index'),
name: '维护部', name: '维护部',
meta: {title: '维护部', noCache: false, affix: false}, meta: {title: '维护部', noCache: false, affix: false},
}, },
{ {
path: '/profile15', path: '/department15',
code: '0915', code: '0915',
component: () => import('@/views/richText/index'), component: () => import('@/views/richText/index'),
name: '热工专业', name: '热工专业',
meta: {title: '热工专业', noCache: false, affix: false}, meta: {title: '热工专业', noCache: false, affix: false},
}, },
{ {
path: '/profile16', path: '/department16',
code: '0916', code: '0916',
component: () => import('@/views/richText/index'), component: () => import('@/views/richText/index'),
name: '电气专业', name: '电气专业',

18
src/router/menus/system.js

@ -1,61 +1,61 @@
import Layout from '@/views/layout/Layout' import Layout from '@/views/layout/Layout'
const commodityManagement = { const commodityManagement = {
path: '/profile', path: '/system',
component: Layout, component: Layout,
meta: {title: '制度资料', icon: 'dingdan', noCache: true, affix: false}, meta: {title: '制度资料', icon: 'dingdan', noCache: true, affix: false},
children: [ children: [
{ {
path: '/profile1', path: '/system1',
code: '0801', code: '0801',
component: () => import('@/views/richText/index'), component: () => import('@/views/richText/index'),
name: '集团公司制度', name: '集团公司制度',
meta: {title: '集团公司制度', noCache: false, affix: false} meta: {title: '集团公司制度', noCache: false, affix: false}
}, },
{ {
path: '/profile2', path: '/system2',
code: '0802', code: '0802',
component: () => import('@/views/richText/index'), component: () => import('@/views/richText/index'),
name: '山西公司制度', name: '山西公司制度',
meta: {title: '山西公司制度', noCache: false, affix: false}, meta: {title: '山西公司制度', noCache: false, affix: false},
}, },
{ {
path: '/profile3', path: '/system3',
code: '0803', code: '0803',
component: () => import('@/views/richText/index'), component: () => import('@/views/richText/index'),
name: '行业标准与制度', name: '行业标准与制度',
meta: {title: '行业标准与制度', noCache: false, affix: false}, meta: {title: '行业标准与制度', noCache: false, affix: false},
}, },
{ {
path: '/profile4', path: '/system4',
code: '0804', code: '0804',
component: () => import('@/views/richText/index'), component: () => import('@/views/richText/index'),
name: '公司制度', name: '公司制度',
meta: {title: '公司制度', noCache: false, affix: false}, meta: {title: '公司制度', noCache: false, affix: false},
}, },
{ {
path: '/profile5', path: '/system5',
code: '0805', code: '0805',
component: () => import('@/views/richText/index'), component: () => import('@/views/richText/index'),
name: '地方规章', name: '地方规章',
meta: {title: '地方规章', noCache: false, affix: false}, meta: {title: '地方规章', noCache: false, affix: false},
}, },
{ {
path: '/profile6', path: '/system6',
code: '0806', code: '0806',
component: () => import('@/views/richText/index'), component: () => import('@/views/richText/index'),
name: '培训课件', name: '培训课件',
meta: {title: '培训课件', noCache: false, affix: false}, meta: {title: '培训课件', noCache: false, affix: false},
}, },
{ {
path: '/profile7', path: '/system7',
code: '0807', code: '0807',
component: () => import('@/views/richText/index'), component: () => import('@/views/richText/index'),
name: '培训影像', name: '培训影像',
meta: {title: '培训影像', noCache: false, affix: false}, meta: {title: '培训影像', noCache: false, affix: false},
}, },
{ {
path: '/profile8', path: '/system8',
code: '0808', code: '0808',
component: () => import('@/views/richText/index'), component: () => import('@/views/richText/index'),
name: '科技创新', name: '科技创新',

Loading…
Cancel
Save