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 @@
- +
- +