diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/T_MonitorController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/T_MonitorController.java index f553224..bddfbd8 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/T_MonitorController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/T_MonitorController.java @@ -45,9 +45,14 @@ public class T_MonitorController extends BaseController { @Autowired private ITSetmonitorthresholdvalueService itSetmonitorthresholdvalueService; - @Autowired - private ITempertureMonitorService itempertureMonitorService; +// @Autowired +// private ITempertureMonitorService itempertureMonitorService; + /** + * 2点、3水、16温度、20震动、30阵列 + * @param id + * @return + */ @RequiresPermissions("system:Monitor:view") @GetMapping() public String Monitor(@RequestParam("id") int id) { @@ -75,6 +80,8 @@ public class T_MonitorController extends BaseController { url = "/monitor_tw"; case 20: url = "/vibrationSensorMonitor"; + case 30: + url = "/arrayMonitor"; break; } @@ -147,6 +154,8 @@ public class T_MonitorController extends BaseController { break; case 20: url = "/vibrationSensorAdd"; + case 30: + url = "/arrayAdd"; break; default: break; @@ -169,6 +178,17 @@ public class T_MonitorController extends BaseController { return prefix + url; } + @GetMapping(value = {"/arrayAdd/{objid}", "/arrayAdd/"}) + public String arrayAdd(@PathVariable(value = "objid", required = false) Integer objid, ModelMap mmap) { + String url = ""; + if (StringUtils.isNotNull(objid)) { + T_Monitor t_monitor = t_MonitorService.selectT_MonitorById(objid); + mmap.put("t_Monitor", t_monitor); + } + url = "/arrayAdd"; + return prefix + url; + } + /** * 新增保存测控点信息 */ @@ -222,6 +242,9 @@ public class T_MonitorController extends BaseController { case 20: url = "/vibrationSensorEdit"; break; + case 30: + url = "/arrayEdit"; + break; default: break; } @@ -291,6 +314,9 @@ public class T_MonitorController extends BaseController { case "20": url = "/vibrationSensorTree"; break; + case "30": + url = "/arrayTree"; + break; default: T_Monitor t_monitor = new T_Monitor(); t_monitor.setMonitorId(objid); @@ -318,6 +344,8 @@ public class T_MonitorController extends BaseController { case 20: url = "/vibrationSensorTree"; break; + case 30: + url = "/arrayTree"; default: break; } diff --git a/ruoyi-admin/src/main/resources/templates/system/ArrayTemperatureData/ArrayTemperatureData.html b/ruoyi-admin/src/main/resources/templates/system/ArrayTemperatureData/ArrayTemperatureData.html index 094b2d9..f75ceec 100644 --- a/ruoyi-admin/src/main/resources/templates/system/ArrayTemperatureData/ArrayTemperatureData.html +++ b/ruoyi-admin/src/main/resources/templates/system/ArrayTemperatureData/ArrayTemperatureData.html @@ -2,8 +2,35 @@