From fda89dde11e161ea5d01eabbec4de1a8c15a0e0e Mon Sep 17 00:00:00 2001 From: shijing Date: Tue, 22 Aug 2023 09:25:32 +0800 Subject: [PATCH] =?UTF-8?q?fixed:=E9=83=A8=E5=88=86=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/config/route.js | 239 +++++++++++----------- src/views/enm_rm/handover_form.vue | 2 +- src/views/home/widgets/index_enm.vue | 119 +---------- src/views/ungrouped/electric.vue | 294 +++++++++++++++++++++------ src/views/ungrouped/value.vue | 121 +++++++++-- 5 files changed, 457 insertions(+), 318 deletions(-) diff --git a/src/config/route.js b/src/config/route.js index fdf42856..b1884e06 100644 --- a/src/config/route.js +++ b/src/config/route.js @@ -2,31 +2,8 @@ // 书写格式与动态路由格式一致,全部经由框架统一转换 // 比较动态路由在meta中多加入了role角色权限,为数组类型。一个菜单是否有权限显示,取决于它以及后代菜单是否有权限。 // routes 显示在左侧菜单中的路由(显示顺序在动态路由之前) -// 示例如下 - -// const routes = [ -// { -// name: "demo", -// path: "/demo", -// meta: { -// icon: "el-icon-eleme-filled", -// title: "演示", -// role: ["SA"] -// }, -// children: [{ -// name: "demopage", -// path: "/demopage", -// component: "test/autocode/index", -// meta: { -// icon: "el-icon-menu", -// title: "演示页面", -// role: ["SA"] -// } -// }] -// } -// ] - const routes = [ + //首页 { "name": "home", "path": "/home", @@ -104,6 +81,7 @@ const routes = [ }, ] }, + //报表 { "name": "bi", "path": "/bi", @@ -136,6 +114,7 @@ const routes = [ } ] }, + //电石渣 { "name": "enm_slag", "path": "/enm_slag", @@ -198,6 +177,7 @@ const routes = [ }, ] }, + //原料磨 { "name": "enm_rm", "path": "/enm_rm", @@ -260,6 +240,7 @@ const routes = [ }, ] }, + //回转窑 { "name": "enm_kiln", "path": "/enm_kiln", @@ -322,6 +303,7 @@ const routes = [ }, ] }, + //煤磨 { "name": "enm_coal", "path": "/enm_coal", @@ -384,6 +366,7 @@ const routes = [ }, ] }, + //水泥磨 { "name": "enm_mill", "path": "/enm_mill", @@ -446,6 +429,7 @@ const routes = [ }, ] }, + //水泥包装 { "name": "enm_pack", "path": "/enm_pack", @@ -508,6 +492,104 @@ const routes = [ }, ] }, + //全厂能源 + { + "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": "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": "echart", + // "path": "/ungrouped/echart", + // "meta": { + // "title": "图表", + // "icon": "el-icon-grid", + // "perms": ["enm"] + // }, + // "component": "ungrouped/echart" + // } + ] + }, + //设备 { "name": "em", "path": "/em", @@ -530,6 +612,7 @@ const routes = [ }, ] }, + //事件 { "name": "ecm", "path": "/ecm", @@ -606,6 +689,7 @@ const routes = [ } ] }, + //风控 { "name": "opm", "path": "/opm", @@ -759,6 +843,7 @@ const routes = [ } ] }, + //相关方 { "name": "rpm", "path": "/rpm", @@ -843,6 +928,7 @@ const routes = [ ] }, + //访客 { "name": "vm", "path": "/vm", @@ -896,6 +982,7 @@ const routes = [ }, ] }, + //审批 { "name": "wf", "path": "/wf", @@ -994,6 +1081,7 @@ const routes = [ }, ] }, + //区域 { "name": "am", "path": "/am", @@ -1055,6 +1143,7 @@ const routes = [ }, ] }, + //人事 { "name": "hrm", "path": "/hrm", @@ -1113,6 +1202,7 @@ const routes = [ ] }, + //基础配置 { "name": "base", "path": "/base", @@ -1166,6 +1256,7 @@ const routes = [ } ] }, + //每月配置 { "name": "month", "path": "/month", @@ -1208,101 +1299,8 @@ const routes = [ }, ] }, - { - "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": "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": "echart", - // "path": "/ungrouped/echart", - // "meta": { - // "title": "图表", - // "icon": "el-icon-grid", - // "perms": ["enm"] - // }, - // "component": "ungrouped/echart" - // } - ] - }, + + //系统 { "name": "sys", "path": "/sys", @@ -1381,6 +1379,7 @@ const routes = [ } ] }, + //运维 { "name": "ops", "path": "/ops", @@ -1454,6 +1453,4 @@ const routes = [ ] }, ] - - export default routes; diff --git a/src/views/enm_rm/handover_form.vue b/src/views/enm_rm/handover_form.vue index 902e71f4..afb5eb33 100644 --- a/src/views/enm_rm/handover_form.vue +++ b/src/views/enm_rm/handover_form.vue @@ -73,7 +73,7 @@ - + diff --git a/src/views/home/widgets/index_enm.vue b/src/views/home/widgets/index_enm.vue index 6c9eb428..c75bbed2 100644 --- a/src/views/home/widgets/index_enm.vue +++ b/src/views/home/widgets/index_enm.vue @@ -1,17 +1,9 @@