1527 lines
35 KiB
JavaScript
1527 lines
35 KiB
JavaScript
// 静态路由配置
|
||
// 书写格式与动态路由格式一致,全部经由框架统一转换
|
||
// 比较动态路由在meta中多加入了role角色权限,为数组类型。一个菜单是否有权限显示,取决于它以及后代菜单是否有权限。
|
||
// routes 显示在左侧菜单中的路由(显示顺序在动态路由之前)
|
||
const routes = [
|
||
//首页
|
||
{
|
||
"name": "home",
|
||
"path": "/home",
|
||
"meta": {
|
||
"title": "首页",
|
||
"icon": "el-icon-home-filled",
|
||
"type": "menu",
|
||
"perms": ["home"]
|
||
},
|
||
"children": [
|
||
{
|
||
"name": "dashboard",
|
||
"path": "/dashboard",
|
||
"meta": {
|
||
"title": "控制台",
|
||
"icon": "el-icon-monitor",
|
||
"affix": true,
|
||
"perms": ["dashboard"]
|
||
},
|
||
"component": "home"
|
||
},
|
||
{
|
||
"name": "dashboard_enm",
|
||
"path": "/dashboard_enm",
|
||
"meta": {
|
||
"title": "控制台",
|
||
"icon": "el-icon-monitor",
|
||
"affix": true,
|
||
"perms": ["enm"]
|
||
},
|
||
"component": "home/enm_home"
|
||
},
|
||
{
|
||
"path": "/bigScreen",
|
||
"name": "bigScreen",
|
||
"meta": {
|
||
"title": "驾驶舱",
|
||
"icon": "el-icon-position",
|
||
"perms": ["bigScreen"],
|
||
"fullpage": true,
|
||
},
|
||
"component": "bigScreen"
|
||
},
|
||
{
|
||
"path": "/bigScreen2",
|
||
"name": "bigScreen2",
|
||
"meta": {
|
||
"title": "能管大屏",
|
||
"icon": "el-icon-position",
|
||
"perms": ["bigScreen2"],
|
||
"fullpage": true,
|
||
},
|
||
"component": "bigScreen/index_enm"
|
||
},
|
||
{
|
||
"path": "/track",
|
||
"name": "track",
|
||
"meta": {
|
||
"title": "轨迹追踪",
|
||
"icon": "el-icon-position",
|
||
"fullpage": true,
|
||
"hidden": true,
|
||
},
|
||
"component": "bigScreen/track"
|
||
},
|
||
{
|
||
"name": "userCenter",
|
||
"path": "/usercenter",
|
||
"meta": {
|
||
"title": "帐号信息",
|
||
"icon": "el-icon-user",
|
||
"perms": ["userCenter"]
|
||
},
|
||
"component": "userCenter"
|
||
},
|
||
{
|
||
"name": "events",
|
||
"path": "/events",
|
||
"meta": {
|
||
"title": "报警事件",
|
||
"icon": "el-icon-user",
|
||
"perms": ["bigScreen2"]
|
||
},
|
||
"component": "home/event"
|
||
},
|
||
]
|
||
},
|
||
//报表
|
||
{
|
||
"name": "bi",
|
||
"path": "/bi",
|
||
"meta": {
|
||
"title": "报表",
|
||
"icon": "el-icon-trend-charts",
|
||
"type": "menu",
|
||
"perms": ["bi"]
|
||
},
|
||
"children": [
|
||
{
|
||
"name": "dataset",
|
||
"path": "/bi/dataset",
|
||
"meta": {
|
||
"title": "数据集",
|
||
"icon": "el-icon-grid",
|
||
"perms": ["dataset"]
|
||
},
|
||
"component": "bi/dataset"
|
||
},
|
||
{
|
||
"name": "graph",
|
||
"path": "/bi/graph",
|
||
"meta": {
|
||
"title": "测试图",
|
||
"icon": "el-icon-grid",
|
||
"perms": ["dataset"]
|
||
},
|
||
"component": "bi/graph"
|
||
}
|
||
]
|
||
},
|
||
//电石渣
|
||
{
|
||
"name": "enm_slag",
|
||
"path": "/enm_slag",
|
||
"meta": {
|
||
"title": "电石渣",
|
||
"icon": "el-icon-opportunity",
|
||
"type": "menu",
|
||
"perms": ["enm"]
|
||
},
|
||
"children": [
|
||
{
|
||
"name": "slag_report",
|
||
"path": "/enm_slag/report",
|
||
"meta": {
|
||
"title": "生产报告",
|
||
"icon": "el-icon-document",
|
||
"perms": ["enm"]
|
||
},
|
||
"component": "enm_slag/report"
|
||
},
|
||
{
|
||
"name": "slag_power",
|
||
"path": "/enm_slag/power",
|
||
"meta": {
|
||
"title": "单位产品电耗",
|
||
"icon": "el-icon-odometer",
|
||
"perms": ["enm"]
|
||
},
|
||
"component": "enm_slag/power"
|
||
},
|
||
{
|
||
"name": "slag_teamAnalysis",
|
||
"path": "/enm_slag/teamAnalysis",
|
||
"meta": {
|
||
"title": "班组月度对比",
|
||
"icon": "el-icon-operation",
|
||
"perms": ["enm"]
|
||
},
|
||
"component": "enm_slag/teamAnalysis"
|
||
},
|
||
{
|
||
"name": "slag_workshopAnalysis",
|
||
"path": "/enm_slag/workshopAnalysis",
|
||
"meta": {
|
||
"title": "车间单耗分析",
|
||
"icon": "el-icon-data-line",
|
||
"perms": ["enm"]
|
||
},
|
||
"component": "enm_slag/workshopAnalysis"
|
||
},
|
||
{
|
||
"name": "slag_handoverLog",
|
||
"path": "/enm_slag/handoverLog",
|
||
"meta": {
|
||
"title": "交接班日志",
|
||
"icon": "el-icon-document-copy",
|
||
"perms": ["enm"]
|
||
},
|
||
"component": "enm_slag/handoverLog"
|
||
},
|
||
]
|
||
},
|
||
//原料磨
|
||
{
|
||
"name": "enm_rm",
|
||
"path": "/enm_rm",
|
||
"meta": {
|
||
"title": "原料磨",
|
||
"icon": "el-icon-list",
|
||
"type": "menu",
|
||
"perms": ["enm"]
|
||
},
|
||
"children": [
|
||
{
|
||
"name": "report",
|
||
"path": "/enm_rm/report",
|
||
"meta": {
|
||
"title": "生产报告",
|
||
"icon": "el-icon-document",
|
||
"perms": ["enm"]
|
||
},
|
||
"component": "enm_rm/report"
|
||
},
|
||
{
|
||
"name": "power",
|
||
"path": "/enm_rm/power",
|
||
"meta": {
|
||
"title": "单位产品电耗",
|
||
"icon": "el-icon-odometer",
|
||
"perms": ["enm"]
|
||
},
|
||
"component": "enm_rm/power"
|
||
},
|
||
{
|
||
"name": "teamAnalysis",
|
||
"path": "/enm_rm/teamAnalysis",
|
||
"meta": {
|
||
"title": "班组月度对比",
|
||
"icon": "el-icon-operation",
|
||
"perms": ["enm"]
|
||
},
|
||
"component": "enm_rm/teamAnalysis"
|
||
},
|
||
{
|
||
"name": "workshopAnalysis",
|
||
"path": "/enm_rm/workshopAnalysis",
|
||
"meta": {
|
||
"title": "车间单耗分析",
|
||
"icon": "el-icon-data-line",
|
||
"perms": ["enm"]
|
||
},
|
||
"component": "enm_rm/workshopAnalysis"
|
||
},
|
||
{
|
||
"name": "handoverLog",
|
||
"path": "/enm_rm/handoverLog",
|
||
"meta": {
|
||
"title": "交接班日志",
|
||
"icon": "el-icon-document-copy",
|
||
"perms": ["enm"]
|
||
},
|
||
"component": "enm_rm/handoverLog"
|
||
},
|
||
{
|
||
"name": "logDetail",
|
||
"path": "/enm_rm/logDetail",
|
||
"meta": {
|
||
"title": "日志详情",
|
||
"icon": "el-icon-document-copy",
|
||
"perms": ["enm"],
|
||
"hidden":true
|
||
},
|
||
"component": "enm_rm/logDetail"
|
||
},
|
||
]
|
||
},
|
||
//回转窑
|
||
{
|
||
"name": "enm_kiln",
|
||
"path": "/enm_kiln",
|
||
"meta": {
|
||
"title": "回转窑",
|
||
"icon": "el-icon-menu",
|
||
"type": "menu",
|
||
"perms": ["enm"]
|
||
},
|
||
"children": [
|
||
{
|
||
"name": "kiln_report",
|
||
"path": "/enm_kiln/report",
|
||
"meta": {
|
||
"title": "生产报告",
|
||
"icon": "el-icon-document",
|
||
"perms": ["enm"]
|
||
},
|
||
"component": "enm_kiln/report"
|
||
},
|
||
{
|
||
"name": "kiln_power",
|
||
"path": "/enm_kiln/power",
|
||
"meta": {
|
||
"title": "单位产品电耗",
|
||
"icon": "el-icon-odometer",
|
||
"perms": ["enm"]
|
||
},
|
||
"component": "enm_kiln/power"
|
||
},
|
||
{
|
||
"name": "kiln_teamAnalysis",
|
||
"path": "/enm_kiln/teamAnalysis",
|
||
"meta": {
|
||
"title": "班组月度对比",
|
||
"icon": "el-icon-operation",
|
||
"perms": ["enm"]
|
||
},
|
||
"component": "enm_kiln/teamAnalysis"
|
||
},
|
||
{
|
||
"name": "kiln_workshopAnalysis",
|
||
"path": "/enm_kiln/workshopAnalysis",
|
||
"meta": {
|
||
"title": "车间单耗分析",
|
||
"icon": "el-icon-data-line",
|
||
"perms": ["enm"]
|
||
},
|
||
"component": "enm_kiln/workshopAnalysis"
|
||
},
|
||
{
|
||
"name": "kiln_handoverLog",
|
||
"path": "/enm_kiln/handoverLog",
|
||
"meta": {
|
||
"title": "交接班日志",
|
||
"icon": "el-icon-document-copy",
|
||
"perms": ["enm"]
|
||
},
|
||
"component": "enm_kiln/handoverLog"
|
||
},
|
||
]
|
||
},
|
||
//煤磨
|
||
{
|
||
"name": "enm_coal",
|
||
"path": "/enm_coal",
|
||
"meta": {
|
||
"title": "煤磨",
|
||
"icon": "el-icon-brush-filled",
|
||
"type": "menu",
|
||
"perms": ["enm"]
|
||
},
|
||
"children": [
|
||
{
|
||
"name": "coal_report",
|
||
"path": "/enm_coal/report",
|
||
"meta": {
|
||
"title": "生产报告",
|
||
"icon": "el-icon-document",
|
||
"perms": ["enm"]
|
||
},
|
||
"component": "enm_coal/report"
|
||
},
|
||
{
|
||
"name": "coal_power",
|
||
"path": "/enm_coal/power",
|
||
"meta": {
|
||
"title": "单位产品电耗",
|
||
"icon": "el-icon-odometer",
|
||
"perms": ["enm"]
|
||
},
|
||
"component": "enm_coal/power"
|
||
},
|
||
{
|
||
"name": "coal_teamAnalysis",
|
||
"path": "/enm_coal/teamAnalysis",
|
||
"meta": {
|
||
"title": "班组月度对比",
|
||
"icon": "el-icon-operation",
|
||
"perms": ["enm"]
|
||
},
|
||
"component": "enm_coal/teamAnalysis"
|
||
},
|
||
{
|
||
"name": "coal_workshopAnalysis",
|
||
"path": "/enm_coal/workshopAnalysis",
|
||
"meta": {
|
||
"title": "车间单耗分析",
|
||
"icon": "el-icon-data-line",
|
||
"perms": ["enm"]
|
||
},
|
||
"component": "enm_coal/workshopAnalysis"
|
||
},
|
||
{
|
||
"name": "coal_handoverLog",
|
||
"path": "/enm_coal/handoverLog",
|
||
"meta": {
|
||
"title": "交接班日志",
|
||
"icon": "el-icon-document-copy",
|
||
"perms": ["enm"]
|
||
},
|
||
"component": "enm_coal/handoverLog"
|
||
},
|
||
]
|
||
},
|
||
//水泥磨
|
||
{
|
||
"name": "enm_mill",
|
||
"path": "/enm_mill",
|
||
"meta": {
|
||
"title": "水泥磨",
|
||
"icon": "el-icon-help-filled",
|
||
"type": "menu",
|
||
"perms": ["enm"]
|
||
},
|
||
"children": [
|
||
{
|
||
"name": "mill_report",
|
||
"path": "/enm_mill/report",
|
||
"meta": {
|
||
"title": "生产报告",
|
||
"icon": "el-icon-document",
|
||
"perms": ["enm"]
|
||
},
|
||
"component": "enm_mill/report"
|
||
},
|
||
{
|
||
"name": "mill_power",
|
||
"path": "/enm_mill/power",
|
||
"meta": {
|
||
"title": "单位产品电耗",
|
||
"icon": "el-icon-odometer",
|
||
"perms": ["enm"]
|
||
},
|
||
"component": "enm_mill/power"
|
||
},
|
||
{
|
||
"name": "mill_teamAnalysis",
|
||
"path": "/enm_mill/teamAnalysis",
|
||
"meta": {
|
||
"title": "班组月度对比",
|
||
"icon": "el-icon-operation",
|
||
"perms": ["enm"]
|
||
},
|
||
"component": "enm_mill/teamAnalysis"
|
||
},
|
||
{
|
||
"name": "mill_workshopAnalysis",
|
||
"path": "/enm_mill/workshopAnalysis",
|
||
"meta": {
|
||
"title": "车间单耗分析",
|
||
"icon": "el-icon-data-line",
|
||
"perms": ["enm"]
|
||
},
|
||
"component": "enm_mill/workshopAnalysis"
|
||
},
|
||
{
|
||
"name": "mill_handoverLog",
|
||
"path": "/enm_mill/handoverLog",
|
||
"meta": {
|
||
"title": "交接班日志",
|
||
"icon": "el-icon-document-copy",
|
||
"perms": ["enm"]
|
||
},
|
||
"component": "enm_mill/handoverLog"
|
||
},
|
||
]
|
||
},
|
||
//水泥包装
|
||
{
|
||
"name": "enm_pack",
|
||
"path": "/enm_pack",
|
||
"meta": {
|
||
"title": "水泥包装",
|
||
"icon": "el-icon-goods-filled",
|
||
"type": "menu",
|
||
"perms": ["enm"]
|
||
},
|
||
"children": [
|
||
{
|
||
"name": "pack_report",
|
||
"path": "/enm_pack/report",
|
||
"meta": {
|
||
"title": "生产报告",
|
||
"icon": "el-icon-document",
|
||
"perms": ["enm"]
|
||
},
|
||
"component": "enm_pack/report"
|
||
},
|
||
// {
|
||
// "name": "pack_power",
|
||
// "path": "/enm_pack/power",
|
||
// "meta": {
|
||
// "title": "单位产品电耗",
|
||
// "icon": "el-icon-grid",
|
||
// "perms": ["enm"]
|
||
// },
|
||
// "component": "enm_pack/power"
|
||
// },
|
||
{
|
||
"name": "pack_teamAnalysis",
|
||
"path": "/enm_pack/teamAnalysis",
|
||
"meta": {
|
||
"title": "班组月度对比",
|
||
"icon": "el-icon-operation",
|
||
"perms": ["enm"]
|
||
},
|
||
"component": "enm_pack/teamAnalysis"
|
||
},
|
||
{
|
||
"name": "pack_workshopAnalysis",
|
||
"path": "/enm_pack/workshopAnalysis",
|
||
"meta": {
|
||
"title": "车间单耗分析",
|
||
"icon": "el-icon-data-line",
|
||
"perms": ["enm"]
|
||
},
|
||
"component": "enm_pack/workshopAnalysis"
|
||
},
|
||
{
|
||
"name": "pack_handoverLog",
|
||
"path": "/enm_pack/handoverLog",
|
||
"meta": {
|
||
"title": "交接班日志",
|
||
"icon": "el-icon-document-copy",
|
||
"perms": ["enm"]
|
||
},
|
||
"component": "enm_pack/handoverLog"
|
||
},
|
||
]
|
||
},
|
||
//全厂能源
|
||
{
|
||
"name": "energy",
|
||
"path": "/energy",
|
||
"meta": {
|
||
"title": "全厂能源",
|
||
"icon": "el-icon-share",
|
||
"type": "menu",
|
||
"perms": ["enm"]
|
||
},
|
||
"children": [
|
||
|
||
{
|
||
"name": "energy",
|
||
"path": "/ungrouped/energy",
|
||
"meta": {
|
||
"title": "能源统计",
|
||
"icon": "el-icon-grid",
|
||
"perms": ["enm"]
|
||
},
|
||
"component": "ungrouped/energy"
|
||
},
|
||
{
|
||
"name": "value",
|
||
"path": "/ungrouped/value",
|
||
"meta": {
|
||
"title": "工业产值",
|
||
"icon": "el-icon-grid",
|
||
"perms": ["enm"]
|
||
},
|
||
"component": "ungrouped/value"
|
||
},
|
||
{
|
||
"name": "electric",
|
||
"path": "/ungrouped/electric",
|
||
"meta": {
|
||
"title": "全厂电量统计",
|
||
"icon": "el-icon-grid",
|
||
"perms": ["enm"]
|
||
},
|
||
"component": "ungrouped/electric"
|
||
},
|
||
{
|
||
"name": "electricHour",
|
||
"path": "/ungrouped/electricHour",
|
||
"meta": {
|
||
"title": "全厂电量小时统计",
|
||
"icon": "el-icon-grid",
|
||
"perms": ["enm"]
|
||
},
|
||
"component": "ungrouped/electric_hour"
|
||
},
|
||
{
|
||
"name": "electricDay",
|
||
"path": "/ungrouped/electricDay",
|
||
"meta": {
|
||
"title": "全厂电量日统计",
|
||
"icon": "el-icon-grid",
|
||
"perms": ["enm"]
|
||
},
|
||
"component": "ungrouped/electric_day"
|
||
},
|
||
{
|
||
"name": "electricMonth",
|
||
"path": "/ungrouped/electricMonth",
|
||
"meta": {
|
||
"title": "全厂电量月统计",
|
||
"icon": "el-icon-grid",
|
||
"perms": ["enm"]
|
||
},
|
||
"component": "ungrouped/electric_month"
|
||
}
|
||
]
|
||
},
|
||
//全厂报表
|
||
{
|
||
"name": "rforms",
|
||
"path": "/rforms",
|
||
"meta": {
|
||
"title": "全厂报表",
|
||
"icon": "el-icon-histogram",
|
||
"type": "menu",
|
||
"perms": ["enm"]
|
||
},
|
||
"children": [
|
||
{
|
||
"name": "costing",
|
||
"path": "/ungrouped/costing",
|
||
"meta": {
|
||
"title": "成本计算",
|
||
"icon": "el-icon-grid",
|
||
"perms": ["enm"]
|
||
},
|
||
"component": "ungrouped/costing"
|
||
},
|
||
{
|
||
"name": "quality",
|
||
"path": "/ungrouped/quality",
|
||
"meta": {
|
||
"title": "质量报表",
|
||
"icon": "el-icon-grid",
|
||
"perms": ["enm"]
|
||
},
|
||
"component": "ungrouped/quality"
|
||
}
|
||
,{
|
||
"name": "reportAll",
|
||
"path": "/ungrouped/report",
|
||
"meta": {
|
||
"title": "生产日报表",
|
||
"icon": "el-icon-grid",
|
||
"perms": ["enm"]
|
||
},
|
||
"component": "ungrouped/report"
|
||
},{
|
||
"name": "reportMonthAll",
|
||
"path": "/ungrouped/reportMonth",
|
||
"meta": {
|
||
"title": "生产月报表",
|
||
"icon": "el-icon-grid",
|
||
"perms": ["enm"]
|
||
},
|
||
"component": "ungrouped/report_month"
|
||
}
|
||
// ,{
|
||
// "name": "echart",
|
||
// "path": "/ungrouped/echart",
|
||
// "meta": {
|
||
// "title": "图表",
|
||
// "icon": "el-icon-grid",
|
||
// "perms": ["enm"]
|
||
// },
|
||
// "component": "ungrouped/echart"
|
||
// }
|
||
]
|
||
},
|
||
//设备
|
||
{
|
||
"name": "em",
|
||
"path": "/em",
|
||
"meta": {
|
||
"title": "设备",
|
||
"icon": "el-icon-grid",
|
||
"type": "menu",
|
||
"perms": ["em"]
|
||
},
|
||
"children": [
|
||
{
|
||
"name": "equipment",
|
||
"path": "/em/equipment",
|
||
"meta": {
|
||
"title": "生产设备",
|
||
"icon": "el-icon-cellphone",
|
||
"perms": ["equipment"]
|
||
},
|
||
"component": "em/equipment"
|
||
},
|
||
{
|
||
"name": "equipmentc",
|
||
"path": "/em/equipmentc",
|
||
"meta": {
|
||
"title": "计量设备",
|
||
"icon": "el-icon-cellphone",
|
||
"perms": ["equipment"]
|
||
},
|
||
"component": "em/equipmentc"
|
||
},
|
||
]
|
||
},
|
||
//事件
|
||
{
|
||
"name": "ecm",
|
||
"path": "/ecm",
|
||
"meta": {
|
||
"title": "事件",
|
||
"icon": "el-icon-camera-filled",
|
||
"type": "menu",
|
||
"perms": ["ecm"]
|
||
},
|
||
"children": [
|
||
{
|
||
"name": "event",
|
||
"path": "/ecm/event",
|
||
"meta": {
|
||
"title": "事件列表",
|
||
"icon": "el-icon-alarm-clock",
|
||
"perms": ["event"]
|
||
},
|
||
"component": "ecm/event",
|
||
}
|
||
,
|
||
{
|
||
"name": "eventfrom",
|
||
"path": "/ecm/event_from",
|
||
"meta": {
|
||
"title": "事件详情",
|
||
"icon": "el-icon-menu",
|
||
"hidden": true,
|
||
"perms": ["event"]
|
||
},
|
||
"component": "ecm/event_from"
|
||
}
|
||
,
|
||
{
|
||
"name": "eventhandlefrom",
|
||
"path": "/ecm/event_handlefrom",
|
||
"meta": {
|
||
"title": "处理事件",
|
||
"icon": "el-icon-menu",
|
||
"perms": ["event"],
|
||
"hidden": true,
|
||
},
|
||
"component": "ecm/event_handlefrom"
|
||
},
|
||
{
|
||
"name": "myevent",
|
||
"path": "/ecm/myevent",
|
||
"meta": {
|
||
"title": "我的事件",
|
||
"icon": "el-icon-notification",
|
||
"perms": ["myevent"]
|
||
},
|
||
"component": "ecm/myevent"
|
||
},
|
||
{
|
||
"name": "notify_setting",
|
||
"path": "/ecm/notify_setting",
|
||
"meta": {
|
||
"title": "提醒配置",
|
||
"icon": "el-icon-setting",
|
||
"perms": ["notify_setting"]
|
||
},
|
||
"component": "ecm/notify_setting"
|
||
},
|
||
{
|
||
"name": "algo",
|
||
"path": "/ecm/algo",
|
||
"meta": {
|
||
"title": "算法布设",
|
||
"icon": "el-icon-set-up",
|
||
"perms": ["algo"]
|
||
},
|
||
"component": "ecm/algo"
|
||
}
|
||
]
|
||
},
|
||
//风控
|
||
{
|
||
"name": "opm",
|
||
"path": "/opm",
|
||
"meta": {
|
||
"title": "风控",
|
||
"icon": "el-icon-list",
|
||
"type": "menu",
|
||
"perms": ["opm"]
|
||
},
|
||
"children": [
|
||
{
|
||
"name": "operation",
|
||
"path": "/opm/operation",
|
||
"meta": {
|
||
"title": "作业列表",
|
||
"icon": "el-icon-tickets",
|
||
"perms": ["operation"]
|
||
},
|
||
"component": "opm/operation"
|
||
},
|
||
{
|
||
"name": "oplcate",
|
||
"path": "/opm/oplcate",
|
||
"meta": {
|
||
"title": "许可证分类",
|
||
"icon": "el-icon-ticket",
|
||
"perms": ["oplcate"]
|
||
},
|
||
"component": "opm/oplcate"
|
||
},
|
||
{
|
||
"name": "opl",
|
||
"path": "/opm/opl",
|
||
"meta": {
|
||
"title": "作业许可证",
|
||
"icon": "el-icon-menu",
|
||
"hidden": true,
|
||
"perms": ["operation"]
|
||
},
|
||
"component": "opm/opl"
|
||
},
|
||
{
|
||
"name": "fire",
|
||
"path": "/opm/fire",
|
||
"meta": {
|
||
"title": "动火作业许可证",
|
||
"icon": "el-icon-menu",
|
||
"hidden": true,
|
||
"perms": ["operation"]
|
||
},
|
||
"component": "opm/fire"
|
||
},
|
||
{
|
||
"name": "space",
|
||
"path": "/opm/space",
|
||
"meta": {
|
||
"title": "有限空间作业许可证",
|
||
"icon": "el-icon-menu",
|
||
"hidden": true,
|
||
"perms": ["operation"]
|
||
},
|
||
"component": "opm/space"
|
||
},
|
||
{
|
||
"name": "clear",
|
||
"path": "/opm/clear",
|
||
"meta": {
|
||
"title": "清库作业许可证",
|
||
"icon": "el-icon-menu",
|
||
"hidden": true,
|
||
"perms": ["operation"]
|
||
},
|
||
"component": "opm/clear"
|
||
} ,
|
||
{
|
||
"name": "high",
|
||
"path": "/opm/high",
|
||
"meta": {
|
||
"title": "高处作业许可证",
|
||
"icon": "el-icon-menu",
|
||
"hidden": true,
|
||
"perms": ["operation"]
|
||
},
|
||
"component": "opm/high"
|
||
},
|
||
{
|
||
"name": "hoisting",
|
||
"path": "/opm/hoisting",
|
||
"meta": {
|
||
"title": "吊装作业许可证",
|
||
"icon": "el-icon-menu",
|
||
"hidden": true,
|
||
"perms": ["operation"]
|
||
},
|
||
"component": "opm/hoisting"
|
||
},
|
||
{
|
||
"name": "preheat",
|
||
"path": "/opm/preheat",
|
||
"meta": {
|
||
"title": "预热器清堵作业许可证",
|
||
"icon": "el-icon-menu",
|
||
"hidden": true,
|
||
"perms": ["operation"]
|
||
},
|
||
"component": "opm/preheat"
|
||
},
|
||
{
|
||
"name": "cooler",
|
||
"path": "/opm/cooler",
|
||
"meta": {
|
||
"title": "篦冷机清大块作业许可证",
|
||
"icon": "el-icon-menu",
|
||
"hidden": true,
|
||
"perms": ["operation"]
|
||
},
|
||
"component": "opm/cooler"
|
||
},
|
||
{
|
||
"name": "soil",
|
||
"path": "/opm/soil",
|
||
"meta": {
|
||
"title": "动土作业许可证",
|
||
"icon": "el-icon-menu",
|
||
"hidden": true,
|
||
"perms": ["operation"]
|
||
},
|
||
"component": "opm/soil"
|
||
},
|
||
{
|
||
"name": "usecl",
|
||
"path": "/opm/usecl",
|
||
"meta": {
|
||
"title": "临时用电作业许可证",
|
||
"icon": "el-icon-menu",
|
||
"hidden": true,
|
||
"perms": ["operation"]
|
||
},
|
||
"component": "opm/usecl"
|
||
},
|
||
{
|
||
"name": "normal",
|
||
"path": "/opm/normal",
|
||
"meta": {
|
||
"title": "普通作业许可证",
|
||
"icon": "el-icon-menu",
|
||
"hidden": true,
|
||
"perms": ["operation"]
|
||
},
|
||
"component": "opm/normal"
|
||
}
|
||
]
|
||
},
|
||
//相关方
|
||
{
|
||
"name": "rpm",
|
||
"path": "/rpm",
|
||
"meta": {
|
||
"title": "相关方",
|
||
"icon": "el-icon-avatar",
|
||
"type": "menu",
|
||
"perms": ["rpm"]
|
||
},
|
||
"children": [
|
||
{
|
||
"name": "rparty",
|
||
"path": "/rpm/rparty",
|
||
"meta": {
|
||
"title": "相关方列表",
|
||
"icon": "el-icon-tickets",
|
||
"perms": ["rparty"]
|
||
},
|
||
"component": "rpm/rparty"
|
||
},
|
||
{
|
||
"name": "blacklist",
|
||
"path": "/rpm/blacklist",
|
||
"meta": {
|
||
"title": "黑名单",
|
||
"icon": "el-icon-box",
|
||
"perms": ["blacklist"]
|
||
},
|
||
"component": "rpm/blacklist"
|
||
},
|
||
{
|
||
"name": "remployee",
|
||
"path": "/rpm/remployee",
|
||
"meta": {
|
||
"title": "人员列表",
|
||
"icon": "el-icon-user",
|
||
"perms": ["remployee"]
|
||
},
|
||
"component": "rpm/remployee"
|
||
},
|
||
{
|
||
"name": "rcertificate",
|
||
"path": "/rpm/rcertificate",
|
||
"meta": {
|
||
"title": "人员证书",
|
||
"icon": "el-icon-postcard",
|
||
"perms": ["rcertificate"]
|
||
},
|
||
"component": "rpm/rcertificate"
|
||
},
|
||
{
|
||
"name": "rfile",
|
||
"path": "/rpm/rfile",
|
||
"meta": {
|
||
"title": "企业资料",
|
||
"icon": "el-icon-shopping-bag",
|
||
"perms": ["rfile"]
|
||
},
|
||
"component": "rpm/rfile"
|
||
},
|
||
{
|
||
"name": "rpj",
|
||
"path": "/rpm/rpj",
|
||
"meta": {
|
||
"title": "入厂项目",
|
||
"icon": "el-icon-calendar",
|
||
"perms": ["rpj"]
|
||
},
|
||
"component": "rpm/rpj"
|
||
},
|
||
{
|
||
"name": "rpjadd",
|
||
"path": "/rpm/rpjadd",
|
||
"meta": {
|
||
"title": "入厂项目相关信息",
|
||
"icon": "el-icon-menu",
|
||
"hidden": true,
|
||
"perms": ["rpj"]
|
||
},
|
||
"component": "rpm/rpjadd"
|
||
},
|
||
|
||
]
|
||
},
|
||
//访客
|
||
{
|
||
"name": "vm",
|
||
"path": "/vm",
|
||
"meta": {
|
||
"title": "访客",
|
||
"icon": "el-icon-user-filled",
|
||
"type": "menu",
|
||
"perms":['visit']
|
||
},
|
||
"children": [
|
||
{
|
||
"name": "visit",
|
||
"path": "/vm/visit",
|
||
"meta": {
|
||
"title": "来访项目",
|
||
"icon": "el-icon-tickets",
|
||
"perms":['visit']
|
||
},
|
||
"component": "vm/visit"
|
||
},
|
||
{
|
||
"name": "visitor",
|
||
"path": "/vm/visitor",
|
||
"meta": {
|
||
"title": "我的访客",
|
||
"icon": "el-icon-user",
|
||
"perms":['visit']
|
||
},
|
||
"component": "vm/visitor"
|
||
},{
|
||
"name": "people",
|
||
"path": "/vm/people",
|
||
"meta": {
|
||
"title": "访客人员",
|
||
"icon": "el-icon-menu",
|
||
"perms":['visit'],
|
||
"hidden": true,
|
||
},
|
||
"component": "vm/people"
|
||
}
|
||
,{
|
||
"name": "vistoradd",
|
||
"path": "/vm/vistoradd",
|
||
"meta": {
|
||
"title": "项目信息",
|
||
"icon": "el-icon-menu",
|
||
"hidden": true,
|
||
"perms":['visit']
|
||
},
|
||
"component": "vm/vistoradd"
|
||
},
|
||
]
|
||
},
|
||
//审批
|
||
{
|
||
"name": "wf",
|
||
"path": "/wf",
|
||
"meta": {
|
||
"title": "审批",
|
||
"icon": "el-icon-circle-check-filled",
|
||
"type": "menu",
|
||
"perms": ["wf"]
|
||
},
|
||
"children": [
|
||
{
|
||
"name": "workflow",
|
||
"path": "/wf/workflow",
|
||
"meta": {
|
||
"title": "工作流",
|
||
"icon": "el-icon-guide",
|
||
"perms": ["workflow"]
|
||
},
|
||
"component": "wf/workflow"
|
||
},
|
||
{
|
||
"name": "configuration",
|
||
"path": "/wf/configuration",
|
||
"meta": {
|
||
"title": "工作流配置",
|
||
"icon": "el-icon-menu",
|
||
"hidden": true,
|
||
"perms": ["workflow"]
|
||
},
|
||
"component": "wf/configuration"
|
||
}
|
||
,
|
||
{
|
||
"name": "allwork",
|
||
"path": "/wf/allwork",
|
||
"meta": {
|
||
"title": "全部工单",
|
||
"icon": "el-icon-folder",
|
||
"perms": ["allwork"]
|
||
|
||
},
|
||
"component": "wf/allwork"
|
||
} ,
|
||
{
|
||
"name": "ownerwork",
|
||
"path": "/wf/ownerwork",
|
||
"meta": {
|
||
"title": "我创建的",
|
||
"icon": "el-icon-folder-add",
|
||
"perms": ["ownerwork"]
|
||
},
|
||
"component": "wf/ownerwork"
|
||
}
|
||
,
|
||
|
||
{
|
||
"name": "duty",
|
||
"path": "/wf/dutywork",
|
||
"meta": {
|
||
"title": "待办工单",
|
||
"icon": "el-icon-folder-opened",
|
||
"perms": ["duty"]
|
||
},
|
||
"component": "wf/dutywork"
|
||
},
|
||
{
|
||
"name": "worked",
|
||
"path": "/wf/worked",
|
||
"meta": {
|
||
"title": "我处理的",
|
||
"icon": "el-icon-expand",
|
||
"perms": ["worked"]
|
||
},
|
||
"component": "wf/worked"
|
||
},
|
||
{
|
||
"name": "ccwork",
|
||
"path": "/wf/ccwork",
|
||
"meta": {
|
||
"title": "抄送我的",
|
||
"icon": "el-icon-edit-pen",
|
||
"perms": ["ccwork"]
|
||
},
|
||
"component": "wf/ccwork"
|
||
},
|
||
{
|
||
"name": "ticketdetail",
|
||
"path": "/wf/ticketdetail",
|
||
"meta": {
|
||
"title": "工单详情",
|
||
"icon": "el-icon-menu",
|
||
"hidden": true,
|
||
"perms": ["duty"]
|
||
},
|
||
"component": "wf/ticketdetail"
|
||
},
|
||
]
|
||
},
|
||
//区域
|
||
{
|
||
"name": "am",
|
||
"path": "/am",
|
||
"meta": {
|
||
"title": "区域",
|
||
"icon": "el-icon-location-filled",
|
||
"type": "menu",
|
||
"perms": ["am"]
|
||
},
|
||
"children": [
|
||
{
|
||
"name": "area",
|
||
"path": "/am/area",
|
||
"meta": {
|
||
"title": "区域列表",
|
||
"icon": "el-icon-tickets",
|
||
"perms": ["area"]
|
||
},
|
||
"component": "am/area"
|
||
},
|
||
{
|
||
"name": "eqm",
|
||
"path": "/am/eqm",
|
||
"meta": {
|
||
"title": "门禁通道",
|
||
"icon": "el-icon-phone",
|
||
"perms": ["eqm"]
|
||
},
|
||
"component": "am/em1"
|
||
},
|
||
{
|
||
"name": "monitor",
|
||
"path": "/am/monitor",
|
||
"meta": {
|
||
"title": "视频通道",
|
||
"icon": "el-icon-video-camera",
|
||
"perms": ["monitor"]
|
||
},
|
||
"component": "am/monitor"
|
||
},
|
||
{
|
||
"name": "audio",
|
||
"path": "/am/audio",
|
||
"meta": {
|
||
"title": "喇叭通道",
|
||
"icon": "el-icon-mic",
|
||
"perms": ["audio"]
|
||
},
|
||
"component": "am/audio"
|
||
},{
|
||
"name": "blt",
|
||
"path": "/am/blt",
|
||
"meta": {
|
||
"title": "定位标签",
|
||
"icon": "el-icon-map-location",
|
||
"perms": ["blt"]
|
||
},
|
||
"component": "am/blt"
|
||
},
|
||
]
|
||
},
|
||
//人事
|
||
{
|
||
"name": "hrm",
|
||
"path": "/hrm",
|
||
"meta": {
|
||
"title": "人事",
|
||
"icon": "el-icon-platform",
|
||
"type": "menu",
|
||
"perms": ["hrm"]
|
||
},
|
||
"children": [
|
||
|
||
{
|
||
"name": "employee",
|
||
"path": "/hrm/employee",
|
||
"meta": {
|
||
"title": "人员信息",
|
||
"icon": "el-icon-user",
|
||
"perms": ["employee"]
|
||
},
|
||
"component": "hrm/employee"
|
||
}
|
||
,
|
||
{
|
||
"name": "certificate",
|
||
"path": "/hrm/certificate",
|
||
"meta": {
|
||
"title": "证书列表",
|
||
"icon": "el-icon-tickets",
|
||
"perms": ["certificate"]
|
||
},
|
||
"component": "hrm/certificate"
|
||
}
|
||
,
|
||
{
|
||
"name": "clockRecord",
|
||
"path": "/hrm/clock_record",
|
||
"meta": {
|
||
"title": "打卡记录",
|
||
"icon": "el-icon-check",
|
||
"perms": ["clock_record"]
|
||
},
|
||
"component": "hrm/clock_record"
|
||
},
|
||
{
|
||
"name": "certificate",
|
||
"path": "/hrm/certificate",
|
||
"meta": {
|
||
"title": "相关证书",
|
||
"icon": "el-icon-menu",
|
||
"hidden": true,
|
||
"perms": ["employee"]
|
||
|
||
},
|
||
"component": "hrm/certificate"
|
||
},
|
||
|
||
]
|
||
},
|
||
//基础配置
|
||
{
|
||
"name": "base",
|
||
"path": "/base",
|
||
"meta": {
|
||
"title": "基础配置",
|
||
"icon": "el-icon-management",
|
||
"type": "menu",
|
||
"perms": ["enm"]
|
||
},
|
||
"children": [
|
||
{
|
||
"path": "/ungrouped/team",
|
||
"name": "team",
|
||
"meta": {
|
||
"title": "班组管理",
|
||
"icon": "el-icon-postcard",
|
||
"type": "menu",
|
||
"perms": ["enm"]
|
||
},
|
||
"component": "ungrouped/team"
|
||
},
|
||
{
|
||
"name": "mgruop",
|
||
"path": "/ungrouped/mgruop",
|
||
"meta": {
|
||
"title": "测点集",
|
||
"icon": "el-icon-grid",
|
||
"perms": ["enm"]
|
||
},
|
||
"component": "ungrouped/mgroup"
|
||
},
|
||
{
|
||
"name": "mpoint",
|
||
"path": "/em/mpoint",
|
||
"meta": {
|
||
"title": "测点",
|
||
"icon": "el-icon-grid",
|
||
"perms": ["enm"]
|
||
},
|
||
"component": "em/mpoint"
|
||
},
|
||
{
|
||
"name": "material",
|
||
"path": "/ungrouped/material",
|
||
"meta": {
|
||
"title": "物料",
|
||
"icon": "el-icon-grid",
|
||
"perms": ["enm"]
|
||
},
|
||
"component": "ungrouped/material"
|
||
}
|
||
]
|
||
},
|
||
//每月配置
|
||
{
|
||
"name": "month",
|
||
"path": "/month",
|
||
"meta": {
|
||
"title": "每月配置",
|
||
"icon": "el-icon-checked",
|
||
"type": "menu",
|
||
"perms": ["enm"]
|
||
},
|
||
"children": [
|
||
{
|
||
"name": "priceset",
|
||
"path": "/ungrouped/priceset",
|
||
"meta": {
|
||
"title": "物料价格配置",
|
||
"icon": "el-icon-grid",
|
||
"perms": ["enm"]
|
||
},
|
||
"component": "ungrouped/priceset"
|
||
},
|
||
{
|
||
"name": "feeset",
|
||
"path": "/ungrouped/feeset",
|
||
"meta": {
|
||
"title": "工段成本配置",
|
||
"icon": "el-icon-grid",
|
||
"perms": ["enm"]
|
||
},
|
||
"component": "ungrouped/feeset"
|
||
},
|
||
{
|
||
"name": "goalSetting",
|
||
"path": "/ungrouped/goalSetting",
|
||
"meta": {
|
||
"title": "月度年度目标值",
|
||
"icon": "el-icon-grid",
|
||
"perms": ["enm"]
|
||
},
|
||
"component": "ungrouped/goalSetting"
|
||
},
|
||
]
|
||
},
|
||
|
||
//系统
|
||
{
|
||
"name": "sys",
|
||
"path": "/sys",
|
||
"meta": {
|
||
"title": "系统",
|
||
"icon": "el-icon-tools",
|
||
"type": "menu",
|
||
"perms": ["sys"]
|
||
},
|
||
"children": [
|
||
{
|
||
"path": "/sys/user",
|
||
"name": "user",
|
||
"meta": {
|
||
"title": "账户管理",
|
||
"icon": "el-icon-user",
|
||
"type": "menu",
|
||
"perms": ["user"]
|
||
},
|
||
"component": "sys/user"
|
||
},
|
||
{
|
||
"path": "/sys/dept",
|
||
"name": "dept",
|
||
"meta": {
|
||
"title": "部门管理",
|
||
"icon": "sc-icon-organization",
|
||
"type": "menu",
|
||
"perms": ["dept"]
|
||
},
|
||
"component": "sys/dept"
|
||
},
|
||
{
|
||
"path": "/sys/post",
|
||
"name": "post",
|
||
"meta": {
|
||
"title": "岗位管理",
|
||
"icon": "el-icon-postcard",
|
||
"type": "menu",
|
||
"perms": ["post"]
|
||
},
|
||
"component": "sys/post"
|
||
},
|
||
{
|
||
"path": "/sys/role",
|
||
"name": "role",
|
||
"meta": {
|
||
"title": "角色管理",
|
||
"icon": "el-icon-notebook",
|
||
"type": "menu",
|
||
"perms": ["role"]
|
||
},
|
||
"component": "sys/role"
|
||
},
|
||
{
|
||
"path": "/sys/dict",
|
||
"name": "dict",
|
||
"meta": {
|
||
"title": "字典管理",
|
||
"icon": "el-icon-document",
|
||
"type": "menu",
|
||
"perms": ["dict"]
|
||
},
|
||
"component": "sys/dict"
|
||
},
|
||
{
|
||
"path": "/sys/task",
|
||
"name": "task",
|
||
"meta": {
|
||
"title": "计划任务",
|
||
"icon": "el-icon-alarm-clock",
|
||
"type": "menu",
|
||
"perms": ["task"]
|
||
},
|
||
"component": "sys/task"
|
||
}
|
||
]
|
||
},
|
||
//运维
|
||
{
|
||
"name": "ops",
|
||
"path": "/ops",
|
||
"meta": {
|
||
"title": "运维",
|
||
"icon": "el-icon-briefcase",
|
||
"type": "menu",
|
||
"perms": ["ops"]
|
||
},
|
||
"children": [
|
||
{
|
||
"name": "menu",
|
||
"path": "/ops/menu",
|
||
"meta": {
|
||
"title": "菜单管理",
|
||
"icon": "el-icon-fold",
|
||
"perms": ["menu"]
|
||
},
|
||
"component": "ops/menu"
|
||
},
|
||
{
|
||
"name": "log",
|
||
"path": "/ops/log",
|
||
"meta": {
|
||
"title": "请求日志",
|
||
"icon": "el-icon-document",
|
||
"perms": ["log"]
|
||
},
|
||
"component": "ops/log_request"
|
||
},
|
||
{
|
||
"name": "thirdLogs",
|
||
"path": "/ops/thirdLogs",
|
||
"meta": {
|
||
"title": "第三方日志",
|
||
"icon": "el-icon-document",
|
||
"perms": ["third_log"]
|
||
},
|
||
"component": "ops/thirdLogs"
|
||
},
|
||
{
|
||
"name": "fileLogs",
|
||
"path": "/ops/fileLogs",
|
||
"meta": {
|
||
"title": "文件日志",
|
||
"icon": "el-icon-document",
|
||
"perms": ["file_log"]
|
||
},
|
||
"component": "ops/fileLogs"
|
||
},
|
||
{
|
||
"name": "server",
|
||
"path": "/ops/server",
|
||
"meta": {
|
||
"title": "服务器",
|
||
"icon": "el-icon-document",
|
||
"perms": ["ops"]
|
||
},
|
||
"component": "ops/server"
|
||
},
|
||
{
|
||
"name": "setting",
|
||
"path": "/ops/setting",
|
||
"meta": {
|
||
"title": "配置",
|
||
"icon": "el-icon-document",
|
||
"perms": ["ops"]
|
||
},
|
||
"component": "ops/setting"
|
||
},
|
||
]
|
||
},
|
||
]
|
||
export default routes;
|