Selaa lähdekoodia

pms 切换TAB列表刷新

zhangcl 1 kuukausi sitten
vanhempi
commit
68ffaad4b4
4 muutettua tiedostoa jossa 159 lisäystä ja 9 poistoa
  1. 4 1
      src/locales/en.ts
  2. 5 1
      src/locales/ru.ts
  3. 4 2
      src/locales/zh-CN.ts
  4. 146 5
      src/router/modules/remaining.ts

+ 4 - 1
src/locales/en.ts

@@ -988,7 +988,8 @@ export default {
     accumulatedParams: 'COP',
     accumulatedRunTime: 'COT',
     accumulatedMileage: 'COK',
-    runningTimeCycleError: 'MCT must be greater than 0'
+    runningTimeCycleError: 'MCT must be greater than 0',
+    maintenanceQuery: 'Maintenance Query'
   },
   inspect:{
     InspectionItems:'InspectionItems',
@@ -1045,6 +1046,7 @@ export default {
     SwitchMapType:'SwitchMapType'
   },
   rem:{
+    AttrTemplates:'Attr Templates',
     DeviceAttrTemplateModel:'DeviceAttrTemplateModel',
     AttributeInformationDetails:'AttributeInformationDetails',
     AddProjectInformation:'AddProjectInformation',
@@ -1088,6 +1090,7 @@ export default {
     InspectPlanEdit:'InspectPlanEdit',
     InspectOrderDetail:'InspectOrderDetail',
     FailureDetail:'FailureDetail',
+    MaterialManagement: 'MaterialManagement'
   },
 }
 

+ 5 - 1
src/locales/ru.ts

@@ -77,6 +77,9 @@ export default {
     hasPermission: `请设置操作权限标签值`,
     hasRole: `请设置角色权限标签值`
   },
+  rem: {
+    MaterialManagement: '物料管理'
+  },
   setting: {
     projectSetting: '项目配置',
     theme: '主题',
@@ -969,7 +972,8 @@ export default {
     accumulatedParams: '累计运行参数',
     accumulatedRunTime: '累计运行时长',
     accumulatedMileage: '累计运行公里数',
-    runningTimeCycleError: '运行时间周期必须大于0'
+    runningTimeCycleError: '运行时间周期必须大于0',
+    maintenanceQuery: '保养查询'
   },
   inspect:{
     InspectionItems:'巡检项',

+ 4 - 2
src/locales/zh-CN.ts

@@ -983,7 +983,8 @@ export default {
     accumulatedParams: '累计运行参数',
     accumulatedRunTime: '累计运行时长',
     accumulatedMileage: '累计运行公里数',
-    runningTimeCycleError: '运行时间周期必须大于0'
+    runningTimeCycleError: '运行时间周期必须大于0',
+    maintenanceQuery: '保养查询'
   },
   inspect:{
     InspectionItems:'巡检项',
@@ -1040,6 +1041,7 @@ export default {
     SwitchMapType:'切换地图类型'
   },
   rem:{
+    AttrTemplates:'属性模板列表',
     DeviceAttrTemplateModel:'设备属性详情',
     AttributeInformationDetails:'属性信息详情',
     AddProjectInformation:'添加项目信息',
@@ -1083,7 +1085,7 @@ export default {
     InspectOrderDetail:'巡检工单详情',
     InspectOrder:'巡检工单',
     FailureDetail:'查看故障详情',
-
+    MaterialManagement: '物料管理'
 
 
   },

+ 146 - 5
src/router/modules/remaining.ts

@@ -82,7 +82,8 @@ const remainingRouter: AppRouteRecordRaw[] = [
     component: Layout,
     name: 'DeviceAttrsCenter',
     meta: {
-      hidden: true
+      hidden: true,
+      keepAlive: true
     },
     children: [
       {
@@ -90,15 +91,131 @@ const remainingRouter: AppRouteRecordRaw[] = [
         component: () => import('@/views/pms/devicetemplate/detail/attrsModel/index.vue'),
         name: 'DeviceAttrTemplateModel',
         meta: {
+          keepAlive: true,
           title: t('rem.DeviceAttrTemplateModel'),
           noCache: false,
           hidden: true,
           canTo: true,
           activeMenu: '/template/info'
         }
+      },
+      {
+        path: 'templates',
+        component: () => import('@/views/pms/devicetemplate/index.vue'),
+        name: 'DeviceAttrsTemplate',
+        meta: {
+          keepAlive: true,
+          title: t('rem.AttrTemplates'),
+          noCache: false,
+          hidden: true,
+          canTo: true,
+          activeMenu: '/templates'
+        }
+      }
+    ]
+  },
+
+  {
+    path: '/devicecategoryboms',
+    component: Layout,
+    name: 'DeviceCategoryBomCenter',
+    meta: {
+      hidden: true,
+      keepAlive: true
+    },
+    children: [
+      {
+        path: 'boms',
+        component: () => import('@/views/pms/bom/index.vue'),
+        name: 'Bom',
+        meta: {
+          keepAlive: true,
+          title: t('rem.AttrTemplates'),
+          noCache: false,
+          hidden: true,
+          canTo: true,
+          activeMenu: '/boms'
+        }
+      }
+    ]
+  },
+
+  {
+    path: '/devicetrends',
+    component: Layout,
+    name: 'DeviceTrendsCenter',
+    meta: {
+      hidden: true,
+      keepAlive: true
+    },
+    children: [
+      {
+        path: 'devicepersons',
+        component: () => import('@/views/pms/device/personlog/DevicePerson.vue'),
+        name: 'IotDevicePerson',
+        meta: {
+          keepAlive: true,
+          title: t('rem.EquipmentResponsiblePerson'),
+          noCache: false,
+          hidden: true,
+          canTo: true,
+          activeMenu: '/devicepersons'
+        }
+      },
+      {
+        path: 'allotlogs',
+        component: () => import('@/views/pms/device/allotlog/DeviceAllot.vue'),
+        name: 'IotDeviceAllot',
+        meta: {
+          keepAlive: true,
+          title: t('rem.EquipmentAllocation'),
+          noCache: false,
+          hidden: true,
+          canTo: true,
+          activeMenu: '/allotlogs'
+        }
+      },
+      {
+        path: 'statuslogs',
+        component: () => import('@/views/pms/device/statuslog/DeviceStatus.vue'),
+        name: 'IotDeviceStatus',
+        meta: {
+          keepAlive: true,
+          title: t('devicePerson.status'),
+          noCache: false,
+          hidden: true,
+          canTo: true,
+          activeMenu: '/statuslogs'
+        }
       }
     ]
   },
+
+  {
+    path: '/materials',
+    component: Layout,
+    name: 'MaterialsCenter',
+    meta: {
+      hidden: true,
+      keepAlive: true
+    },
+    children: [
+      {
+        path: 'materials',
+        component: () => import('@/views/pms/material/index.vue'),
+        name: 'Material',
+        meta: {
+          keepAlive: true,
+          title: t('rem.MaterialManagement'),
+          noCache: false,
+          hidden: true,
+          canTo: true,
+          activeMenu: '/materials'
+        }
+      }
+    ]
+  },
+
   {
     path: '/modelattrstemplate',
     component: Layout,
@@ -376,7 +493,8 @@ const remainingRouter: AppRouteRecordRaw[] = [
     component: Layout,
     name: 'PmsLockStockCenter',
     meta: {
-      hidden: true
+      hidden: true,
+      keepAlive: true
     },
     children: [
       {
@@ -384,6 +502,7 @@ const remainingRouter: AppRouteRecordRaw[] = [
         component: () => import('@/views/pms/iotlockstock/index.vue'),
         name: 'IotLockStock',
         meta: {
+          keepAlive: true,
           noCache: false,
           hidden: true,
           canTo: true,
@@ -426,7 +545,8 @@ const remainingRouter: AppRouteRecordRaw[] = [
     component: Layout,
     name: 'PmsSapStockCenter',
     meta: {
-      hidden: true
+      hidden: true,
+      keepAlive: true
     },
     children: [
       {
@@ -434,6 +554,7 @@ const remainingRouter: AppRouteRecordRaw[] = [
         component: () => import('@/views/pms/iotsapstock/index.vue'),
         name: 'IotSapStock',
         meta: {
+          keepAlive: true,
           noCache: false,
           hidden: true,
           canTo: true,
@@ -476,7 +597,8 @@ const remainingRouter: AppRouteRecordRaw[] = [
     component: Layout,
     name: 'PmsMaintenanceCenter',
     meta: {
-      hidden: true
+      hidden: true,
+      keepAlive: true
     },
     children: [
       {
@@ -484,6 +606,7 @@ const remainingRouter: AppRouteRecordRaw[] = [
         component: () => import('@/views/pms/maintenance/index.vue'),
         name: 'IotMaintenancePlan',
         meta: {
+          keepAlive: true,
           noCache: false,
           hidden: true,
           canTo: true,
@@ -497,6 +620,7 @@ const remainingRouter: AppRouteRecordRaw[] = [
         component: () => import('@/views/pms/maintenance/IotMaintenancePlan.vue'),
         name: 'IotAddMainPlan',
         meta: {
+          keepAlive: true,
           noCache: false,
           hidden: true,
           canTo: true,
@@ -510,6 +634,7 @@ const remainingRouter: AppRouteRecordRaw[] = [
         component: () => import('@/views/pms/maintenance/IotMaintenancePlanEdit.vue'),
         name: 'IotMainPlanEdit',
         meta: {
+          keepAlive: true,
           noCache: true,
           hidden: true,
           canTo: true,
@@ -539,7 +664,8 @@ const remainingRouter: AppRouteRecordRaw[] = [
     component: Layout,
     name: 'PmsMainWorkOrderCenter',
     meta: {
-      hidden: true
+      hidden: true,
+      keepAlive: true,
     },
     children: [
       {
@@ -547,6 +673,7 @@ const remainingRouter: AppRouteRecordRaw[] = [
         component: () => import('@/views/pms/iotmainworkorder/index.vue'),
         name: 'IotMainWorkOrder',
         meta: {
+          keepAlive: true,
           noCache: false,
           hidden: true,
           canTo: true,
@@ -555,6 +682,20 @@ const remainingRouter: AppRouteRecordRaw[] = [
           activeMenu: '/mainworkorder/index'
         }
       },
+      {
+        path: 'workorderalarm',
+        component: () => import('@/views/pms/iotmainworkorder/IotDeviceMainAlarm.vue'),
+        name: 'IotDeviceMainAlarm',
+        meta: {
+          keepAlive: true,
+          noCache: false,
+          hidden: true,
+          canTo: true,
+          icon: 'ep:menu',
+          title: t('mainPlan.maintenanceQuery'),
+          activeMenu: '/mainworkorder/alarm'
+        }
+      },
       {
         path: 'mainworkorder/bom/:id(\\d+)',
         component: () => import('@/views/pms/iotmainworkorder/IotMainWorkOrder.vue'),