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

动态路由 和 修改

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