From 16a3f87fe9eb86765e5f4b8111312bff94ec8215 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A7=9A=E4=B8=B9ab?= <1421553879@qq.com> Date: Wed, 1 Feb 2023 13:32:23 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E9=AA=8C=E8=AF=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../static/js/jlw/universitiesColleges/add.js | 1 + .../templates/jlw/schoolClass/add.html | 17 ++++++++++------- .../resources/templates/jlw/student/add.html | 10 ++++++---- .../resources/templates/jlw/teacher/add.html | 10 +++++----- .../templates/jlw/universitiesColleges/add.html | 4 ++-- 5 files changed, 24 insertions(+), 18 deletions(-) diff --git a/web/src/main/resources/static/js/jlw/universitiesColleges/add.js b/web/src/main/resources/static/js/jlw/universitiesColleges/add.js index 26612b17..cd43d1ac 100644 --- a/web/src/main/resources/static/js/jlw/universitiesColleges/add.js +++ b/web/src/main/resources/static/js/jlw/universitiesColleges/add.js @@ -16,6 +16,7 @@ layui.define([ 'form', 'laydate', 'table','universitiesCollegesApi'], function(e $("#addButton").click(function(){ form.on('submit(form)', function(){ var universitiesCollegesId = $("input[name='universitiesCollegesId']").val(); + if($.isEmpty(universitiesCollegesId)){ universitiesCollegesApi.addUniversitiesColleges($('#addForm'),function(){ Common.info("添加成功"); diff --git a/web/src/main/resources/templates/jlw/schoolClass/add.html b/web/src/main/resources/templates/jlw/schoolClass/add.html index 75e3195e..38d30015 100644 --- a/web/src/main/resources/templates/jlw/schoolClass/add.html +++ b/web/src/main/resources/templates/jlw/schoolClass/add.html @@ -24,8 +24,9 @@
- +
@@ -33,10 +34,11 @@
+
+ id="universitySystemId" name="universitySystemId" lay-verify="required"/>
@@ -48,8 +50,9 @@
- +
@@ -59,7 +62,7 @@
- +
@@ -70,7 +73,7 @@
- +
diff --git a/web/src/main/resources/templates/jlw/student/add.html b/web/src/main/resources/templates/jlw/student/add.html index e129c8d5..2273128e 100644 --- a/web/src/main/resources/templates/jlw/student/add.html +++ b/web/src/main/resources/templates/jlw/student/add.html @@ -13,6 +13,7 @@
@@ -25,7 +26,8 @@
+ id="universitySystemId" name="universitySystemId" layFilter="select_universitySystemId" + lay-verify="required"/>
@@ -39,7 +41,7 @@
@@ -66,7 +68,7 @@
- +
@@ -76,7 +78,7 @@
- +
diff --git a/web/src/main/resources/templates/jlw/teacher/add.html b/web/src/main/resources/templates/jlw/teacher/add.html index ef983944..4fc1cb16 100644 --- a/web/src/main/resources/templates/jlw/teacher/add.html +++ b/web/src/main/resources/templates/jlw/teacher/add.html @@ -27,7 +27,7 @@
@@ -38,7 +38,7 @@
-
@@ -54,7 +54,7 @@
@@ -93,7 +93,7 @@
- +
@@ -113,7 +113,7 @@
- +
diff --git a/web/src/main/resources/templates/jlw/universitiesColleges/add.html b/web/src/main/resources/templates/jlw/universitiesColleges/add.html index c7ab83e0..fd24ef9a 100644 --- a/web/src/main/resources/templates/jlw/universitiesColleges/add.html +++ b/web/src/main/resources/templates/jlw/universitiesColleges/add.html @@ -56,13 +56,13 @@
- +
- +