| | |
| | | }, |
| | | { |
| | | icon: "/static/images/icon/xunjianshangchuan@2x.png", |
| | | label: "巡检任务", |
| | | }, |
| | | { |
| | | icon: "/static/images/icon/xunjianshangchuan@2x.png", |
| | | label: "巡检管理", |
| | | }, |
| | | |
| | | ]); |
| | | |
| | | // 处理常用功能点击 |
| | |
| | | url: "/pages/equipmentManagement/repair/index", |
| | | }); |
| | | break; |
| | | case "设备保养任务": |
| | | uni.navigateTo({ |
| | | url: "/pages/equipmentManagement/upkeepTask/index", |
| | | }); |
| | | break; |
| | | case "设备保养": |
| | | uni.navigateTo({ |
| | | url: "/pages/equipmentManagement/upkeep/index", |
| | |
| | | case "巡检管理": |
| | | uni.navigateTo({ |
| | | url: "/pages/inspectionUpload/index", |
| | | }); |
| | | break; |
| | | case "巡检任务": |
| | | uni.navigateTo({ |
| | | url: "/pages/inspectionManagement/index", |
| | | }); |
| | | break; |
| | | case "分析追溯": |
| | |
| | | const originalEquipment = [ |
| | | { icon: "/static/images/icon/shbeibaoxiu@2x.png", label: "运行管理" }, |
| | | { icon: "/static/images/icon/shbeibaoxiu@2x.png", label: "设备报修" }, |
| | | { icon: "/static/images/icon/shbeibaoyang@2x.png", label: "设备保养任务" }, |
| | | { icon: "/static/images/icon/shbeibaoyang@2x.png", label: "设备保养" }, |
| | | { icon: "/static/images/icon/xunjianshangchuan@2x.png", label: "巡检任务" }, |
| | | { icon: "/static/images/icon/xunjianshangchuan@2x.png", label: "巡检管理" }, |
| | | ]; |
| | | const filteredEquipment = originalEquipment.filter(item => { |
| | | return allowedMenuTitles.has(item.label); |
| | | }); |
| | | if (filteredEquipment.some(i => i.label === "设备保养")) { |
| | | const upkeepTask = originalEquipment.find(i => i.label === "设备保养任务"); |
| | | if (upkeepTask && !filteredEquipment.some(i => i.label === "设备保养任务")) { |
| | | const upkeepIndex = filteredEquipment.findIndex(i => i.label === "设备保养"); |
| | | filteredEquipment.splice(upkeepIndex, 0, upkeepTask); |
| | | } |
| | | } |
| | | if (filteredEquipment.some(i => i.label === "巡检管理")) { |
| | | const task = originalEquipment.find(i => i.label === "巡检任务"); |
| | | if (task && !filteredEquipment.some(i => i.label === "巡检任务")) { |
| | | const manageIndex = filteredEquipment.findIndex(i => i.label === "巡检管理"); |
| | | filteredEquipment.splice(manageIndex, 0, task); |
| | | } |
| | | } |
| | | equipmentItems.splice(0, equipmentItems.length, ...filteredEquipment); |
| | | }; |
| | | |
| | |
| | | box-shadow: 0 0.375rem 1.25rem rgba(0, 0, 0, 0.4); |
| | | } |
| | | } |
| | | </style> |
| | | </style> |