| | |
| | | import Layout from '@/layout' |
| | | const menu = { |
| | | adminMenu: [ |
| | | // { |
| | | // path: '/homePageIndex', |
| | | // redirect: '/homePageIndex', |
| | | // meta: { title: '首页',icon: 'server'}, |
| | | // children: [ |
| | | // |
| | | // { |
| | | // path: 'homePageIndex', |
| | | // name: 'homePageIndex', |
| | | // meta: { title: '工作台',icon: 'server'} |
| | | // } , |
| | | // ] |
| | | // }, |
| | | // { |
| | | // path: '/warehouseManage', |
| | | // name: 'warehouseManage', |
| | | // meta: { title: '入库管理',icon: 'form',affix: true } |
| | | // }, |
| | | // |
| | | // { |
| | | // path: '/electronicWarehouse', |
| | | // name: 'electronicWarehouse', |
| | | // meta: { title: '电子仓库',icon: 'build',affix: true } |
| | | // }, |
| | | // { |
| | | // path: '/accessRecords', |
| | | // name: 'accessRecords', |
| | | // meta: { title: '取用记录',icon: 'job',affix: true } |
| | | // }, |
| | | // { |
| | | // path: '/traceableQuery', |
| | | // name: 'traceableQuery', |
| | | // meta: { title: '溯源查询',icon: 'log',affix: true } |
| | | // }, |
| | | // { |
| | | // path: '/overdueWarning', |
| | | // name: 'overdueWarning', |
| | | // meta: { title: '超期预警',icon: 'peoples',affix: true } |
| | | // }, |
| | | commonMenu: [ |
| | | { |
| | | path: '/homePageIndex', |
| | | redirect: '/homePageIndex', |
| | | meta: { title: '首页',icon: 'server'}, |
| | | children: [ |
| | | |
| | | { |
| | | path: 'homePageIndex', |
| | | name: 'homePageIndex', |
| | | meta: { title: '工作台',icon: 'server'} |
| | | } , |
| | | ] |
| | | }, |
| | | { |
| | | path: '/warehouseManage', |
| | | name: 'warehouseManage', |
| | | meta: { title: '入库管理',icon: 'warehousing',affix: true } |
| | | }, |
| | | { |
| | | path: '/electronicWarehouse', |
| | | name: 'electronicWarehouse', |
| | | meta: { title: '电子仓库',icon: 'build',affix: true } |
| | | }, |
| | | { |
| | | path: '/useCount', |
| | | name: 'useCount', |
| | | meta: { title: '用量统计',icon: 'analysis',affix: true } |
| | | }, |
| | | { |
| | | path: '/accessRecords', |
| | | name: 'accessRecords', |
| | | meta: { title: '取用记录',icon: 'job',affix: true } |
| | | }, |
| | | { |
| | | path: '/traceableQuery', |
| | | name: 'traceableQuery', |
| | | meta: { title: '溯源查询',icon: 'log',affix: true } |
| | | }, |
| | | { |
| | | path: '/overdueWarning', |
| | | name: 'overdueWarning', |
| | | meta: { title: '超期预警',icon: 'alarm',affix: true } |
| | | }, |
| | | { |
| | | path: '/avoidWarning', |
| | | name: 'avoidWarning', |
| | | meta: { title: '危化品相忌报警',icon: 'caution',affix: true } |
| | | }, |
| | | { |
| | | path: '/basicInfo', |
| | | name: 'basicInfo', |
| | |
| | | name: 'user', |
| | | meta: { title: '用户管理',icon: 'peoples'} |
| | | } , |
| | | ] |
| | | }, |
| | | ], |
| | | companyMenu: [ |
| | | { |
| | | path: '/homePageIndex', |
| | | redirect: '/homePageIndex', |
| | | meta: { title: '首页',icon: 'server'}, |
| | | children: [ |
| | | |
| | | { |
| | | path: 'homePageIndex', |
| | | name: 'homePageIndex', |
| | | meta: { title: '工作台',icon: 'server'} |
| | | } , |
| | | ] |
| | | }, |
| | | { |
| | | path: '/warehouseManage', |
| | | name: 'warehouseManage', |
| | | meta: { title: '入库管理',icon: 'warehousing',affix: true } |
| | | }, |
| | | { |
| | | path: '/electronicWarehouse', |
| | | name: 'electronicWarehouse', |
| | | meta: { title: '电子仓库',icon: 'build',affix: true } |
| | | }, |
| | | { |
| | | path: '/useCount', |
| | | name: 'useCount', |
| | | meta: { title: '用量统计',icon: 'analysis',affix: true } |
| | | }, |
| | | // { |
| | | // path: '/detailList', |
| | | // name: 'detailList', |
| | | // meta: { title: '危化品详单',icon: 'education',affix: true } |
| | | // }, |
| | | { |
| | | path: '/accessRecords', |
| | | name: 'accessRecords', |
| | | meta: { title: '取用记录',icon: 'job',affix: true } |
| | | }, |
| | | { |
| | | path: '/traceableQuery', |
| | | name: 'traceableQuery', |
| | | meta: { title: '溯源查询',icon: 'log',affix: true } |
| | | }, |
| | | { |
| | | path: '/overdueWarning', |
| | | name: 'overdueWarning', |
| | | meta: { title: '超期预警',icon: 'alarm',affix: true } |
| | | }, |
| | | { |
| | | path: '/avoidWarning', |
| | | name: 'avoidWarning', |
| | | meta: { title: '危化品相忌报警',icon: 'caution',affix: true } |
| | | }, |
| | | { |
| | | path: '/basicInfo', |
| | | name: 'basicInfo', |
| | | meta: { title: '危化品基础信息',icon: 'monitor',affix: true } |
| | | }, |
| | | { |
| | | path: '/finishedBasicInfo', |
| | | name: 'finishedBasicInfo', |
| | | meta: { title: '成品基础信息',icon: 'monitor',affix: true } |
| | | }, |
| | | { |
| | | path: '/systemManage', |
| | | redirect: '/systemManage/warehouse', |
| | | meta: { title: '系统管理',icon: 'dict'}, |
| | | children: [ |
| | | { |
| | | path: 'warehouse', |
| | | name: 'warehouse', |
| | | meta: { title: '仓库管理',icon: 'form'} |
| | | } , |
| | | // { |
| | | // path: 'company', |
| | | // name: 'company', |
| | | // meta: { title: '企业管理',icon: 'form'} |
| | | // } , |
| | | { |
| | | path: 'user', |
| | | name: 'user', |
| | | meta: { title: '用户管理',icon: 'list'} |
| | | } , |
| | | { |
| | | path: 'department', |
| | | name: 'department', |
| | | meta: { title: '部门管理',icon: 'logininfor'} |
| | | } , |
| | | ] |
| | | }, |
| | | ], |
| | | commonMenu: [ |
| | | { |
| | | path: '/homePageIndex', |
| | | redirect: '/homePageIndex', |
| | | meta: { title: '首页',icon: 'server'}, |
| | | children: [ |
| | | |
| | | { |
| | | path: 'homePageIndex', |
| | | name: 'homePageIndex', |
| | | meta: { title: '工作台',icon: 'server'} |
| | | } , |
| | | ] |
| | | }, |
| | | { |
| | | path: '/warehouseManage', |
| | | name: 'warehouseManage', |
| | | meta: { title: '入库管理',icon: 'warehousing',affix: true } |
| | | }, |
| | | { |
| | | path: '/electronicWarehouse', |
| | | name: 'electronicWarehouse', |
| | | meta: { title: '电子仓库',icon: 'build',affix: true } |
| | | }, |
| | | { |
| | | path: '/useCount', |
| | | name: 'useCount', |
| | | meta: { title: '用量统计',icon: 'analysis',affix: true } |
| | | }, |
| | | // { |
| | | // path: '/detailList', |
| | | // name: 'detailList', |
| | | // meta: { title: '危化品详单',icon: 'education',affix: true } |
| | | // }, |
| | | { |
| | | path: '/accessRecords', |
| | | name: 'accessRecords', |
| | | meta: { title: '取用记录',icon: 'job',affix: true } |
| | | }, |
| | | { |
| | | path: '/traceableQuery', |
| | | name: 'traceableQuery', |
| | | meta: { title: '溯源查询',icon: 'log',affix: true } |
| | | }, |
| | | { |
| | | path: '/overdueWarning', |
| | | name: 'overdueWarning', |
| | | meta: { title: '超期预警',icon: 'alarm',affix: true } |
| | | }, |
| | | { |
| | | path: '/avoidWarning', |
| | | name: 'avoidWarning', |
| | | meta: { title: '危化品相忌报警',icon: 'caution',affix: true } |
| | | }, |
| | | { |
| | | path: '/basicInfo', |
| | | name: 'basicInfo', |
| | | meta: { title: '危化品基础信息',icon: 'monitor',affix: true } |
| | | }, |
| | | { |
| | | path: '/finishedBasicInfo', |
| | | name: 'finishedBasicInfo', |
| | | meta: { title: '成品基础信息',icon: 'monitor',affix: true } |
| | | }, |
| | | { |
| | | path: '/systemManage', |
| | | redirect: '/systemManage/warehouse', |
| | | meta: { title: '系统管理',icon: 'dict'}, |
| | | children: [ |
| | | { |
| | | path: 'warehouse', |
| | | name: 'warehouse', |
| | | meta: { title: '仓库管理',icon: 'form'} |
| | | } , |
| | | // { |
| | | // path: 'company', |
| | | // name: 'company', |
| | | // meta: { title: '企业管理',icon: 'form'} |
| | | // } , |
| | | // { |
| | | // path: 'user', |
| | | // name: 'user', |
| | | // meta: { title: '用户管理',icon: 'list'} |
| | | // } , |
| | | // { |
| | | // path: 'department', |
| | | // name: 'department', |
| | | // meta: { title: '部门管理',icon: 'logininfor'} |
| | | // } , |
| | | ] |
| | | }, |
| | | ], |