diff --git a/web/src/main/resources/static/js/jlw/student/add.js b/web/src/main/resources/static/js/jlw/student/add.js index 3fb642f1..e2104df8 100644 --- a/web/src/main/resources/static/js/jlw/student/add.js +++ b/web/src/main/resources/static/js/jlw/student/add.js @@ -68,9 +68,10 @@ layui.define([ 'form', 'laydate', 'table','studentApi'], function(exports) { Common.openDlg(url,""); }); - //根据所选院校查询班级 + //根据所选院校查询班级、查询院系 form.on('select(select_universitiesColleges)', function (obj) { Lib.getSchoolClass($("select[name='classId']"),obj.value); + Lib.getUniversityFacultys($("select[name='universityFacultyId']"),obj.value); }); //查询专业 form.on('select(select_universityFaculty)', function (obj) { diff --git a/web/src/main/resources/static/js/jlw/student/index.js b/web/src/main/resources/static/js/jlw/student/index.js index d9f83f20..f83736e9 100644 --- a/web/src/main/resources/static/js/jlw/student/index.js +++ b/web/src/main/resources/static/js/jlw/student/index.js @@ -136,7 +136,7 @@ layui.define(['form', 'laydate', 'table'], function (exports) { layer.close(index); var param = getParam(); var url = "/jlw/student/export.json"; - var value = "" + var value = ""; for(var k in param) { if(!$.isEmpty(param[k])){ value+='&'+k+"="+param[k]; @@ -145,7 +145,7 @@ layui.define(['form', 'laydate', 'table'], function (exports) { if(!$.isEmpty(value)){ url = url +"?" + value.slice(1); } - $.downFile(Common.ctxPath +url); + $.downFile(Common.ctxPath +url,"学生信息表"); }); } }; diff --git a/web/src/main/resources/static/js/jlw/teacher/index.js b/web/src/main/resources/static/js/jlw/teacher/index.js index bcb2adbe..e27f51c8 100644 --- a/web/src/main/resources/static/js/jlw/teacher/index.js +++ b/web/src/main/resources/static/js/jlw/teacher/index.js @@ -101,7 +101,19 @@ layui.define(['form', 'laydate', 'table'], function (exports) { }, export: function () {//导出 layer.confirm('是否确定导出教师信息?', function (index) { layer.close(index); - $.downFile(Common.ctxPath + "/jlw/teacher/export.json"); + let param = $("#searchForm").serializeJson(); + let url = "/jlw/teacher/export.json"; + let value = ""; + for(let k in param) { + if(!$.isEmpty(param[k])){ + value+='&'+k+"="+param[k]; + } + } + if(!$.isEmpty(value)){ + url = url +"?" + value.slice(1); + } + $.downFile(Common.ctxPath + url,"教师信息表格"); + }); } }; diff --git a/web/src/main/resources/static/js/jlw/universitiesColleges/index.js b/web/src/main/resources/static/js/jlw/universitiesColleges/index.js index d2f7118b..bf1ebf61 100644 --- a/web/src/main/resources/static/js/jlw/universitiesColleges/index.js +++ b/web/src/main/resources/static/js/jlw/universitiesColleges/index.js @@ -106,7 +106,18 @@ layui.define(['form', 'laydate', 'table'], function (exports) { }, exportDocument: function () { layer.confirm('是否确定导院校信息?', function (index) { - $.downFile(Common.ctxPath + "/jlw/universitiesColleges/export.json",'院校管理员信息表',"POST"); + let param = $("#searchForm").serializeJson(); + let url = "/jlw/universitiesColleges/export.json"; + let value = ""; + for(let k in param) { + if(!$.isEmpty(param[k])){ + value+='&'+k+"="+param[k]; + } + } + if(!$.isEmpty(value)){ + url = url +"?" + value.slice(1); + } + $.downFile(Common.ctxPath + url,'院校管理员信息表',"POST"); layer.close(index); }); }, diff --git a/web/src/main/resources/static/js/jlw/universityFaculty/add.js b/web/src/main/resources/static/js/jlw/universityFaculty/add.js index dbb37023..a552b3dc 100644 --- a/web/src/main/resources/static/js/jlw/universityFaculty/add.js +++ b/web/src/main/resources/static/js/jlw/universityFaculty/add.js @@ -14,14 +14,14 @@ layui.define([ 'form', 'laydate', 'table','universityFacultyApi'], function(expo if(!$.isEmpty(universityFacultyId)){ universityFacultyApi.updateUniversityFaculty($('#addForm'),function(){ window.parent.location.reload(); - parent.window.dataReload(); + //parent.window.dataReload(); Common.info("更新成功"); Lib.closeFrame(); }); }else{ universityFacultyApi.addUniversityFaculty($('#addForm'),function(){ window.parent.location.reload(); - parent.window.dataReload(); + //parent.window.dataReload(); Common.info("添加成功"); Lib.closeFrame(); }); diff --git a/web/src/main/resources/templates/jlw/student/add.html b/web/src/main/resources/templates/jlw/student/add.html index 34068086..8c5fbbf7 100644 --- a/web/src/main/resources/templates/jlw/student/add.html +++ b/web/src/main/resources/templates/jlw/student/add.html @@ -28,7 +28,7 @@
@@ -41,7 +41,8 @@
-