diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/base/BaseSensorInfoController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/base/BaseSensorInfoController.java index 2a74017..f99f2a9 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/base/BaseSensorInfoController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/base/BaseSensorInfoController.java @@ -121,6 +121,13 @@ public class BaseSensorInfoController extends BaseController { return prefix + "/add"; } + /** + * 传感器编号校验 + * @author WenJY + * @date 2022/4/26 13:23 + * @param baseSensorInfo + * @return java.lang.String + */ @PostMapping("/checkSensorIdUnique") @ResponseBody public String checkSensorIdUnique(BaseSensorInfo baseSensorInfo){ diff --git a/ruoyi-admin/src/main/resources/templates/base/monitorUnitInfo/add.html b/ruoyi-admin/src/main/resources/templates/base/monitorUnitInfo/add.html index becb988..1a86ec4 100644 --- a/ruoyi-admin/src/main/resources/templates/base/monitorUnitInfo/add.html +++ b/ruoyi-admin/src/main/resources/templates/base/monitorUnitInfo/add.html @@ -49,14 +49,14 @@ -
+
diff --git a/ruoyi-admin/src/main/resources/templates/base/monitorUnitInfo/edit.html b/ruoyi-admin/src/main/resources/templates/base/monitorUnitInfo/edit.html index 5fe1b2c..dfac15a 100644 --- a/ruoyi-admin/src/main/resources/templates/base/monitorUnitInfo/edit.html +++ b/ruoyi-admin/src/main/resources/templates/base/monitorUnitInfo/edit.html @@ -50,7 +50,7 @@
-
+