Просмотр исходного кода

Merge branch 'feat/production-safety-evaluation' into feat/production-safety

xiaweibo 3 месяцев назад
Родитель
Сommit
f567d3cf45

+ 272 - 0
src/router/routers/hiddenTroubleInvestigationAndGovernance.ts

@@ -0,0 +1,272 @@
+   // === 隐患排查治理 ===
+   const hiddenTroubleInvestigationAndGovernanceRoutes = {
+    id: 9004,
+    parentId: 9000,
+    name: 'hiddenTroubleInvestigationAndGovernance',
+    path: 'hidden-trouble-investigation-and-governance', // 建议使用 kebab-case 保持一致性
+    redirect: '/work-safety/hidden-trouble-investigation-and-governance/employee-report-hidden-trouble-management',
+    meta: {
+      title: '隐患排查治理',
+      icon: 'OverviewIcon',
+      isRoot: false,
+      hidden: false,
+      noCache: false,
+    },
+    children: [
+      {
+        id: 900401,
+        parentId: 9004,
+        name: 'employeeReportHiddenTroubleManagement',
+        path: 'employee-report-hidden-trouble-management',
+        component: '/production-safety/hiddenTroubleInvestigationAndGovernance/employeeReportHiddenTroubleManagement/employeeReportHiddenTroubleManagement',
+        meta: {
+          title: '员工上报隐患管理',
+          icon: 'OverviewIcon',
+          isRoot: false,
+          hidden: false,
+          noCache: false,
+        },
+      },
+      {
+        id: 90040101,
+        parentId: 900401,
+        name: 'employeeReportHiddenTroubleManagementItem',
+        path: 'employee-report-hidden-trouble-management-item',
+        component: '/production-safety/hiddenTroubleInvestigationAndGovernance/employeeReportHiddenTroubleManagement/employeeReportHiddenTroubleManagementItem',
+        meta: {
+          title: '员工上报隐患管理详情',
+          icon: 'OverviewIcon',
+          isRoot: false,
+          hidden: true,
+          noCache: false,
+        },
+      },
+      {
+        id: 900402,
+        parentId: 9004,
+        name: 'hiddenTroubleReviewManagement',
+        path: 'hidden-trouble-review-management',
+        component: '/production-safety/hiddenTroubleInvestigationAndGovernance/hiddenTroubleReviewManagement/hiddenTroubleReviewManagement',
+        meta: {
+          title: '隐患审核管理',
+          icon: 'OverviewIcon',
+          isRoot: false,
+          hidden: false,
+          noCache: false,
+        },
+      },
+      {
+        id: 90040201,
+        parentId: 900402,
+        name: 'hiddenTroubleReviewManagementItem',
+        path: 'hidden-trouble-review-management-item',
+        component: '/production-safety/hiddenTroubleInvestigationAndGovernance/hiddenTroubleReviewManagement/hiddenTroubleReviewManagementItem',
+        meta: {
+          title: '隐患审核管理详情',
+          icon: 'OverviewIcon',
+          isRoot: false,
+          hidden: true,
+          noCache: false,
+        },
+      },
+      {
+        id: 900403,  
+        parentId: 9004,
+        name: 'hiddenTroubleCategoryManagement',
+        path: 'hidden-trouble-category-management',
+        component: '/production-safety/hiddenTroubleInvestigationAndGovernance/hiddenTroubleCategoryManagement/hiddenTroubleCategoryManagement',
+        meta: {
+          title: '隐患类别管理',
+          icon: 'OverviewIcon',
+          isRoot: false,
+          hidden: false,
+          noCache: false,
+        },
+      },
+      {
+        id: 90040301,
+        parentId: 900403,
+        name: 'hiddenTroubleCategoryManagementItem',
+        path: 'hidden-trouble-category-management-item',
+        component: '/production-safety/hiddenTroubleInvestigationAndGovernance/hiddenTroubleCategoryManagement/hiddenTroubleCategoryManagementItem',
+        meta: {
+          title: '隐患类别管理详情',
+          icon: 'OverviewIcon',
+          isRoot: false,
+          hidden: true,
+          noCache: false,
+        },
+      },
+      {
+        id: 900404,
+        parentId: 9004,
+        name: 'hiddenTroubleAccountManagement',
+        path: 'hidden-trouble-account-management',
+        component: '/production-safety/hiddenTroubleInvestigationAndGovernance/hiddenTroubleAccountManagement/hiddenTroubleAccountManagement',
+        meta: {
+          title: '隐患台账管理',
+          icon: 'OverviewIcon',
+          isRoot: false,
+          hidden: false,
+          noCache: false,
+        },
+      },
+      {
+        id: 90040401,
+        parentId: 900404,
+        name: 'hiddenTroubleAccountManagementItem',
+        path: 'hidden-trouble-account-management-item',
+        component: '/production-safety/hiddenTroubleInvestigationAndGovernance/hiddenTroubleAccountManagement/hiddenTroubleAccountManagementItem',
+        meta: {
+          title: '隐患台账管理详情',
+          icon: 'OverviewIcon',
+          isRoot: false,
+          hidden: true,
+          activeMenu: '/work-safety/production-safety-system/double-system-management',
+          noCache: false,
+        },
+      },
+      {
+        id: 900405,
+        parentId: 9004,
+        name: 'oneByOneManagement',
+        path: 'one-by-one-management',
+        component: '/production-safety/hiddenTroubleInvestigationAndGovernance/oneByOneManagement/oneByOneManagement',
+        meta: {
+          title: '举一反三管理(管理员侧)',
+          icon: 'OverviewIcon',
+          isRoot: false,
+          hidden: false,
+          noCache: false,
+        },
+      },
+      {
+        id: 90040501,
+        parentId: 90024,
+        name: 'oneByOneManagementItem',
+        path: 'one-by-one-management-item',
+        component: '/production-safety/hiddenTroubleInvestigationAndGovernance/oneByOneManagement/oneByOneManagementItem',
+        meta: {
+          title: '举一反三管理(管理员侧)详情',
+          icon: 'OverviewIcon',
+          isRoot: false,
+          hidden: true,
+          noCache: false,
+        },
+      },
+      {
+        id: 900406,
+        parentId: 9004,
+        name: 'oneByOneManagementDept',
+        path: 'one-by-one-management-dept',
+        component: '/production-safety/hiddenTroubleInvestigationAndGovernance/oneByOneManagementDept/oneByOneManagementDept',
+        meta: {
+          title: '举一反三管理(部门侧)',
+          icon: 'OverviewIcon',
+          isRoot: false,
+          hidden: false,
+          noCache: false,
+        },
+      },
+      {
+        id: 90040601,
+        parentId: 90025,
+        name: 'oneByOneManagementDeptItem',
+        path: 'one-by-one-management-dept-item',
+        component: '/production-safety/hiddenTroubleInvestigationAndGovernance/oneByOneManagementDept/oneByOneManagementDeptItem',
+        meta: {
+          title: '举一反三管理(部门侧)详情',
+          icon: 'OverviewIcon',
+          isRoot: false,
+          hidden: true,
+          noCache: false,
+        },
+      },
+      {
+        id: 900407,
+        parentId: 9004,
+        name: 'checkTemplateManagement',
+        path: 'check-template-management',
+        component: '/production-safety/hiddenTroubleInvestigationAndGovernance/checkTemplateManagement/checkTemplateManagement',
+        meta: {
+          title: '检查单模版管理',
+          icon: 'OverviewIcon',
+          isRoot: false,
+          hidden: false,
+          noCache: false,
+        },
+      },
+      {
+        id: 90040701,
+        parentId: 90026,
+        name: 'checkTemplateManagementItem',
+        path: 'check-template-management-item',
+        component: '/production-safety/hiddenTroubleInvestigationAndGovernance/checkTemplateManagement/checkTemplateManagementItem',
+        meta: {
+          title: '检查单模版管理详情',
+          icon: 'OverviewIcon',
+          isRoot: false,
+          hidden: true,
+          noCache: false,
+        },
+      },
+      {
+        id: 900408,
+        parentId: 9004,
+        name: 'areaCheckPlanManagement',
+        path: 'area-check-plan-management',
+        component: '/production-safety/hiddenTroubleInvestigationAndGovernance/areaCheckPlanManagement/areaCheckPlanManagement',
+        meta: {
+          title: '区域检查计划管理(管理员)',  
+          icon: 'OverviewIcon',
+          isRoot: false,
+          hidden: false,
+          noCache: false,
+        },
+      },
+      {
+        id: 90040801,
+        parentId: 90027,
+        name: 'areaCheckPlanManagementItem',
+        path: 'area-check-plan-management-item',
+        component: '/production-safety/hiddenTroubleInvestigationAndGovernance/areaCheckPlanManagement/areaCheckPlanManagementItem',
+        meta: {
+          title: '区域检查计划管理(管理员)详情',
+          icon: 'OverviewIcon',
+          isRoot: false,
+          hidden: true,
+          noCache: false,
+        },
+      },
+      {
+        id: 900409,
+        parentId: 9004,
+        name: 'areaCheckPlanManagementDept',
+        path: 'area-check-plan-management-dept',
+        component: '/production-safety/hiddenTroubleInvestigationAndGovernance/areaCheckPlanManagementDept/areaCheckPlanManagementDept',
+        meta: {
+          title: '区域检查计划管理(部门)',
+          icon: 'OverviewIcon',
+          isRoot: false,
+          hidden: false,
+          noCache: false,
+        },
+      },
+      {
+        id: 90040901,
+        parentId: 900409,
+        name: 'areaCheckPlanManagementDeptItem',
+        path: 'area-check-plan-management-dept-item',
+        component: '/production-safety/hiddenTroubleInvestigationAndGovernance/areaCheckPlanManagementDept/areaCheckPlanManagementDeptItem',
+        meta: {
+          title: '区域检查计划管理(部门)详情',
+          icon: 'OverviewIcon',
+          isRoot: false,
+          hidden: true,
+          noCache: false,
+        },
+      },
+    ],
+};
+
+export default hiddenTroubleInvestigationAndGovernanceRoutes;

+ 6 - 3
src/router/routers/production-safety.ts

@@ -1,6 +1,9 @@
 import responsibilityImplementation from "./production-safety-router/responsibility-implementation";
 import riskIdentificationAndControl from "./production-safety-router/risk-identification-and-control";
 
+import safetyAssessmentRoutes from './production-safety-router/safetyAssessment';
+import productionSafetySystemRoutes from './production-safety-router/productionSafetySystem';
+import hiddenTroubleInvestigationAndGovernanceRoutes from './production-safety-router/hiddenTroubleInvestigationAndGovernance';
 const productionSafetyRoutes = {
   id: 9000,
   parentId: -1,
@@ -17,10 +20,10 @@ const productionSafetyRoutes = {
   children: [{
     ...responsibilityImplementation,
     ...riskIdentificationAndControl,
+    ...safetyAssessmentRoutes,
+    ...productionSafetySystemRoutes,
+    ...hiddenTroubleInvestigationAndGovernanceRoutes,
   }],
-
-
-
 };
 
 export default productionSafetyRoutes;

+ 230 - 0
src/router/routers/productionSafetySystem.ts

@@ -0,0 +1,230 @@
+// === 生产安全体系 ===
+const productionSafetySystemRoutes = {
+    id: 9003,
+    parentId: 9000,
+    name: 'productionSafetySystem',
+    path: 'production-safety-system', // 建议使用 kebab-case 保持一致性
+    redirect: '/work-safety/production-safety-system/safety-assessment',
+    meta: {
+      title: '生产安全体系',
+      icon: 'OverviewIcon',
+      isRoot: false,
+      hidden: false,
+      noCache: false,
+    },
+    children: [
+      {
+        id: 90020,
+        parentId: 9002,
+        name: 'LawManagement',
+        path: 'law-management',
+        component: '/production-safety/productionSafetySystem/lawManagement/lawManagement',
+        meta: {
+          title: '法律法规管理',
+          icon: 'OverviewIcon',
+          isRoot: false,
+          hidden: false,
+          noCache: false,
+        },
+      },
+      {
+        id: 9002001,
+        parentId: 90020,
+        name: 'LawManagementItem',
+        path: 'law-management-item',
+        component: '/production-safety/productionSafetySystem/lawManagement/lawManagementItem',
+        meta: {
+          title: '法律法规详情',
+          icon: 'OverviewIcon',
+          isRoot: false,
+          hidden: true,
+          noCache: false,
+        },
+      },
+      {
+        id: 90021,
+        parentId: 9002,
+        name: 'SafetyTraining',
+        path: 'safety-training',
+        component: '/production-safety/productionSafetySystem/safetyTraining/safetyTraining',
+        meta: {
+          title: '行业标准管理',
+          icon: 'OverviewIcon',
+          isRoot: false,
+          hidden: false,
+          noCache: false,
+        },
+      },
+      {
+        id: 9002101,
+        parentId: 90021,
+        name: 'SafetyTrainingItem',
+        path: 'safety-training-item',
+        component: '/production-safety/productionSafetySystem/safetyTraining/safetyTrainingItem',
+        meta: {
+          title: '行业标准详情',
+          icon: 'OverviewIcon',
+          isRoot: false,
+          hidden: true,
+          noCache: false,
+        },
+      },
+      {
+        id: 90022,  
+        parentId: 9002,
+        name: 'CollegeFileManagement',
+        path: 'college-file-management',
+        component: '/production-safety/productionSafetySystem/collegeFileManagement/collegeFileManagement',
+        meta: {
+          title: '院级文件管理',
+          icon: 'OverviewIcon',
+          isRoot: false,
+          hidden: false,
+          noCache: false,
+        },
+      },
+      {
+        id: 9002201,
+        parentId: 90022,
+        name: 'CollegeFileManagementItem',
+        path: 'college-file-management-item',
+        component: '/production-safety/productionSafetySystem/collegeFileManagement/collegeFileManagementItem',
+        meta: {
+          title: '院级文件详情',
+          icon: 'OverviewIcon',
+          isRoot: false,
+          hidden: true,
+          noCache: false,
+        },
+      },
+      {
+        id: 90023,
+        parentId: 9002,
+        name: 'DoubleSystemManagement',
+        path: 'double-system-management',
+        component: '/production-safety/productionSafetySystem/doubleSystemManagement/doubleSystemManagement',
+        meta: {
+          title: '双体系建设管理',
+          icon: 'OverviewIcon',
+          isRoot: false,
+          hidden: false,
+          noCache: false,
+        },
+      },
+      {
+        id: 9002301,
+        parentId: 90023,
+        name: 'DoubleSystemManagementItem',
+        path: 'double-system-management-item',
+        component: '/production-safety/productionSafetySystem/doubleSystemManagement/doubleSystemManagementItem',
+        meta: {
+          title: '双体系建设详情',
+          icon: 'OverviewIcon',
+          isRoot: false,
+          hidden: true,
+          activeMenu: '/work-safety/production-safety-system/double-system-management',
+          noCache: false,
+        },
+      },
+      {
+        id: 90024,
+        parentId: 9002,
+        name: 'SafetyStandardizationSystemManagement',
+        path: 'safety-standardization-system-management',
+        component: '/production-safety/productionSafetySystem/safetyStandardizationSystemManagement/safetyStandardizationSystemManagement',
+        meta: {
+          title: '安全标准化体系建设管理',
+          icon: 'OverviewIcon',
+          isRoot: false,
+          hidden: false,
+          noCache: false,
+        },
+      },
+      {
+        id: 9002401,
+        parentId: 90024,
+        name: 'SafetyStandardizationSystemManagementItem',
+        path: 'safety-standardization-system-management-item',
+        component: '/production-safety/productionSafetySystem/safetyStandardizationSystemManagement/safetyStandardizationSystemManagementItem',
+        meta: {
+          title: '安全标准化体系建设详情',
+          icon: 'OverviewIcon',
+          isRoot: false,
+          hidden: true,
+          noCache: false,
+        },
+      },
+      {
+        id: 90025,
+        parentId: 9002,
+        name: 'SafetySystemConstructionWorkPlanManagement',
+        path: 'safety-system-construction-work-plan-management',
+        component: '/production-safety/productionSafetySystem/safetySystemConstructionWorkPlanManagement/safetySystemConstructionWorkPlanManagement',
+        meta: {
+          title: '安全体系建设工作计划管理(管理员)',
+          icon: 'OverviewIcon',
+          isRoot: false,
+          hidden: false,
+          noCache: false,
+        },
+      },
+      {
+        id: 9002501,
+        parentId: 90024,
+        name: 'SafetySystemConstructionWorkPlanManagementItem',
+        path: 'safety-system-construction-work-plan-management-item',
+        component: '/production-safety/productionSafetySystem/safetySystemConstructionWorkPlanManagement/safetySystemConstructionWorkPlanManagementItem',
+        meta: {
+          title: '安全体系建设工作计划管理(管理员)详情',
+          icon: 'OverviewIcon',
+          isRoot: false,
+          hidden: true,
+          noCache: false,
+        },
+      },
+      {
+        id: 90026,
+        parentId: 9002,
+        name: 'SafetySystemConstructionWorkPlanManagementDept',
+        path: 'safety-system-construction-work-plan-management-dept',
+        component: '/production-safety/productionSafetySystem/safetySystemConstructionWorkPlanManagementDept/safetySystemConstructionWorkPlanManagementDept',
+        meta: {
+          title: '安全体系建设工作计划管理(部门)',
+          icon: 'OverviewIcon',
+          isRoot: false,
+          hidden: false,
+          noCache: false,
+        },
+      },
+      {
+        id: 9002601,
+        parentId: 90026,
+        name: 'SafetySystemConstructionWorkPlanManagementDeptItem',
+        path: 'safety-system-construction-work-plan-management-dept-item',
+        component: '/production-safety/productionSafetySystem/safetySystemConstructionWorkPlanManagementDept/safetySystemConstructionWorkPlanManagementDeptItem',
+        meta: {
+          title: '安全体系建设工作计划管理(部门)详情',
+          icon: 'OverviewIcon',
+          isRoot: false,
+          hidden: true,
+          noCache: false,
+        },
+      },
+      {
+        id: 90027,
+        parentId: 9002,
+        name: 'SafetyOrganizationSystemManagement',
+        path: 'safety-organization-system-management',
+        component: '/production-safety/productionSafetySystem/safetyOrganizationSystemManagement/safetyOrganizationSystemManagement',
+        meta: {
+          title: '安全组织体系管理',
+          icon: 'OverviewIcon',
+          isRoot: false,
+          hidden: false,
+          noCache: false,
+        },
+      },
+    ],
+};
+
+export default productionSafetySystemRoutes;

+ 160 - 0
src/router/routers/safetyAssessment.ts

@@ -0,0 +1,160 @@
+ // === 安全奖惩与考核 ===
+ const safetyAssessmentRoutes = {
+    id: 9002,
+    parentId: 9000,
+    name: 'safetyAssessment',
+    path: 'safety-assessment', // 建议使用 kebab-case 保持一致性
+    redirect: '/work-safety/safety-assessment/inventory',
+    meta: {
+      title: '安全奖惩与考核',
+      icon: 'OverviewIcon',
+      isRoot: false,
+      hidden: false,
+      noCache: false,
+    },
+    children: [
+      {
+        id: 90020,
+        parentId: 9002,
+        name: 'Inventory',
+        path: 'inventory',
+        component: '/production-safety/safetyAssessment/inventory/inventory',
+        meta: {
+          title: '物品库存管理',
+          icon: 'OverviewIcon',
+          isRoot: false,
+          hidden: false,
+          noCache: false,
+        },
+      },
+      {
+        id: 9002001,
+        parentId: 90020,
+        name: 'InventoryItem',
+        path: 'inventory-item',
+        component: '/production-safety/safetyAssessment/inventory/InventoryItem',
+        meta: {
+          title: '物品库存详情',
+          icon: 'OverviewIcon',
+          isRoot: false,
+          hidden: true,
+          noCache: false,
+        },
+      },
+      {
+        id: 90021,
+        parentId: 9002,
+        name: 'ReceiptRecord',
+        path: 'receipt-record',
+        component: '/production-safety/safetyAssessment/receiptRecord/receiptRecord',
+        meta: {
+          title: '物品领取记录管理',
+          icon: 'OverviewIcon',
+          isRoot: false,
+          hidden: false,
+          noCache: false,
+        },
+      },
+      {
+        id: 9002101,
+        parentId: 90021,
+        name: 'ReceiptRecordItem',
+        path: 'receipt-record-item',
+        component: '/production-safety/safetyAssessment/receiptRecord/receiptRecordItem',
+        meta: {
+          title: '物品领取记录详情',
+          icon: 'OverviewIcon',
+          isRoot: false,
+          hidden: true,
+          noCache: false,
+        },
+      },
+      {
+        id: 90022,
+        parentId: 9002,
+        name: 'PointDeduction',
+        path: 'point-deduction',
+        component: '/production-safety/safetyAssessment/pointDeduction/pointDeduction',
+        meta: {
+          title: '月度扣分管理',
+          icon: 'OverviewIcon',
+          isRoot: false,
+          hidden: false,
+          noCache: false,
+        },
+      },
+      {
+        id: 9002201,
+        parentId: 90022,
+        name: 'PointDeductionItem',
+        path: 'point-deduction-item',
+        component: '/production-safety/safetyAssessment/pointDeduction/PointDeductionItem',
+        meta: {
+          title: '月度扣分详情',
+          icon: 'OverviewIcon',
+          isRoot: false,
+          hidden: true,
+          noCache: false,
+        },
+      },
+      {
+        id: 90023,
+        parentId: 9002,
+        name: 'EvaluationDepartment',
+        path: 'evaluation-department',
+        component: '/production-safety/safetyAssessment/evaluationDepartment/evaluationDepartment',
+        meta: {
+          title: '安全考核管理(部)',
+          icon: 'OverviewIcon',
+          isRoot: false,
+          hidden: false,
+          noCache: false,
+        },
+      },
+      {
+        id: 9002301,
+        parentId: 90023,
+        name: 'EvaluationDepartmentItem',
+        path: 'evaluation-department-item',
+        component: '/production-safety/safetyAssessment/evaluationDepartment/EvaluationDepartmentItem',
+        meta: {
+          title: '安全考核管理(部)详情',
+          icon: 'OverviewIcon',
+          isRoot: false,
+          hidden: true,
+          activeMenu: '/work-safety/safety-assessment/evaluation-department',
+          noCache: false,
+        },
+      },
+      {
+        id: 90024,
+        parentId: 9002,
+        name: 'EvaluationSystem',
+        path: 'evaluation-system',
+        component: '/production-safety/safetyAssessment/evaluationSystem/evaluationSystem',
+        meta: {
+          title: '安全考核管理(管)',
+          icon: 'OverviewIcon',
+          isRoot: false,
+          hidden: false,
+          noCache: false,
+        },
+      },
+      {
+        id: 9002401,
+        parentId: 90024,
+        name: 'EvaluationSystemItem',
+        path: 'evaluation-system-item',
+        component: '/production-safety/safetyAssessment/evaluationSystem/EvaluationSystemItem',
+        meta: {
+          title: '安全考核管理(管)详情',
+          icon: 'OverviewIcon',
+          isRoot: false,
+          hidden: true,
+          noCache: false,
+        },
+      },
+    ],
+  };
+
+  export default safetyAssessmentRoutes;