Commit af91be88 authored by 李苏's avatar 李苏 💬

动态路由 和 修改

parent 92f63fb5
...@@ -6,7 +6,7 @@ ENV = 'http://demo.ruoyi.vip/' ...@@ -6,7 +6,7 @@ ENV = 'http://demo.ruoyi.vip/'
# 格物管理系统/开发环境 # 格物管理系统/开发环境
VUE_APP_BASE_API = '/dev-api' VUE_APP_BASE_API = '/dev-api'
VUE_APP_BASE_Print = 'http://119.3.92.249:18080/dmg' VUE_APP_BASE_Print = 'http://192.168.30.254:18080/dmg'
# 路由懒加载 # 路由懒加载
VUE_CLI_BABEL_TRANSPILE_MODULES = true VUE_CLI_BABEL_TRANSPILE_MODULES = true
...@@ -5,4 +5,4 @@ VUE_APP_TITLE = 陕钢安全管理 ...@@ -5,4 +5,4 @@ VUE_APP_TITLE = 陕钢安全管理
ENV = 'production' ENV = 'production'
# 陕钢安全管理/生产环境 # 陕钢安全管理/生产环境
VUE_APP_BASE_API = 'http://localhost:80/' VUE_APP_BASE_API = '/dev-api'
...@@ -30,15 +30,14 @@ import Layout from '@/layout' ...@@ -30,15 +30,14 @@ import Layout from '@/layout'
export const powerRoutes=[ export const powerRoutes=[
{ {
path: '/basicData', path: '/basicData',
component:() => import( "@/layout/index"), component:"Layout",
hidden: false, hidden: false,
alwaysShow:true, alwaysShow:true,
redirect: 'organizationalManagement', redirect: 'organizationalManagement',
meta: {title: "基础数据", icon: "fa-cog", noCache: false, link: null,mkid:901000000}, meta: {title: "基础数据", icon: "fa-cog", noCache: false, link: null,mkid:901000000},
children: [ children: [
{ {
commonComponent:'organizationalManagement', component:'basicData/organizationalManagement/index',
component:() => import( "@/views/basicData/organizationalManagement/index"),
hidden:false, hidden:false,
meta:{ meta:{
"title": "组织管理", "title": "组织管理",
...@@ -51,8 +50,7 @@ export const powerRoutes=[ ...@@ -51,8 +50,7 @@ export const powerRoutes=[
path:"organizationalManagement" path:"organizationalManagement"
}, },
{ {
commonComponent:'scgw', component:'basicData/scgw/index',
component:() => import( "@/views/basicData/scgw/index"),
hidden:false, hidden:false,
meta:{ meta:{
"title": "岗位管理", "title": "岗位管理",
...@@ -65,8 +63,7 @@ export const powerRoutes=[ ...@@ -65,8 +63,7 @@ export const powerRoutes=[
path:"scgw" path:"scgw"
}, },
{ {
commonComponent:'announcementManagement', component:'basicData/announcementManagement/index',
component:() => import( "@/views/basicData/announcementManagement/index"),
hidden:false, hidden:false,
meta:{ meta:{
"title": "公告管理", "title": "公告管理",
...@@ -79,8 +76,7 @@ export const powerRoutes=[ ...@@ -79,8 +76,7 @@ export const powerRoutes=[
path:"announcementManagement" path:"announcementManagement"
}, },
{ {
commonComponent:'securityDocumentManagement', component:'basicData/securityDocumentManagement/index',
component:() => import( "@/views/basicData/securityDocumentManagement/index"),
hidden:false, hidden:false,
meta:{ meta:{
"title": "安全文档管理", "title": "安全文档管理",
...@@ -93,8 +89,7 @@ export const powerRoutes=[ ...@@ -93,8 +89,7 @@ export const powerRoutes=[
path:"securityDocumentManagement" path:"securityDocumentManagement"
}, },
{ {
commonComponent:'operationDcManagement', component:'basicData/operationDcManagement/index',
component:() => import( "@/views/basicData/operationDcManagement/index"),
hidden:false, hidden:false,
meta:{ meta:{
"title": "标准作业文档管理", "title": "标准作业文档管理",
...@@ -111,15 +106,14 @@ export const powerRoutes=[ ...@@ -111,15 +106,14 @@ export const powerRoutes=[
/* 隐患管理*/ /* 隐患管理*/
{ {
path: '/dangerManagement', path: '/dangerManagement',
component: Layout, component: 'Layout',
hidden: false, hidden: false,
alwaysShow:true, alwaysShow:true,
redirect: 'maintenanceDg', redirect: 'maintenanceDg',
meta: {title: "隐患管理", icon: "fa-cog", noCache: false, link: null,mkid:902000000}, meta: {title: "隐患管理", icon: "fa-cog", noCache: false, link: null,mkid:902000000},
children: [ children: [
{ {
commonComponent:'yhfl', component:'dangerManagement/yhfl/index',
component:() => import( "@/views/dangerManagement/yhfl/index"),
hidden:false, hidden:false,
meta:{ meta:{
"title": "隐患分类", "title": "隐患分类",
...@@ -132,8 +126,7 @@ export const powerRoutes=[ ...@@ -132,8 +126,7 @@ export const powerRoutes=[
path:"yhfl" path:"yhfl"
}, },
{ {
commonComponent:'yhbzfl', component:'dangerManagement/yhbzfl/index',
component:() => import( "@/views/dangerManagement/yhbzfl/index"),
hidden:false, hidden:false,
meta:{ meta:{
"title": "隐患标准分类", "title": "隐患标准分类",
...@@ -146,8 +139,7 @@ export const powerRoutes=[ ...@@ -146,8 +139,7 @@ export const powerRoutes=[
path:"yhbzfl" path:"yhbzfl"
}, },
{ {
commonComponent:'maintenanceDg', component:'dangerManagement/maintenanceDg/index',
component:() => import( "@/views/dangerManagement/maintenanceDg/index"),
hidden:false, hidden:false,
meta:{ meta:{
"title": "维护隐患检查标准", "title": "维护隐患检查标准",
...@@ -160,8 +152,7 @@ export const powerRoutes=[ ...@@ -160,8 +152,7 @@ export const powerRoutes=[
path:"maintenanceDg" path:"maintenanceDg"
}, },
{ {
commonComponent:'enterSafetyRecords', component:'dangerManagement/enterSafetyRecords/index',
component:() => import( "@/views/dangerManagement/enterSafetyRecords/index"),
hidden:false, hidden:false,
meta:{ meta:{
"title": "录入安全隐患记录", "title": "录入安全隐患记录",
...@@ -174,8 +165,7 @@ export const powerRoutes=[ ...@@ -174,8 +165,7 @@ export const powerRoutes=[
path:"enterSafetyRecords" path:"enterSafetyRecords"
}, },
{ {
commonComponent:'safetyDisposalRecord', component:'dangerManagement/safetyDisposalRecord/index',
component:() => import( "@/views/dangerManagement/safetyDisposalRecord/index"),
hidden:false, hidden:false,
meta:{ meta:{
"title": "安全隐患处理记录", "title": "安全隐患处理记录",
...@@ -189,8 +179,7 @@ export const powerRoutes=[ ...@@ -189,8 +179,7 @@ export const powerRoutes=[
}, },
{ {
commonComponent:'dangerRectificationRecord', component:'dangerManagement/dangerRectificationRecord/index',
component:() => import( "@/views/dangerManagement/dangerRectificationRecord/index"),
hidden:false, hidden:false,
meta:{ meta:{
"title": "录入隐患整改情况", "title": "录入隐患整改情况",
...@@ -204,8 +193,7 @@ export const powerRoutes=[ ...@@ -204,8 +193,7 @@ export const powerRoutes=[
}, },
/* 10 13*/ /* 10 13*/
{ {
commonComponent:'dangerReviewRecord', component:'dangerManagement/dangerReviewRecord/index',
component:() => import( "@/views/dangerManagement/dangerReviewRecord/index"),
hidden:false, hidden:false,
meta:{ meta:{
"title": "录入隐患复查记录", "title": "录入隐患复查记录",
...@@ -218,8 +206,7 @@ export const powerRoutes=[ ...@@ -218,8 +206,7 @@ export const powerRoutes=[
path:"dangerReviewRecord" path:"dangerReviewRecord"
}, },
{ {
commonComponent:'queryDangerRecords', component:'dangerManagement/queryDangerRecords/index',
component:() => import( "@/views/dangerManagement/queryDangerRecords/index"),
hidden:false, hidden:false,
meta:{ meta:{
"title": "查询安全隐患记录", "title": "查询安全隐患记录",
...@@ -236,15 +223,14 @@ export const powerRoutes=[ ...@@ -236,15 +223,14 @@ export const powerRoutes=[
/* 风险域控*/ /* 风险域控*/
{ {
path: '/riskPrecontrol', path: '/riskPrecontrol',
component: Layout, component: 'Layout',
hidden: false, hidden: false,
alwaysShow:true, alwaysShow:true,
redirect: 'screeningCriteria', redirect: 'screeningCriteria',
meta: {title: "风险预控", icon: "fa-cog", noCache: false, link: null,mkid:903000000}, meta: {title: "风险预控", icon: "fa-cog", noCache: false, link: null,mkid:903000000},
children: [ children: [
{ {
commonComponent:'screeningCriteria', component:'riskPrecontrol/screeningCriteria/index',
component:() => import( "@/views/riskPrecontrol/screeningCriteria/index"),
hidden:false, hidden:false,
meta:{ meta:{
"title": "维护风险排查标准", "title": "维护风险排查标准",
...@@ -257,8 +243,7 @@ export const powerRoutes=[ ...@@ -257,8 +243,7 @@ export const powerRoutes=[
path:"screeningCriteria" path:"screeningCriteria"
}, },
{ {
commonComponent:'maintenanceRiskTask', component:'riskPrecontrol/maintenanceRiskTask/index',
component:() => import( "@/views/riskPrecontrol/maintenanceRiskTask/index"),
hidden:false, hidden:false,
meta:{ meta:{
"title": "维护风险排查任务", "title": "维护风险排查任务",
...@@ -271,8 +256,7 @@ export const powerRoutes=[ ...@@ -271,8 +256,7 @@ export const powerRoutes=[
path:"maintenanceRiskTask" path:"maintenanceRiskTask"
}, },
{ {
commonComponent:'riskAnalysis', component:'riskPrecontrol/riskAnalysis/index',
component:() => import( "@/views/riskPrecontrol/riskAnalysis/index"),
hidden:false, hidden:false,
meta:{ meta:{
"title": "风险排查综合分析", "title": "风险排查综合分析",
...@@ -285,8 +269,7 @@ export const powerRoutes=[ ...@@ -285,8 +269,7 @@ export const powerRoutes=[
path:"riskAnalysis" path:"riskAnalysis"
}, },
{ {
commonComponent:'shlx', component:'riskPrecontrol/shlx/index',
component:() => import( "@/views/riskPrecontrol/shlx/index"),
hidden:false, hidden:false,
meta:{ meta:{
"title": "伤害类型维护", "title": "伤害类型维护",
...@@ -299,8 +282,7 @@ export const powerRoutes=[ ...@@ -299,8 +282,7 @@ export const powerRoutes=[
path:"shlx" path:"shlx"
}, },
{ {
commonComponent:'maintenanceRisk', component:'riskPrecontrol/maintenanceRisk/index',
component:() => import( "@/views/riskPrecontrol/maintenanceRisk/index"),
hidden:false, hidden:false,
meta:{ meta:{
"title": "维护风险事件库", "title": "维护风险事件库",
...@@ -313,8 +295,7 @@ export const powerRoutes=[ ...@@ -313,8 +295,7 @@ export const powerRoutes=[
path:"maintenanceRisk" path:"maintenanceRisk"
}, },
{ {
commonComponent:'queryRisk', component:'riskPrecontrol/queryRisk/index',
component:() => import( "@/views/riskPrecontrol/queryRisk/index"),
hidden:false, hidden:false,
meta:{ meta:{
"title": "查询风险事件库", "title": "查询风险事件库",
...@@ -331,15 +312,14 @@ export const powerRoutes=[ ...@@ -331,15 +312,14 @@ export const powerRoutes=[
/* 三违管理*/ /* 三违管理*/
{ {
path: '/threeViolations', path: '/threeViolations',
component: Layout, component: 'Layout',
hidden: false, hidden: false,
alwaysShow:true, alwaysShow:true,
redirect: 'maintainTV', redirect: 'maintainTV',
meta: {title: "三违管理", icon: "fa-cog", noCache: false, link: null,mkid:904000000}, meta: {title: "三违管理", icon: "fa-cog", noCache: false, link: null,mkid:904000000},
children: [ children: [
{ {
commonComponent:'maintainTV', component:'threeViolations/maintainTV/index',
component:() => import( "@/views/threeViolations/maintainTV/index"),
hidden:false, hidden:false,
meta:{ meta:{
"title": "维护三违处罚标准", "title": "维护三违处罚标准",
...@@ -352,8 +332,7 @@ export const powerRoutes=[ ...@@ -352,8 +332,7 @@ export const powerRoutes=[
path:"maintainTV" path:"maintainTV"
}, },
{ {
commonComponent:'enterTV', component:'threeViolations/enterTV/index',
component:() => import( "@/views/threeViolations/enterTV/index"),
hidden:false, hidden:false,
meta:{ meta:{
"title": "录入三违情况记录", "title": "录入三违情况记录",
...@@ -366,8 +345,7 @@ export const powerRoutes=[ ...@@ -366,8 +345,7 @@ export const powerRoutes=[
path:"enterTV" path:"enterTV"
}, },
{ {
commonComponent:'tFPasses', component:'threeViolations/tFPasses/index',
component:() => import( "@/views/threeViolations/tFPasses/index"),
hidden:false, hidden:false,
meta:{ meta:{
"title": "三违过五关", "title": "三违过五关",
...@@ -380,8 +358,7 @@ export const powerRoutes=[ ...@@ -380,8 +358,7 @@ export const powerRoutes=[
path:"tFPasses" path:"tFPasses"
}, },
{ {
commonComponent:'correctTV', component:'threeViolations/correctTV/index',
component:() => import( "@/views/threeViolations/correctTV/index"),
hidden:false, hidden:false,
meta:{ meta:{
"title": "三违行为纠正", "title": "三违行为纠正",
...@@ -394,8 +371,7 @@ export const powerRoutes=[ ...@@ -394,8 +371,7 @@ export const powerRoutes=[
path:"correctTV" path:"correctTV"
}, },
{ {
commonComponent:'queryRecords', component:'threeViolations/queryRecords/index',
component:() => import( "@/views/threeViolations/queryRecords/index"),
hidden:false, hidden:false,
meta:{ meta:{
"title": "查询人员三违记录", "title": "查询人员三违记录",
...@@ -408,8 +384,7 @@ export const powerRoutes=[ ...@@ -408,8 +384,7 @@ export const powerRoutes=[
path:"queryRecords" path:"queryRecords"
}, },
{ {
commonComponent:'punishmentRecord', component:'threeViolations/punishmentRecord/index',
component:() => import( "@/views/threeViolations/punishmentRecord/index"),
hidden:false, hidden:false,
meta:{ meta:{
"title": "安全处罚记录管理", "title": "安全处罚记录管理",
...@@ -426,7 +401,7 @@ export const powerRoutes=[ ...@@ -426,7 +401,7 @@ export const powerRoutes=[
/* 日差管理*/ /* 日差管理*/
{ {
path: '/daily', path: '/daily',
component: Layout, component: 'Layout',
hidden: false, hidden: false,
alwaysShow:true, alwaysShow:true,
redirect: 'planManage', redirect: 'planManage',
...@@ -448,8 +423,7 @@ export const powerRoutes=[ ...@@ -448,8 +423,7 @@ export const powerRoutes=[
// path:"planClassification" // path:"planClassification"
// }, // },
{ {
commonComponent:'planManage', component:'daily/planManage/index',
component:() => import( "@/views/daily/planManage/index"),
hidden:false, hidden:false,
meta:{ meta:{
"title": "应急预案管理", "title": "应急预案管理",
...@@ -462,8 +436,7 @@ export const powerRoutes=[ ...@@ -462,8 +436,7 @@ export const powerRoutes=[
path:"planManage" path:"planManage"
}, },
{ {
commonComponent:'holdCertificate', component:'daily/holdCertificate/index',
component:() => import( "@/views/daily/holdCertificate/index"),
hidden:false, hidden:false,
meta:{ meta:{
"title": "职工持证信息管理", "title": "职工持证信息管理",
...@@ -476,8 +449,7 @@ export const powerRoutes=[ ...@@ -476,8 +449,7 @@ export const powerRoutes=[
path:"holdCertificate" path:"holdCertificate"
}, },
{ {
commonComponent:'activityRecord', component:'daily/activityRecord/index',
component:() => import( "@/views/daily/activityRecord/index"),
hidden:false, hidden:false,
meta:{ meta:{
"title": "维护安全活动记录", "title": "维护安全活动记录",
...@@ -490,8 +462,7 @@ export const powerRoutes=[ ...@@ -490,8 +462,7 @@ export const powerRoutes=[
path:"activityRecord" path:"activityRecord"
}, },
{ {
commonComponent:'nrtm', component:'daily/nrtm/index',
component:() => import( "@/views/daily/nrtm/index"),
hidden:false, hidden:false,
meta:{ meta:{
"title": "非常规作业类型维护", "title": "非常规作业类型维护",
...@@ -504,8 +475,7 @@ export const powerRoutes=[ ...@@ -504,8 +475,7 @@ export const powerRoutes=[
path:"nrtm" path:"nrtm"
}, },
{ {
commonComponent:'nros', component:'daily/nros/index',
component:() => import( "@/views/daily/nros/index"),
hidden:false, hidden:false,
meta:{ meta:{
"title": "非常规作业标准", "title": "非常规作业标准",
...@@ -518,8 +488,7 @@ export const powerRoutes=[ ...@@ -518,8 +488,7 @@ export const powerRoutes=[
path:"nros" path:"nros"
}, },
{ {
commonComponent:'nroa', component:'daily/nroa/index',
component:() => import( "@/views/daily/nroa/index"),
hidden:false, hidden:false,
meta:{ meta:{
"title": "非常规作业申请", "title": "非常规作业申请",
...@@ -532,8 +501,7 @@ export const powerRoutes=[ ...@@ -532,8 +501,7 @@ export const powerRoutes=[
path:"nroa" path:"nroa"
}, },
{ {
commonComponent:'hotWorkApp', component:'daily/hotWorkApp/index',
component:() => import( "@/views/daily/hotWorkApp/index"),
hidden:false, hidden:false,
meta:{ meta:{
"title": "动火作业申请", "title": "动火作业申请",
...@@ -546,8 +514,7 @@ export const powerRoutes=[ ...@@ -546,8 +514,7 @@ export const powerRoutes=[
path:"hotWorkApp" path:"hotWorkApp"
}, },
{ {
commonComponent:'classification', component:'daily/classification/index',
component:() => import( "@/views/daily/classification/index"),
hidden:false, hidden:false,
meta:{ meta:{
"title": "履职分类", "title": "履职分类",
...@@ -560,8 +527,7 @@ export const powerRoutes=[ ...@@ -560,8 +527,7 @@ export const powerRoutes=[
path:"classification" path:"classification"
}, },
{ {
commonComponent:'maintenanceDuty', component:'daily/maintenanceDuty/index',
component:() => import( "@/views/daily/maintenanceDuty/index"),
hidden:false, hidden:false,
meta:{ meta:{
"title": "履职报告标准维护", "title": "履职报告标准维护",
...@@ -574,8 +540,7 @@ export const powerRoutes=[ ...@@ -574,8 +540,7 @@ export const powerRoutes=[
path:"maintenanceDuty" path:"maintenanceDuty"
}, },
{ {
commonComponent:'duty', component:'daily/duty/index',
component:() => import( "@/views/daily/duty/index"),
hidden:false, hidden:false,
meta:{ meta:{
"title": "履职任务", "title": "履职任务",
...@@ -588,8 +553,7 @@ export const powerRoutes=[ ...@@ -588,8 +553,7 @@ export const powerRoutes=[
path:"duty" path:"duty"
}, },
{ {
commonComponent:'performanceReport', component:'daily/performanceReport/index',
component:() => import( "@/views/daily/performanceReport/index"),
hidden:false, hidden:false,
meta:{ meta:{
"title": "履职报告填写", "title": "履职报告填写",
...@@ -602,8 +566,7 @@ export const powerRoutes=[ ...@@ -602,8 +566,7 @@ export const powerRoutes=[
path:"performanceReport" path:"performanceReport"
}, },
{ {
commonComponent:'wxzyfl', component:'daily/wxzyfl/index',
component:() => import( "@/views/daily/wxzyfl/index"),
hidden:false, hidden:false,
meta:{ meta:{
"title": "危险作业分类", "title": "危险作业分类",
...@@ -616,8 +579,7 @@ export const powerRoutes=[ ...@@ -616,8 +579,7 @@ export const powerRoutes=[
path:"wxzyfl" path:"wxzyfl"
}, },
{ {
commonComponent:'maintenanceStandards', component:'daily/maintenanceStandards/index',
component:() => import( "@/views/daily/maintenanceStandards/index"),
hidden:false, hidden:false,
meta:{ meta:{
"title": "危险作业标准维护", "title": "危险作业标准维护",
...@@ -630,8 +592,7 @@ export const powerRoutes=[ ...@@ -630,8 +592,7 @@ export const powerRoutes=[
path:"maintenanceStandards" path:"maintenanceStandards"
}, },
{ {
commonComponent:'workInspection', component:'daily/workInspection/index',
component:() => import( "@/views/daily/workInspection/index"),
hidden:false, hidden:false,
meta:{ meta:{
"title": "危险作业检查", "title": "危险作业检查",
...@@ -644,8 +605,7 @@ export const powerRoutes=[ ...@@ -644,8 +605,7 @@ export const powerRoutes=[
path:"workInspection" path:"workInspection"
}, },
{ {
commonComponent:'summary', component:'daily/summary/index',
component:() => import( "@/views/daily/summary/index"),
hidden:false, hidden:false,
meta:{ meta:{
"title": "危险作业汇总", "title": "危险作业汇总",
...@@ -665,15 +625,14 @@ export const powerRoutes=[ ...@@ -665,15 +625,14 @@ export const powerRoutes=[
/* 三违管理*/ /* 三违管理*/
{ {
path: '/train', path: '/train',
component: Layout, component: 'Layout',
hidden: false, hidden: false,
alwaysShow:true, alwaysShow:true,
redirect: 'planning', redirect: 'planning',
meta: {title: "培训管理", icon: "fa-cog", noCache: false, link: null,mkid:906000000}, meta: {title: "培训管理", icon: "fa-cog", noCache: false, link: null,mkid:906000000},
children: [ children: [
{ {
commonComponent:'planning', component:'train/planning/index',
component:() => import( "@/views/train/planning/index"),
hidden:false, hidden:false,
meta:{ meta:{
"title": "培训计划制定", "title": "培训计划制定",
...@@ -686,8 +645,7 @@ export const powerRoutes=[ ...@@ -686,8 +645,7 @@ export const powerRoutes=[
path:"planning" path:"planning"
}, },
{ {
commonComponent:'assessment', component:'train/assessment/index',
component:() => import( "@/views/train/assessment/index"),
hidden:false, hidden:false,
meta:{ meta:{
"title": "培训评估管理", "title": "培训评估管理",
...@@ -790,15 +748,14 @@ export const powerRoutes=[ ...@@ -790,15 +748,14 @@ export const powerRoutes=[
/* 查询统计 */ /* 查询统计 */
{ {
path: '/statistics', path: '/statistics',
component: Layout, component: 'Layout',
hidden: false, hidden: false,
alwaysShow:true, alwaysShow:true,
redirect: 'securitySituation', redirect: 'securitySituation',
meta: {title: "查询统计", icon: "fa-cog", noCache: false, link: null,mkid:907000000}, meta: {title: "查询统计", icon: "fa-cog", noCache: false, link: null,mkid:907000000},
children: [ children: [
{ {
commonComponent:'securitySituation', component:'statistics/securitySituation/index',
component:() => import( "@/views/statistics/securitySituation/index"),
hidden:false, hidden:false,
meta:{ meta:{
"title": "安全情况逐月年统计", "title": "安全情况逐月年统计",
...@@ -811,8 +768,7 @@ export const powerRoutes=[ ...@@ -811,8 +768,7 @@ export const powerRoutes=[
path:"securitySituation" path:"securitySituation"
}, },
{ {
commonComponent:'dangeRecords', component:'statistics/dangeRecords/index',
component:() => import( "@/views/statistics/dangeRecords/index"),
hidden:false, hidden:false,
meta:{ meta:{
"title": "查询超期隐患记录", "title": "查询超期隐患记录",
...@@ -829,15 +785,14 @@ export const powerRoutes=[ ...@@ -829,15 +785,14 @@ export const powerRoutes=[
/* 设备管理 */ /* 设备管理 */
{ {
path: '/equipment', path: '/equipment',
component: Layout, component: 'Layout',
hidden: false, hidden: false,
alwaysShow:true, alwaysShow:true,
redirect: 'equipmentClass', redirect: 'equipmentClass',
meta: {title: "设备管理", icon: "fa-cog", noCache: false, link: null,mkid:908000000}, meta: {title: "设备管理", icon: "fa-cog", noCache: false, link: null,mkid:908000000},
children: [ children: [
{ {
commonComponent:'equipmentClass', component:'equipment/equipmentClass/index',
component:() => import( "@/views/equipment/equipmentClass/index"),
hidden:false, hidden:false,
meta:{ meta:{
"title": "维护设备分类", "title": "维护设备分类",
...@@ -850,8 +805,7 @@ export const powerRoutes=[ ...@@ -850,8 +805,7 @@ export const powerRoutes=[
path:"equipmentClass" path:"equipmentClass"
}, },
{ {
commonComponent:'archives', component:'equipment/archives/index',
component:() => import( "@/views/equipment/archives/index"),
hidden:false, hidden:false,
meta:{ meta:{
"title": "设备档案管理", "title": "设备档案管理",
...@@ -864,8 +818,7 @@ export const powerRoutes=[ ...@@ -864,8 +818,7 @@ export const powerRoutes=[
path:"archives" path:"archives"
}, },
{ {
commonComponent:'archives', component:'equipment/specialEquipment/index',
component:() => import( "@/views/equipment/specialEquipment/index"),
hidden:false, hidden:false,
meta:{ meta:{
"title": "特种设备档案管理", "title": "特种设备档案管理",
...@@ -878,8 +831,7 @@ export const powerRoutes=[ ...@@ -878,8 +831,7 @@ export const powerRoutes=[
path:"specialEquipment" path:"specialEquipment"
}, },
{ {
commonComponent:'environment', component:'equipment/environment/index',
component:() => import( "@/views/equipment/environment/index"),
hidden:false, hidden:false,
meta:{ meta:{
"title": "环保设备档案管理", "title": "环保设备档案管理",
...@@ -892,8 +844,7 @@ export const powerRoutes=[ ...@@ -892,8 +844,7 @@ export const powerRoutes=[
path:"environment" path:"environment"
}, },
{ {
commonComponent:'maintain', component:'equipment/maintain/index',
component:() => import( "@/views/equipment/maintain/index"),
hidden:false, hidden:false,
meta:{ meta:{
"title": "维护防护设施档案", "title": "维护防护设施档案",
...@@ -906,8 +857,7 @@ export const powerRoutes=[ ...@@ -906,8 +857,7 @@ export const powerRoutes=[
path:"maintain" path:"maintain"
}, },
{ {
commonComponent:'inspection', component:'equipment/inspection/index',
component:() => import( "@/views/equipment/inspection/index"),
hidden:false, hidden:false,
meta:{ meta:{
"title": "设备设施巡检管理", "title": "设备设施巡检管理",
...@@ -924,15 +874,14 @@ export const powerRoutes=[ ...@@ -924,15 +874,14 @@ export const powerRoutes=[
/* 外协管理 */ /* 外协管理 */
{ {
path: '/outsourcingDirector', path: '/outsourcingDirector',
component: Layout, component: 'Layout',
hidden: false, hidden: false,
alwaysShow:true, alwaysShow:true,
redirect: 'declare', redirect: 'declare',
meta: {title: "外协管理", icon: "fa-cog", noCache: false, link: null,mkid:909000000}, meta: {title: "外协管理", icon: "fa-cog", noCache: false, link: null,mkid:909000000},
children: [ children: [
{ {
commonComponent:'declare', component:'outsourcingDirector/declare/index',
component:() => import( "@/views/outsourcingDirector/declare/index"),
hidden:false, hidden:false,
meta:{ meta:{
"title": "外协单位准入申报", "title": "外协单位准入申报",
...@@ -945,8 +894,7 @@ export const powerRoutes=[ ...@@ -945,8 +894,7 @@ export const powerRoutes=[
path:"declare" path:"declare"
}, },
{ {
commonComponent:'process', component:'outsourcingDirector/approve/index',
component:() => import( "@/views/outsourcingDirector/approve/index"),
hidden:false, hidden:false,
meta:{ meta:{
"title": "外协单位准入审批", "title": "外协单位准入审批",
...@@ -959,8 +907,7 @@ export const powerRoutes=[ ...@@ -959,8 +907,7 @@ export const powerRoutes=[
path:"approve" path:"approve"
}, },
{ {
commonComponent:'process', component:'outsourcingDirector/process/index',
component:() => import( "@/views/outsourcingDirector/process/index"),
hidden:false, hidden:false,
meta:{ meta:{
"title": "外协单位过程管理", "title": "外协单位过程管理",
...@@ -973,8 +920,7 @@ export const powerRoutes=[ ...@@ -973,8 +920,7 @@ export const powerRoutes=[
path:"process" path:"process"
}, },
{ {
commonComponent:'archives', component:'outsourcingDirector/archives/index',
component:() => import( "@/views/outsourcingDirector/archives/index"),
hidden:false, hidden:false,
meta:{ meta:{
"title": "外协单位档案管理", "title": "外协单位档案管理",
...@@ -1051,966 +997,966 @@ export const constantRoutes = [ ...@@ -1051,966 +997,966 @@ export const constantRoutes = [
] ]
}, },
/* 陕钢铁预写死页面*/ /* 陕钢铁预写死页面*/
{ // {
path: '/basicData', // path: '/basicData',
component:() => import( "@/layout/index"), // component:() => import( "@/layout/index"),
hidden: false, // hidden: false,
alwaysShow:true, // alwaysShow:true,
redirect: 'organizationalManagement', // redirect: 'organizationalManagement',
meta: {title: "基础数据", icon: "fa-cog", noCache: false, link: null,mkid:105000000}, // meta: {title: "基础数据", icon: "fa-cog", noCache: false, link: null,mkid:105000000},
children: [ // children: [
{ // {
commonComponent:'organizationalManagement', // commonComponent:'organizationalManagement',
component:() => import( "@/views/basicData/organizationalManagement/index"), // component:() => import( "@/views/basicData/organizationalManagement/index"),
hidden:false, // hidden:false,
meta:{ // meta:{
"title": "组织管理", // "title": "组织管理",
"icon": "", // "icon": "",
"noCache": false, // "noCache": false,
"link": null, // "link": null,
"mkid":1010013009, // "mkid":1010013009,
}, // },
name:'organizationalManagement', // name:'organizationalManagement',
path:"organizationalManagement" // path:"organizationalManagement"
}, // },
{ // {
commonComponent:'scgw', // commonComponent:'scgw',
component:() => import( "@/views/basicData/scgw/index"), // component:() => import( "@/views/basicData/scgw/index"),
hidden:false, // hidden:false,
meta:{ // meta:{
"title": "岗位管理", // "title": "岗位管理",
"icon": "", // "icon": "",
"noCache": false, // "noCache": false,
"link": null, // "link": null,
"mkid":1010013009, // "mkid":1010013009,
}, // },
name:'scgw', // name:'scgw',
path:"scgw" // path:"scgw"
}, // },
{ // {
commonComponent:'announcementManagement', // commonComponent:'announcementManagement',
component:() => import( "@/views/basicData/announcementManagement/index"), // component:() => import( "@/views/basicData/announcementManagement/index"),
hidden:false, // hidden:false,
meta:{ // meta:{
"title": "公告管理", // "title": "公告管理",
"icon": "", // "icon": "",
"noCache": false, // "noCache": false,
"link": null, // "link": null,
"mkid":1010013009, // "mkid":1010013009,
}, // },
name:'announcementManagement', // name:'announcementManagement',
path:"announcementManagement" // path:"announcementManagement"
}, // },
{ // {
commonComponent:'securityDocumentManagement', // commonComponent:'securityDocumentManagement',
component:() => import( "@/views/basicData/securityDocumentManagement/index"), // component:() => import( "@/views/basicData/securityDocumentManagement/index"),
hidden:false, // hidden:false,
meta:{ // meta:{
"title": "安全文档管理", // "title": "安全文档管理",
"icon": "", // "icon": "",
"noCache": false, // "noCache": false,
"link": null, // "link": null,
"mkid":1010013009, // "mkid":1010013009,
}, // },
name:'securityDocumentManagement', // name:'securityDocumentManagement',
path:"securityDocumentManagement" // path:"securityDocumentManagement"
}, // },
{ // {
commonComponent:'operationDcManagement', // commonComponent:'operationDcManagement',
component:() => import( "@/views/basicData/operationDcManagement/index"), // component:() => import( "@/views/basicData/operationDcManagement/index"),
hidden:false, // hidden:false,
meta:{ // meta:{
"title": "标准作业文档管理", // "title": "标准作业文档管理",
"icon": "", // "icon": "",
"noCache": false, // "noCache": false,
"link": null, // "link": null,
"mkid":1010013009, // "mkid":1010013009,
}, // },
name:'operationDcManagement', // name:'operationDcManagement',
path:"operationDcManagement" // path:"operationDcManagement"
} // }
] // ]
}, // },
/* 隐患管理*/ // /* 隐患管理*/
{ // {
path: '/dangerManagement', // path: '/dangerManagement',
component: Layout, // component: Layout,
hidden: false, // hidden: false,
alwaysShow:true, // alwaysShow:true,
redirect: 'maintenanceDg', // redirect: 'maintenanceDg',
meta: {title: "隐患管理", icon: "fa-cog", noCache: false, link: null,mkid:105000000}, // meta: {title: "隐患管理", icon: "fa-cog", noCache: false, link: null,mkid:105000000},
children: [ // children: [
{ // {
commonComponent:'yhfl', // commonComponent:'yhfl',
component:() => import( "@/views/dangerManagement/yhfl/index"), // component:() => import( "@/views/dangerManagement/yhfl/index"),
hidden:false, // hidden:false,
meta:{ // meta:{
"title": "隐患分类", // "title": "隐患分类",
"icon": "", // "icon": "",
"noCache": false, // "noCache": false,
"link": null, // "link": null,
"mkid":1010013009, // "mkid":1010013009,
}, // },
name:'yhfl', // name:'yhfl',
path:"yhfl" // path:"yhfl"
}, // },
{ // {
commonComponent:'yhbzfl', // commonComponent:'yhbzfl',
component:() => import( "@/views/dangerManagement/yhbzfl/index"), // component:() => import( "@/views/dangerManagement/yhbzfl/index"),
hidden:false, // hidden:false,
meta:{ // meta:{
"title": "隐患标准分类", // "title": "隐患标准分类",
"icon": "", // "icon": "",
"noCache": false, // "noCache": false,
"link": null, // "link": null,
"mkid":1010013009, // "mkid":1010013009,
}, // },
name:'yhbzfl', // name:'yhbzfl',
path:"yhbzfl" // path:"yhbzfl"
}, // },
{ // {
commonComponent:'maintenanceDg', // commonComponent:'maintenanceDg',
component:() => import( "@/views/dangerManagement/maintenanceDg/index"), // component:() => import( "@/views/dangerManagement/maintenanceDg/index"),
hidden:false, // hidden:false,
meta:{ // meta:{
"title": "维护隐患检查标准", // "title": "维护隐患检查标准",
"icon": "", // "icon": "",
"noCache": false, // "noCache": false,
"link": null, // "link": null,
"mkid":1010013009, // "mkid":1010013009,
}, // },
name:'maintenanceDg', // name:'maintenanceDg',
path:"maintenanceDg" // path:"maintenanceDg"
}, // },
{ // {
commonComponent:'enterSafetyRecords', // commonComponent:'enterSafetyRecords',
component:() => import( "@/views/dangerManagement/enterSafetyRecords/index"), // component:() => import( "@/views/dangerManagement/enterSafetyRecords/index"),
hidden:false, // hidden:false,
meta:{ // meta:{
"title": "录入安全隐患记录", // "title": "录入安全隐患记录",
"icon": "", // "icon": "",
"noCache": false, // "noCache": false,
"link": null, // "link": null,
"mkid":1010013009, // "mkid":1010013009,
}, // },
name:'enterSafetyRecords', // name:'enterSafetyRecords',
path:"enterSafetyRecords" // path:"enterSafetyRecords"
}, // },
{ // {
commonComponent:'safetyDisposalRecord', // commonComponent:'safetyDisposalRecord',
component:() => import( "@/views/dangerManagement/safetyDisposalRecord/index"), // component:() => import( "@/views/dangerManagement/safetyDisposalRecord/index"),
hidden:false, // hidden:false,
meta:{ // meta:{
"title": "安全隐患处理记录", // "title": "安全隐患处理记录",
"icon": "", // "icon": "",
"noCache": false, // "noCache": false,
"link": null, // "link": null,
"mkid":1010013009, // "mkid":1010013009,
}, // },
name:'safetyDisposalRecord', // name:'safetyDisposalRecord',
path:"safetyDisposalRecord" // path:"safetyDisposalRecord"
}, // },
{ // {
commonComponent:'dangerRectificationRecord', // commonComponent:'dangerRectificationRecord',
component:() => import( "@/views/dangerManagement/dangerRectificationRecord/index"), // component:() => import( "@/views/dangerManagement/dangerRectificationRecord/index"),
hidden:false, // hidden:false,
meta:{ // meta:{
"title": "录入隐患整改情况", // "title": "录入隐患整改情况",
"icon": "", // "icon": "",
"noCache": false, // "noCache": false,
"link": null, // "link": null,
"mkid":1010013009, // "mkid":1010013009,
}, // },
name:'dangerRectificationRecord', // name:'dangerRectificationRecord',
path:"dangerRectificationRecord" // path:"dangerRectificationRecord"
}, // },
/* 10 13*/ // /* 10 13*/
{ // {
commonComponent:'dangerReviewRecord', // commonComponent:'dangerReviewRecord',
component:() => import( "@/views/dangerManagement/dangerReviewRecord/index"), // component:() => import( "@/views/dangerManagement/dangerReviewRecord/index"),
hidden:false, // hidden:false,
meta:{ // meta:{
"title": "录入隐患复查记录", // "title": "录入隐患复查记录",
"icon": "", // "icon": "",
"noCache": false, // "noCache": false,
"link": null, // "link": null,
"mkid":1010013009, // "mkid":1010013009,
}, // },
name:'dangerReviewRecord', // name:'dangerReviewRecord',
path:"dangerReviewRecord" // path:"dangerReviewRecord"
}, // },
{ // {
commonComponent:'queryDangerRecords', // commonComponent:'queryDangerRecords',
component:() => import( "@/views/dangerManagement/queryDangerRecords/index"), // component:() => import( "@/views/dangerManagement/queryDangerRecords/index"),
hidden:false, // hidden:false,
meta:{ // meta:{
"title": "查询安全隐患记录", // "title": "查询安全隐患记录",
"icon": "", // "icon": "",
"noCache": false, // "noCache": false,
"link": null, // "link": null,
"mkid":1010013009, // "mkid":1010013009,
}, // },
name:'queryDangerRecords', // name:'queryDangerRecords',
path:"queryDangerRecords" // path:"queryDangerRecords"
} // }
] // ]
}, // },
/* 风险域控*/ // /* 风险域控*/
{ // {
path: '/riskPrecontrol', // path: '/riskPrecontrol',
component: Layout, // component: Layout,
hidden: false, // hidden: false,
alwaysShow:true, // alwaysShow:true,
redirect: 'screeningCriteria', // redirect: 'screeningCriteria',
meta: {title: "风险预控", icon: "fa-cog", noCache: false, link: null,mkid:105000000}, // meta: {title: "风险预控", icon: "fa-cog", noCache: false, link: null,mkid:105000000},
children: [ // children: [
{ // {
commonComponent:'screeningCriteria', // commonComponent:'screeningCriteria',
component:() => import( "@/views/riskPrecontrol/screeningCriteria/index"), // component:() => import( "@/views/riskPrecontrol/screeningCriteria/index"),
hidden:false, // hidden:false,
meta:{ // meta:{
"title": "维护风险排查标准", // "title": "维护风险排查标准",
"icon": "", // "icon": "",
"noCache": false, // "noCache": false,
"link": null, // "link": null,
"mkid":1010013009, // "mkid":1010013009,
}, // },
name:'screeningCriteria', // name:'screeningCriteria',
path:"screeningCriteria" // path:"screeningCriteria"
}, // },
{ // {
commonComponent:'maintenanceRiskTask', // commonComponent:'maintenanceRiskTask',
component:() => import( "@/views/riskPrecontrol/maintenanceRiskTask/index"), // component:() => import( "@/views/riskPrecontrol/maintenanceRiskTask/index"),
hidden:false, // hidden:false,
meta:{ // meta:{
"title": "维护风险排查任务", // "title": "维护风险排查任务",
"icon": "", // "icon": "",
"noCache": false, // "noCache": false,
"link": null, // "link": null,
"mkid":1010013009, // "mkid":1010013009,
}, // },
name:'maintenanceRiskTask', // name:'maintenanceRiskTask',
path:"maintenanceRiskTask" // path:"maintenanceRiskTask"
}, // },
{ // {
commonComponent:'riskAnalysis', // commonComponent:'riskAnalysis',
component:() => import( "@/views/riskPrecontrol/riskAnalysis/index"), // component:() => import( "@/views/riskPrecontrol/riskAnalysis/index"),
hidden:false, // hidden:false,
meta:{ // meta:{
"title": "风险排查综合分析", // "title": "风险排查综合分析",
"icon": "", // "icon": "",
"noCache": false, // "noCache": false,
"link": null, // "link": null,
"mkid":1010013009, // "mkid":1010013009,
}, // },
name:'riskAnalysis', // name:'riskAnalysis',
path:"riskAnalysis" // path:"riskAnalysis"
}, // },
{ // {
commonComponent:'shlx', // commonComponent:'shlx',
component:() => import( "@/views/riskPrecontrol/shlx/index"), // component:() => import( "@/views/riskPrecontrol/shlx/index"),
hidden:false, // hidden:false,
meta:{ // meta:{
"title": "伤害类型维护", // "title": "伤害类型维护",
"icon": "", // "icon": "",
"noCache": false, // "noCache": false,
"link": null, // "link": null,
"mkid":1010013009, // "mkid":1010013009,
}, // },
name:'shlx', // name:'shlx',
path:"shlx" // path:"shlx"
}, // },
{ // {
commonComponent:'maintenanceRisk', // commonComponent:'maintenanceRisk',
component:() => import( "@/views/riskPrecontrol/maintenanceRisk/index"), // component:() => import( "@/views/riskPrecontrol/maintenanceRisk/index"),
hidden:false, // hidden:false,
meta:{ // meta:{
"title": "维护风险事件库", // "title": "维护风险事件库",
"icon": "", // "icon": "",
"noCache": false, // "noCache": false,
"link": null, // "link": null,
"mkid":1010013009, // "mkid":1010013009,
}, // },
name:'maintenanceRisk', // name:'maintenanceRisk',
path:"maintenanceRisk" // path:"maintenanceRisk"
}, // },
{ // {
commonComponent:'queryRisk', // commonComponent:'queryRisk',
component:() => import( "@/views/riskPrecontrol/queryRisk/index"), // component:() => import( "@/views/riskPrecontrol/queryRisk/index"),
hidden:false, // hidden:false,
meta:{ // meta:{
"title": "查询风险事件库", // "title": "查询风险事件库",
"icon": "", // "icon": "",
"noCache": false, // "noCache": false,
"link": null, // "link": null,
"mkid":1010013009, // "mkid":1010013009,
}, // },
name:'queryRisk', // name:'queryRisk',
path:"queryRisk" // path:"queryRisk"
} // }
] // ]
}, // },
/* 三违管理*/ // /* 三违管理*/
{ // {
path: '/threeViolations', // path: '/threeViolations',
component: Layout, // component: Layout,
hidden: false, // hidden: false,
alwaysShow:true, // alwaysShow:true,
redirect: 'maintainTV', // redirect: 'maintainTV',
meta: {title: "三违管理", icon: "fa-cog", noCache: false, link: null,mkid:105000000}, // meta: {title: "三违管理", icon: "fa-cog", noCache: false, link: null,mkid:105000000},
children: [ // children: [
{ // {
commonComponent:'maintainTV', // commonComponent:'maintainTV',
component:() => import( "@/views/threeViolations/maintainTV/index"), // component:() => import( "@/views/threeViolations/maintainTV/index"),
hidden:false, // hidden:false,
meta:{ // meta:{
"title": "维护三违处罚标准", // "title": "维护三违处罚标准",
"icon": "", // "icon": "",
"noCache": false, // "noCache": false,
"link": null, // "link": null,
"mkid":1010013009, // "mkid":1010013009,
}, // },
name:'maintainTV', // name:'maintainTV',
path:"maintainTV" // path:"maintainTV"
}, // },
{ // {
commonComponent:'enterTV', // commonComponent:'enterTV',
component:() => import( "@/views/threeViolations/enterTV/index"), // component:() => import( "@/views/threeViolations/enterTV/index"),
hidden:false, // hidden:false,
meta:{ // meta:{
"title": "录入三违情况记录", // "title": "录入三违情况记录",
"icon": "", // "icon": "",
"noCache": false, // "noCache": false,
"link": null, // "link": null,
"mkid":1010013009, // "mkid":1010013009,
}, // },
name:'enterTV', // name:'enterTV',
path:"enterTV" // path:"enterTV"
}, // },
{ // {
commonComponent:'tFPasses', // commonComponent:'tFPasses',
component:() => import( "@/views/threeViolations/tFPasses/index"), // component:() => import( "@/views/threeViolations/tFPasses/index"),
hidden:false, // hidden:false,
meta:{ // meta:{
"title": "三违过五关", // "title": "三违过五关",
"icon": "", // "icon": "",
"noCache": false, // "noCache": false,
"link": null, // "link": null,
"mkid":1010013009, // "mkid":1010013009,
}, // },
name:'tFPasses', // name:'tFPasses',
path:"tFPasses" // path:"tFPasses"
}, // },
{ // {
commonComponent:'correctTV', // commonComponent:'correctTV',
component:() => import( "@/views/threeViolations/correctTV/index"), // component:() => import( "@/views/threeViolations/correctTV/index"),
hidden:false, // hidden:false,
meta:{ // meta:{
"title": "三违行为纠正", // "title": "三违行为纠正",
"icon": "", // "icon": "",
"noCache": false, // "noCache": false,
"link": null, // "link": null,
"mkid":1010013009, // "mkid":1010013009,
}, // },
name:'correctTV', // name:'correctTV',
path:"correctTV" // path:"correctTV"
}, // },
{ // {
commonComponent:'queryRecords', // commonComponent:'queryRecords',
component:() => import( "@/views/threeViolations/queryRecords/index"), // component:() => import( "@/views/threeViolations/queryRecords/index"),
hidden:false, // hidden:false,
meta:{ // meta:{
"title": "查询人员三违记录", // "title": "查询人员三违记录",
"icon": "", // "icon": "",
"noCache": false, // "noCache": false,
"link": null, // "link": null,
"mkid":1010013009, // "mkid":1010013009,
}, // },
name:'queryRecords', // name:'queryRecords',
path:"queryRecords" // path:"queryRecords"
}, // },
{ // {
commonComponent:'punishmentRecord', // commonComponent:'punishmentRecord',
component:() => import( "@/views/threeViolations/punishmentRecord/index"), // component:() => import( "@/views/threeViolations/punishmentRecord/index"),
hidden:false, // hidden:false,
meta:{ // meta:{
"title": "安全处罚记录管理", // "title": "安全处罚记录管理",
"icon": "", // "icon": "",
"noCache": false, // "noCache": false,
"link": null, // "link": null,
"mkid":1010013009, // "mkid":1010013009,
}, // },
name:'punishmentRecord', // name:'punishmentRecord',
path:"punishmentRecord" // path:"punishmentRecord"
} // }
] // ]
}, // },
/* 日差管理*/ // /* 日差管理*/
{ // {
path: '/daily', // path: '/daily',
component: Layout, // component: Layout,
hidden: false, // hidden: false,
alwaysShow:true, // alwaysShow:true,
redirect: 'planManage', // redirect: 'planManage',
meta: {title: "日常管理", icon: "fa-cog", noCache: false, link: null,mkid:105000000}, // meta: {title: "日常管理", icon: "fa-cog", noCache: false, link: null,mkid:105000000},
children: [ // children: [
// 分级暂时统一由后台设置 // // 分级暂时统一由后台设置
// { // // {
// commonComponent:'planClassification', // // commonComponent:'planClassification',
// component:() => import( "@/views/daily/planClassification/index"), // // component:() => import( "@/views/daily/planClassification/index"),
// hidden:false, // // hidden:false,
// meta:{ // // meta:{
// "title": "应急预案分级", // // "title": "应急预案分级",
// "icon": "", // // "icon": "",
// "noCache": false, // // "noCache": false,
// "link": null, // // "link": null,
// "mkid":1010013009, // // "mkid":1010013009,
// }, // // },
// name:'planClassification', // // name:'planClassification',
// path:"planClassification" // // path:"planClassification"
// }, // // },
{ // {
commonComponent:'planManage', // commonComponent:'planManage',
component:() => import( "@/views/daily/planManage/index"), // component:() => import( "@/views/daily/planManage/index"),
hidden:false, // hidden:false,
meta:{ // meta:{
"title": "应急预案管理", // "title": "应急预案管理",
"icon": "", // "icon": "",
"noCache": false, // "noCache": false,
"link": null, // "link": null,
"mkid":1010013009, // "mkid":1010013009,
}, // },
name:'planManage', // name:'planManage',
path:"planManage" // path:"planManage"
}, // },
{ // {
commonComponent:'holdCertificate', // commonComponent:'holdCertificate',
component:() => import( "@/views/daily/holdCertificate/index"), // component:() => import( "@/views/daily/holdCertificate/index"),
hidden:false, // hidden:false,
meta:{ // meta:{
"title": "职工持证信息管理", // "title": "职工持证信息管理",
"icon": "", // "icon": "",
"noCache": false, // "noCache": false,
"link": null, // "link": null,
"mkid":1010013009, // "mkid":1010013009,
}, // },
name:'holdCertificate', // name:'holdCertificate',
path:"holdCertificate" // path:"holdCertificate"
}, // },
{ // {
commonComponent:'activityRecord', // commonComponent:'activityRecord',
component:() => import( "@/views/daily/activityRecord/index"), // component:() => import( "@/views/daily/activityRecord/index"),
hidden:false, // hidden:false,
meta:{ // meta:{
"title": "维护安全活动记录", // "title": "维护安全活动记录",
"icon": "", // "icon": "",
"noCache": false, // "noCache": false,
"link": null, // "link": null,
"mkid":1010013009, // "mkid":1010013009,
}, // },
name:'activityRecord', // name:'activityRecord',
path:"activityRecord" // path:"activityRecord"
}, // },
{ // {
commonComponent:'nrtm', // commonComponent:'nrtm',
component:() => import( "@/views/daily/nrtm/index"), // component:() => import( "@/views/daily/nrtm/index"),
hidden:false, // hidden:false,
meta:{ // meta:{
"title": "非常规作业类型维护", // "title": "非常规作业类型维护",
"icon": "", // "icon": "",
"noCache": false, // "noCache": false,
"link": null, // "link": null,
"mkid":1010013009, // "mkid":1010013009,
}, // },
name:'nrtm', // name:'nrtm',
path:"nrtm" // path:"nrtm"
}, // },
{ // {
commonComponent:'nros', // commonComponent:'nros',
component:() => import( "@/views/daily/nros/index"), // component:() => import( "@/views/daily/nros/index"),
hidden:false, // hidden:false,
meta:{ // meta:{
"title": "非常规作业标准", // "title": "非常规作业标准",
"icon": "", // "icon": "",
"noCache": false, // "noCache": false,
"link": null, // "link": null,
"mkid":1010013009, // "mkid":1010013009,
}, // },
name:'nros', // name:'nros',
path:"nros" // path:"nros"
}, // },
{ // {
commonComponent:'nroa', // commonComponent:'nroa',
component:() => import( "@/views/daily/nroa/index"), // component:() => import( "@/views/daily/nroa/index"),
hidden:false, // hidden:false,
meta:{ // meta:{
"title": "非常规作业申请", // "title": "非常规作业申请",
"icon": "", // "icon": "",
"noCache": false, // "noCache": false,
"link": null, // "link": null,
"mkid":1010013009, // "mkid":1010013009,
}, // },
name:'nroa', // name:'nroa',
path:"nroa" // path:"nroa"
}, // },
{ // {
commonComponent:'hotWorkApp', // commonComponent:'hotWorkApp',
component:() => import( "@/views/daily/hotWorkApp/index"), // component:() => import( "@/views/daily/hotWorkApp/index"),
hidden:false, // hidden:false,
meta:{ // meta:{
"title": "动火作业申请", // "title": "动火作业申请",
"icon": "", // "icon": "",
"noCache": false, // "noCache": false,
"link": null, // "link": null,
"mkid":1010013009, // "mkid":1010013009,
}, // },
name:'hotWorkApp', // name:'hotWorkApp',
path:"hotWorkApp" // path:"hotWorkApp"
}, // },
{ // {
commonComponent:'classification', // commonComponent:'classification',
component:() => import( "@/views/daily/classification/index"), // component:() => import( "@/views/daily/classification/index"),
hidden:false, // hidden:false,
meta:{ // meta:{
"title": "履职分类", // "title": "履职分类",
"icon": "", // "icon": "",
"noCache": false, // "noCache": false,
"link": null, // "link": null,
"mkid":1010013009, // "mkid":1010013009,
}, // },
name:'classification', // name:'classification',
path:"classification" // path:"classification"
}, // },
{ // {
commonComponent:'maintenanceDuty', // commonComponent:'maintenanceDuty',
component:() => import( "@/views/daily/maintenanceDuty/index"), // component:() => import( "@/views/daily/maintenanceDuty/index"),
hidden:false, // hidden:false,
meta:{ // meta:{
"title": "履职报告标准维护", // "title": "履职报告标准维护",
"icon": "", // "icon": "",
"noCache": false, // "noCache": false,
"link": null, // "link": null,
"mkid":1010013009, // "mkid":1010013009,
}, // },
name:'maintenanceDuty', // name:'maintenanceDuty',
path:"maintenanceDuty" // path:"maintenanceDuty"
}, // },
{ // {
commonComponent:'duty', // commonComponent:'duty',
component:() => import( "@/views/daily/duty/index"), // component:() => import( "@/views/daily/duty/index"),
hidden:false, // hidden:false,
meta:{ // meta:{
"title": "履职任务", // "title": "履职任务",
"icon": "", // "icon": "",
"noCache": false, // "noCache": false,
"link": null, // "link": null,
"mkid":1010013009, // "mkid":1010013009,
}, // },
name:'duty', // name:'duty',
path:"duty" // path:"duty"
}, // },
{ // {
commonComponent:'performanceReport', // commonComponent:'performanceReport',
component:() => import( "@/views/daily/performanceReport/index"), // component:() => import( "@/views/daily/performanceReport/index"),
hidden:false, // hidden:false,
meta:{ // meta:{
"title": "履职报告填写", // "title": "履职报告填写",
"icon": "", // "icon": "",
"noCache": false, // "noCache": false,
"link": null, // "link": null,
"mkid":1010013009, // "mkid":1010013009,
}, // },
name:'performanceReport', // name:'performanceReport',
path:"performanceReport" // path:"performanceReport"
}, // },
{ // {
commonComponent:'wxzyfl', // commonComponent:'wxzyfl',
component:() => import( "@/views/daily/wxzyfl/index"), // component:() => import( "@/views/daily/wxzyfl/index"),
hidden:false, // hidden:false,
meta:{ // meta:{
"title": "危险作业分类", // "title": "危险作业分类",
"icon": "", // "icon": "",
"noCache": false, // "noCache": false,
"link": null, // "link": null,
"mkid":1010013009, // "mkid":1010013009,
}, // },
name:'wxzyfl', // name:'wxzyfl',
path:"wxzyfl" // path:"wxzyfl"
}, // },
{ // {
commonComponent:'maintenanceStandards', // commonComponent:'maintenanceStandards',
component:() => import( "@/views/daily/maintenanceStandards/index"), // component:() => import( "@/views/daily/maintenanceStandards/index"),
hidden:false, // hidden:false,
meta:{ // meta:{
"title": "危险作业标准维护", // "title": "危险作业标准维护",
"icon": "", // "icon": "",
"noCache": false, // "noCache": false,
"link": null, // "link": null,
"mkid":1010013009, // "mkid":1010013009,
}, // },
name:'maintenanceStandards', // name:'maintenanceStandards',
path:"maintenanceStandards" // path:"maintenanceStandards"
}, // },
{ // {
commonComponent:'workInspection', // commonComponent:'workInspection',
component:() => import( "@/views/daily/workInspection/index"), // component:() => import( "@/views/daily/workInspection/index"),
hidden:false, // hidden:false,
meta:{ // meta:{
"title": "危险作业检查", // "title": "危险作业检查",
"icon": "", // "icon": "",
"noCache": false, // "noCache": false,
"link": null, // "link": null,
"mkid":1010013009, // "mkid":1010013009,
}, // },
name:'workInspection', // name:'workInspection',
path:"workInspection" // path:"workInspection"
}, // },
{ // {
commonComponent:'summary', // commonComponent:'summary',
component:() => import( "@/views/daily/summary/index"), // component:() => import( "@/views/daily/summary/index"),
hidden:false, // hidden:false,
meta:{ // meta:{
"title": "危险作业汇总", // "title": "危险作业汇总",
"icon": "", // "icon": "",
"noCache": false, // "noCache": false,
"link": null, // "link": null,
"mkid":1010013009, // "mkid":1010013009,
}, // },
name:'summary', // name:'summary',
path:"summary" // path:"summary"
}, // },
]
},
/* 培训管理*/
/* 三违管理*/
{
path: '/train',
component: Layout,
hidden: false,
alwaysShow:true,
redirect: 'planning',
meta: {title: "培训管理", icon: "fa-cog", noCache: false, link: null,mkid:105000000},
children: [
{
commonComponent:'planning',
component:() => import( "@/views/train/planning/index"),
hidden:false,
meta:{
"title": "培训计划制定",
"icon": "",
"noCache": false,
"link": null,
"mkid":1010013009,
},
name:'planning',
path:"planning"
},
{
commonComponent:'assessment',
component:() => import( "@/views/train/assessment/index"),
hidden:false,
meta:{
"title": "培训评估管理",
"icon": "",
"noCache": false,
"link": null,
"mkid":1010013009,
},
name:'assessment',
path:"assessment"
},
{
commonComponent:'trainRecord',
component:() => import( "@/views/train/trainRecord/index"),
hidden:false,
meta:{
"title": "培训记录管理",
"icon": "",
"noCache": false,
"link": null,
"mkid":1010013009,
},
name:'trainRecord',
path:"trainRecord"
},
{
commonComponent:'questionManage',
component:() => import( "@/views/train/questionManage/index"),
hidden:false,
meta:{
"title": "试题管理",
"icon": "",
"noCache": false,
"link": null,
"mkid":1010013009,
},
name:'questionManage',
path:"questionManage"
},
{
commonComponent:'paperManagement',
component:() => import( "@/views/train/paperManagement/index"),
hidden:false,
meta:{
"title": "试卷管理",
"icon": "",
"noCache": false,
"link": null,
"mkid":1010013009,
},
name:'paperManagement',
path:"paperManagement"
},
{
commonComponent:'onlinExamination',
component:() => import( "@/views/train/onlinExamination/index"),
hidden:false,
meta:{
"title": "在线考试管理",
"icon": "",
"noCache": false,
"link": null,
"mkid":1010013009,
},
name:'onlinExamination',
path:"onlinExamination"
},
{
commonComponent:'marking',
component:() => import( "@/views/train/marking/index"),
hidden:false,
meta:{
"title": "阅卷管理",
"icon": "",
"noCache": false,
"link": null,
"mkid":1010013009,
},
name:'marking',
path:"marking"
},
{
commonComponent:'achievement',
component:() => import( "@/views/train/achievement/index"),
hidden:false,
meta:{
"title": "考试成绩管理",
"icon": "",
"noCache": false,
"link": null,
"mkid":1010013009,
},
name:'achievement',
path:"achievement"
}
] // ]
}, // },
/* 查询统计 */ // /* 培训管理*/
{ // /* 三违管理*/
path: '/statistics', // {
component: Layout, // path: '/train',
hidden: false, // component: Layout,
alwaysShow:true, // hidden: false,
redirect: 'securitySituation', // alwaysShow:true,
meta: {title: "查询统计", icon: "fa-cog", noCache: false, link: null,mkid:105000000}, // redirect: 'planning',
children: [ // meta: {title: "培训管理", icon: "fa-cog", noCache: false, link: null,mkid:105000000},
{ // children: [
commonComponent:'securitySituation', // {
component:() => import( "@/views/statistics/securitySituation/index"), // commonComponent:'planning',
hidden:false, // component:() => import( "@/views/train/planning/index"),
meta:{ // hidden:false,
"title": "培训计划制定", // meta:{
"icon": "", // "title": "培训计划制定",
"noCache": false, // "icon": "",
"link": null, // "noCache": false,
"mkid":1010013009, // "link": null,
}, // "mkid":1010013009,
name:'securitySituation', // },
path:"securitySituation" // name:'planning',
}, // path:"planning"
{ // },
commonComponent:'dangeRecords', // {
component:() => import( "@/views/statistics/dangeRecords/index"), // commonComponent:'assessment',
hidden:false, // component:() => import( "@/views/train/assessment/index"),
meta:{ // hidden:false,
"title": "查询超期隐患记录", // meta:{
"icon": "", // "title": "培训评估管理",
"noCache": false, // "icon": "",
"link": null, // "noCache": false,
"mkid":1010013009, // "link": null,
}, // "mkid":1010013009,
name:'dangeRecords', // },
path:"dangeRecords" // name:'assessment',
} // path:"assessment"
] // },
}, // {
/* 设备管理 */ // commonComponent:'trainRecord',
{ // component:() => import( "@/views/train/trainRecord/index"),
path: '/equipment', // hidden:false,
component: Layout, // meta:{
hidden: false, // "title": "培训记录管理",
alwaysShow:true, // "icon": "",
redirect: 'equipmentClass', // "noCache": false,
meta: {title: "设备管理", icon: "fa-cog", noCache: false, link: null,mkid:908000000}, // "link": null,
children: [ // "mkid":1010013009,
{ // },
commonComponent:'equipmentClass', // name:'trainRecord',
component:() => import( "@/views/equipment/equipmentClass/index"), // path:"trainRecord"
hidden:false, // },
meta:{ // {
"title": "维护设备分类", // commonComponent:'questionManage',
"icon": "", // component:() => import( "@/views/train/questionManage/index"),
"noCache": false, // hidden:false,
"link": null, // meta:{
"mkid":908000100, // "title": "试题管理",
}, // "icon": "",
name:'equipmentClass', // "noCache": false,
path:"equipmentClass" // "link": null,
}, // "mkid":1010013009,
{ // },
commonComponent:'archives', // name:'questionManage',
component:() => import( "@/views/equipment/archives/index"), // path:"questionManage"
hidden:false, // },
meta:{ // {
"title": "设备档案管理", // commonComponent:'paperManagement',
"icon": "", // component:() => import( "@/views/train/paperManagement/index"),
"noCache": false, // hidden:false,
"link": null, // meta:{
"mkid":908000200, // "title": "试卷管理",
}, // "icon": "",
name:'archives', // "noCache": false,
path:"archives" // "link": null,
}, // "mkid":1010013009,
{ // },
commonComponent:'archives', // name:'paperManagement',
component:() => import( "@/views/equipment/specialEquipment/index"), // path:"paperManagement"
hidden:false, // },
meta:{ // {
"title": "特种设备档案管理", // commonComponent:'onlinExamination',
"icon": "", // component:() => import( "@/views/train/onlinExamination/index"),
"noCache": false, // hidden:false,
"link": null, // meta:{
"mkid":908000400, // "title": "在线考试管理",
}, // "icon": "",
name:'specialEquipment', // "noCache": false,
path:"specialEquipment" // "link": null,
}, // "mkid":1010013009,
{ // },
commonComponent:'environment', // name:'onlinExamination',
component:() => import( "@/views/equipment/environment/index"), // path:"onlinExamination"
hidden:false, // },
meta:{ // {
"title": "环保设备档案管理", // commonComponent:'marking',
"icon": "", // component:() => import( "@/views/train/marking/index"),
"noCache": false, // hidden:false,
"link": null, // meta:{
"mkid":908000800, // "title": "阅卷管理",
}, // "icon": "",
name:'environment', // "noCache": false,
path:"environment" // "link": null,
}, // "mkid":1010013009,
{ // },
commonComponent:'maintain', // name:'marking',
component:() => import( "@/views/equipment/maintain/index"), // path:"marking"
hidden:false, // },
meta:{ // {
"title": "维护防护设施档案", // commonComponent:'achievement',
"icon": "", // component:() => import( "@/views/train/achievement/index"),
"noCache": false, // hidden:false,
"link": null, // meta:{
"mkid":908001000, // "title": "考试成绩管理",
}, // "icon": "",
name:'maintain', // "noCache": false,
path:"maintain" // "link": null,
}, // "mkid":1010013009,
{ // },
commonComponent:'inspection', // name:'achievement',
component:() => import( "@/views/equipment/inspection/index"), // path:"achievement"
hidden:false, // }
meta:{
"title": "设备设施巡检管理",
"icon": "", // ]
"noCache": false, // },
"link": null, // /* 查询统计 */
"mkid":908001200, // {
}, // path: '/statistics',
name:'inspection', // component: Layout,
path:"inspection" // hidden: false,
} // alwaysShow:true,
] // redirect: 'securitySituation',
}, // meta: {title: "查询统计", icon: "fa-cog", noCache: false, link: null,mkid:105000000},
/* 外协管理 */ // children: [
{ // {
path: '/outsourcingDirector', // commonComponent:'securitySituation',
component: Layout, // component:() => import( "@/views/statistics/securitySituation/index"),
hidden: false, // hidden:false,
alwaysShow:true, // meta:{
redirect: 'declare', // "title": "培训计划制定",
meta: {title: "外协管理", icon: "fa-cog", noCache: false, link: null,mkid:909000000}, // "icon": "",
children: [ // "noCache": false,
{ // "link": null,
commonComponent:'declare', // "mkid":1010013009,
component:() => import( "@/views/outsourcingDirector/declare/index"), // },
hidden:false, // name:'securitySituation',
meta:{ // path:"securitySituation"
"title": "外协单位准入申报", // },
"icon": "", // {
"noCache": false, // commonComponent:'dangeRecords',
"link": null, // component:() => import( "@/views/statistics/dangeRecords/index"),
"mkid":909000200, // hidden:false,
}, // meta:{
name:'declare', // "title": "查询超期隐患记录",
path:"declare" // "icon": "",
}, // "noCache": false,
{ // "link": null,
commonComponent:'process', // "mkid":1010013009,
component:() => import( "@/views/outsourcingDirector/approve/index"), // },
hidden:false, // name:'dangeRecords',
meta:{ // path:"dangeRecords"
"title": "外协单位准入审批", // }
"icon": "", // ]
"noCache": false, // },
"link": null, // /* 设备管理 */
"mkid":909000400, // {
}, // path: '/equipment',
name:'approve', // component: Layout,
path:"approve" // hidden: false,
}, // alwaysShow:true,
{ // redirect: 'equipmentClass',
commonComponent:'process', // meta: {title: "设备管理", icon: "fa-cog", noCache: false, link: null,mkid:908000000},
component:() => import( "@/views/outsourcingDirector/process/index"), // children: [
hidden:false, // {
meta:{ // commonComponent:'equipmentClass',
"title": "外协单位过程管理", // component:() => import( "@/views/equipment/equipmentClass/index"),
"icon": "", // hidden:false,
"noCache": false, // meta:{
"link": null, // "title": "维护设备分类",
"mkid":909000600, // "icon": "",
}, // "noCache": false,
name:'process', // "link": null,
path:"process" // "mkid":908000100,
}, // },
{ // name:'equipmentClass',
commonComponent:'archives', // path:"equipmentClass"
component:() => import( "@/views/outsourcingDirector/archives/index"), // },
hidden:false, // {
meta:{ // commonComponent:'archives',
"title": "外协单位档案管理", // component:() => import( "@/views/equipment/archives/index"),
"icon": "", // hidden:false,
"noCache": false, // meta:{
"link": null, // "title": "设备档案管理",
"mkid":909000900, // "icon": "",
}, // "noCache": false,
name:'archives', // "link": null,
path:"archives" // "mkid":908000200,
} // },
] // name:'archives',
}, // path:"archives"
// },
// {
// commonComponent:'archives',
// component:() => import( "@/views/equipment/specialEquipment/index"),
// hidden:false,
// meta:{
// "title": "特种设备档案管理",
// "icon": "",
// "noCache": false,
// "link": null,
// "mkid":908000400,
// },
// name:'specialEquipment',
// path:"specialEquipment"
// },
// {
// commonComponent:'environment',
// component:() => import( "@/views/equipment/environment/index"),
// hidden:false,
// meta:{
// "title": "环保设备档案管理",
// "icon": "",
// "noCache": false,
// "link": null,
// "mkid":908000800,
// },
// name:'environment',
// path:"environment"
// },
// {
// commonComponent:'maintain',
// component:() => import( "@/views/equipment/maintain/index"),
// hidden:false,
// meta:{
// "title": "维护防护设施档案",
// "icon": "",
// "noCache": false,
// "link": null,
// "mkid":908001000,
// },
// name:'maintain',
// path:"maintain"
// },
// {
// commonComponent:'inspection',
// component:() => import( "@/views/equipment/inspection/index"),
// hidden:false,
// meta:{
// "title": "设备设施巡检管理",
// "icon": "",
// "noCache": false,
// "link": null,
// "mkid":908001200,
// },
// name:'inspection',
// path:"inspection"
// }
// ]
// },
// /* 外协管理 */
// {
// path: '/outsourcingDirector',
// component: Layout,
// hidden: false,
// alwaysShow:true,
// redirect: 'declare',
// meta: {title: "外协管理", icon: "fa-cog", noCache: false, link: null,mkid:909000000},
// children: [
// {
// commonComponent:'declare',
// component:() => import( "@/views/outsourcingDirector/declare/index"),
// hidden:false,
// meta:{
// "title": "外协单位准入申报",
// "icon": "",
// "noCache": false,
// "link": null,
// "mkid":909000200,
// },
// name:'declare',
// path:"declare"
// },
// {
// commonComponent:'process',
// component:() => import( "@/views/outsourcingDirector/approve/index"),
// hidden:false,
// meta:{
// "title": "外协单位准入审批",
// "icon": "",
// "noCache": false,
// "link": null,
// "mkid":909000400,
// },
// name:'approve',
// path:"approve"
// },
// {
// commonComponent:'process',
// component:() => import( "@/views/outsourcingDirector/process/index"),
// hidden:false,
// meta:{
// "title": "外协单位过程管理",
// "icon": "",
// "noCache": false,
// "link": null,
// "mkid":909000600,
// },
// name:'process',
// path:"process"
// },
// {
// commonComponent:'archives',
// component:() => import( "@/views/outsourcingDirector/archives/index"),
// hidden:false,
// meta:{
// "title": "外协单位档案管理",
// "icon": "",
// "noCache": false,
// "link": null,
// "mkid":909000900,
// },
// name:'archives',
// path:"archives"
// }
// ]
// },
] ]
// 动态路由,基于用户权限动态去加载 // 动态路由,基于用户权限动态去加载
......
...@@ -79,22 +79,34 @@ const permission = { ...@@ -79,22 +79,34 @@ const permission = {
getRouters({}).then(res => { getRouters({}).then(res => {
let menus=res.data.menu let menus=res.data.menu
let asymenus=JSON.parse(JSON.stringify(res.data.menu))
/* 权限路由*/ /* 权限路由*/
console.log(menus,'权限路由——————————————————————————————',powerRoutes)
/* */ /* */
let mapTree=function(arr){ function filter (data) {
/* 逻辑判断*/ var newData = data.filter(
arr.forEach((item,index)=>{ (item)=>{
let mkid=item.meta.mkid
let hasMkid=false let hasMkid=false
menus.forEach(e=>{ asymenus.forEach(e=>{
if(e.mkid==mkid){ if(e.mkid==item.meta.mkid){
hasMkid=true hasMkid=true
} }
}) })
return hasMkid
}
)
newData.forEach(x => x.children && (x.children = filter(x.children)))
return newData
}
let mapTree=function(arr){
/* 逻辑判断*/
arr.forEach((item,index)=>{
/* 存在权限*/ /* 存在权限*/
if(hasMkid){ if(hasMkid){
console.log(item,'存在')
}else{ }else{
console.log(item,'不存在')
arr.splice(index,1) arr.splice(index,1)
} }
if(item.children&&item.children.length>0){ if(item.children&&item.children.length>0){
...@@ -103,7 +115,8 @@ const permission = { ...@@ -103,7 +115,8 @@ const permission = {
}) })
return arr return arr
} }
let newPowerRoutes=filter(powerRoutes)
console.log(newPowerRoutes,'newPowerRoutes')
/* 转化菜单格式*/ /* 转化菜单格式*/
let delArr=[] let delArr=[]
menus.forEach((item,index)=>{ menus.forEach((item,index)=>{
...@@ -125,7 +138,8 @@ const permission = { ...@@ -125,7 +138,8 @@ const permission = {
newmenus.push(mi) newmenus.push(mi)
} }
}) })
res.data=dgmk(newmenus,0)
res.data=[...dgmk(newmenus,0),...newPowerRoutes]
const sdata = JSON.parse(JSON.stringify(res.data)) const sdata = JSON.parse(JSON.stringify(res.data))
const rdata = JSON.parse(JSON.stringify(res.data)) const rdata = JSON.parse(JSON.stringify(res.data))
const sidebarRoutes = filterAsyncRouter(sdata) const sidebarRoutes = filterAsyncRouter(sdata)
...@@ -133,6 +147,9 @@ const permission = { ...@@ -133,6 +147,9 @@ const permission = {
const asyncRoutes = filterDynamicRoutes(dynamicRoutes); const asyncRoutes = filterDynamicRoutes(dynamicRoutes);
rewriteRoutes.push({ path: '*', redirect: '/404', hidden: true }) rewriteRoutes.push({ path: '*', redirect: '/404', hidden: true })
router.addRoutes(asyncRoutes); router.addRoutes(asyncRoutes);
// router.addRoutes(powerRoutes1)
commit('SET_ROUTES', rewriteRoutes) commit('SET_ROUTES', rewriteRoutes)
commit('SET_SIDEBAR_ROUTERS', constantRoutes.concat(sidebarRoutes)) commit('SET_SIDEBAR_ROUTERS', constantRoutes.concat(sidebarRoutes))
commit('SET_DEFAULT_ROUTES', sidebarRoutes) commit('SET_DEFAULT_ROUTES', sidebarRoutes)
......
...@@ -9,13 +9,13 @@ ...@@ -9,13 +9,13 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<el-row :gutter="20"> <!-- <el-row :gutter="20">
<el-col :span="24"> <el-col :span="24">
<el-form-item label="序号" ref="xh" prop="xh"> <el-form-item label="序号" ref="xh" prop="xh">
<el-input :readonly="readonly" v-model="form.xh" ></el-input> <el-input :readonly="readonly" v-model="form.xh" ></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row> -->
<el-row :gutter="20"> <el-row :gutter="20">
<el-col :span="24"> <el-col :span="24">
<el-form-item label="备注" ref="bz" prop="bz"> <el-form-item label="备注" ref="bz" prop="bz">
......
...@@ -3,12 +3,12 @@ ...@@ -3,12 +3,12 @@
<!-- 填写表单内容,slot=form必写--> <!-- 填写表单内容,slot=form必写-->
<el-form slot="form" ref="form" :model="form" label-width="80px" :rules="rules"> <el-form slot="form" ref="form" :model="form" label-width="80px" :rules="rules">
<el-row :gutter="20"> <el-row :gutter="20">
<el-col :span="12"> <!-- <el-col :span="12">
<el-form-item label="序号" ref="appid" prop="appid"> <el-form-item label="序号" ref="appid" prop="appid">
<el-input :readonly="readonly" v-model="form.appid"></el-input> <el-input :readonly="readonly" v-model="form.appid"></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col> -->
<el-col :span="12"> <el-col :span="24">
<el-form-item label="标准名称" ref="name" prop="name"> <el-form-item label="标准名称" ref="name" prop="name">
<el-input :readonly="readonly" v-model="form.name"></el-input> <el-input :readonly="readonly" v-model="form.name"></el-input>
</el-form-item> </el-form-item>
......
...@@ -3,12 +3,12 @@ ...@@ -3,12 +3,12 @@
<!-- 填写表单内容,slot=form必写--> <!-- 填写表单内容,slot=form必写-->
<el-form slot="form" ref="form" :model="form" label-width="80px" :rules="rules"> <el-form slot="form" ref="form" :model="form" label-width="80px" :rules="rules">
<el-row :gutter="20"> <el-row :gutter="20">
<el-col :span="12"> <!-- <el-col :span="12">
<el-form-item label="序号" ref="xh" prop="xh"> <el-form-item label="序号" ref="xh" prop="xh">
<el-input :readonly="readonly" v-model="form.xh" fieldType='int'></el-input> <el-input :readonly="readonly" v-model="form.xh" fieldType='int'></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col> -->
<el-col :span="12"> <el-col :span="24">
<el-form-item label="名称" ref="name" prop="name"> <el-form-item label="名称" ref="name" prop="name">
<el-input :readonly="readonly" v-model="form.name"></el-input> <el-input :readonly="readonly" v-model="form.name"></el-input>
</el-form-item> </el-form-item>
......
...@@ -16,13 +16,13 @@ ...@@ -16,13 +16,13 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<el-row :gutter="20"> <!-- <el-row :gutter="20">
<el-col :span="24"> <el-col :span="24">
<el-form-item label="序号" ref="xh" prop="xh"> <el-form-item label="序号" ref="xh" prop="xh">
<el-input :readonly="readonly" v-model="form.xh" ></el-input> <el-input :readonly="readonly" v-model="form.xh" ></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row> -->
<el-row :gutter="20"> <el-row :gutter="20">
<el-col :span="24"> <el-col :span="24">
<el-form-item label="备注" ref="bz" prop="bz"> <el-form-item label="备注" ref="bz" prop="bz">
......
...@@ -2,13 +2,13 @@ ...@@ -2,13 +2,13 @@
<RelDialog :type='type' :editApp='editApp' :app='app' :buttonApp='buttonApp'> <RelDialog :type='type' :editApp='editApp' :app='app' :buttonApp='buttonApp'>
<!-- 填写表单内容,slot=form必写--> <!-- 填写表单内容,slot=form必写-->
<el-form slot="form" ref="form" :model="form" label-width="80px" :rules="rules"> <el-form slot="form" ref="form" :model="form" label-width="80px" :rules="rules">
<el-row :gutter="20"> <!-- <el-row :gutter="20">
<el-col :span="24"> <el-col :span="24">
<el-form-item label="序号" ref="xh" prop="xh"> <el-form-item label="序号" ref="xh" prop="xh">
<el-input :readonly="readonly" v-model="form.xh" ></el-input> <el-input :readonly="readonly" v-model="form.xh" ></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row> -->
<el-row :gutter="20"> <el-row :gutter="20">
<el-col :span="24"> <el-col :span="24">
<el-form-item label="名称" ref="name" prop="name"> <el-form-item label="名称" ref="name" prop="name">
......
...@@ -22,16 +22,12 @@ ...@@ -22,16 +22,12 @@
</el-col> </el-col>
</el-row> </el-row>
<el-row :gutter="20"> <el-row :gutter="20">
<el-col :span="12"> <el-col :span="24">
<el-form-item label="部门" ref="bmid" prop="bmid"> <el-form-item label="部门" ref="bmid" prop="bmid">
<RelSelect :readonly="readonly" style="width: 100%;" src='/kzzx/bm/query' filterable clearable :match="{value:'id',label:'bmmc'}" v-model='form.bmid' ></RelSelect> <RelSelect :readonly="readonly" style="width: 100%;" src='/kzzx/bm/query' filterable clearable :match="{value:'id',label:'bmmc'}" v-model='form.bmid' ></RelSelect>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12">
<el-form-item label="序号" ref="xh" prop="xh">
<el-input :readonly="readonly" v-model="form.xh" ></el-input>
</el-form-item>
</el-col>
</el-row> </el-row>
<el-row :gutter="20"> <el-row :gutter="20">
<el-col :span="24"> <el-col :span="24">
......
...@@ -2,13 +2,13 @@ ...@@ -2,13 +2,13 @@
<RelDialog :type='type' :editApp='editApp' :app='app' :buttonApp='buttonApp'> <RelDialog :type='type' :editApp='editApp' :app='app' :buttonApp='buttonApp'>
<!-- 填写表单内容,slot=form必写--> <!-- 填写表单内容,slot=form必写-->
<el-form slot="form" ref="form" :model="form" label-width="80px" :rules="rules"> <el-form slot="form" ref="form" :model="form" label-width="80px" :rules="rules">
<el-row :gutter="20"> <!-- <el-row :gutter="20">
<el-col :span="24"> <el-col :span="24">
<el-form-item label="序号" ref="xh" prop="xh"> <el-form-item label="序号" ref="xh" prop="xh">
<el-input :readonly="readonly" v-model="form.xh" ></el-input> <el-input :readonly="readonly" v-model="form.xh" ></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row> -->
<el-row :gutter="20"> <el-row :gutter="20">
<el-col :span="24"> <el-col :span="24">
<el-form-item label="上层分类" ref="pid" prop="pid"> <el-form-item label="上层分类" ref="pid" prop="pid">
......
...@@ -2,13 +2,13 @@ ...@@ -2,13 +2,13 @@
<RelDialog :type='type' :editApp='editApp' :app='app' :buttonApp='buttonApp'> <RelDialog :type='type' :editApp='editApp' :app='app' :buttonApp='buttonApp'>
<!-- 填写表单内容,slot=form必写--> <!-- 填写表单内容,slot=form必写-->
<el-form slot="form" ref="form" :model="form" label-width="80px" :rules="rules"> <el-form slot="form" ref="form" :model="form" label-width="80px" :rules="rules">
<el-row :gutter="20"> <!-- <el-row :gutter="20">
<el-col :span="24"> <el-col :span="24">
<el-form-item label="序号" ref="xh" prop="xh"> <el-form-item label="序号" ref="xh" prop="xh">
<el-input :readonly="readonly" v-model="form.xh" ></el-input> <el-input :readonly="readonly" v-model="form.xh" ></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row> -->
<el-row :gutter="20"> <el-row :gutter="20">
<el-col :span="24"> <el-col :span="24">
<el-form-item label="上层分类" ref="pid" prop="pid"> <el-form-item label="上层分类" ref="pid" prop="pid">
......
...@@ -78,12 +78,12 @@ ...@@ -78,12 +78,12 @@
<!-- <el-input :readonly="readonly" v-model="form.pzxx" ></el-input> --> <!-- <el-input :readonly="readonly" v-model="form.pzxx" ></el-input> -->
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <!-- <el-col :span="12">
<el-form-item label="序号" ref="xh" prop="xh"> <el-form-item label="序号" ref="xh" prop="xh">
<el-input :readonly="readonly" v-model="form.xh" ></el-input> <el-input :readonly="readonly" v-model="form.xh" ></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col> -->
<el-col :span="12"> <el-col :span="24">
<el-form-item label="图形编号" ref="txcode" prop="txcode"> <el-form-item label="图形编号" ref="txcode" prop="txcode">
<el-input :readonly="readonly" v-model="form.txcode" ></el-input> <el-input :readonly="readonly" v-model="form.txcode" ></el-input>
</el-form-item> </el-form-item>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment