From c29f1dc5bc2760726d570749aa585c0ea3f8e1a1 Mon Sep 17 00:00:00 2001 From: wenjy Date: Tue, 26 Apr 2022 20:36:07 +0800 Subject: [PATCH] =?UTF-8?q?change=20-=20=E7=9B=91=E6=8E=A7=E5=8D=95?= =?UTF-8?q?=E5=85=83=E7=8A=B6=E6=80=81=E4=BF=A1=E6=81=AF=E4=B8=8D=E5=8F=AF?= =?UTF-8?q?=E7=BC=96=E8=BE=91=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../web/controller/base/BaseSensorInfoController.java | 7 +++++++ .../main/resources/templates/base/monitorUnitInfo/add.html | 4 ++-- .../resources/templates/base/monitorUnitInfo/edit.html | 4 ++-- 3 files changed, 11 insertions(+), 4 deletions(-) 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 @@
-
+