From 95368d98cff511d7d12cb20480955d1e7ebfbc24 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A7=9A=E4=B8=B9ab?= <1421553879@qq.com> Date: Wed, 16 Nov 2022 02:22:05 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=9D=E5=A7=8B=E5=8C=96=E6=8E=92=E8=AF=BE?= =?UTF-8?q?=E6=9D=A1=E4=BB=B6=E8=AE=BE=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...OpenCourseScheduleSessionTagController.java | 9 +++++++++ .../teacherOpenCourseScheduleSession/add.js | 18 ++++++++++++------ .../initSetCourseScheduleCondition.html | 10 ++++++++++ 3 files changed, 31 insertions(+), 6 deletions(-) create mode 100644 web/src/main/resources/templates/jlw/teacherOpenCourseScheduleSessionTag/initSetCourseScheduleCondition.html diff --git a/web/src/main/java/com/ibeetl/jlw/web/TeacherOpenCourseScheduleSessionTagController.java b/web/src/main/java/com/ibeetl/jlw/web/TeacherOpenCourseScheduleSessionTagController.java index 0790afcf..2d565774 100644 --- a/web/src/main/java/com/ibeetl/jlw/web/TeacherOpenCourseScheduleSessionTagController.java +++ b/web/src/main/java/com/ibeetl/jlw/web/TeacherOpenCourseScheduleSessionTagController.java @@ -116,6 +116,15 @@ public class TeacherOpenCourseScheduleSessionTagController{ return view; } + @GetMapping(MODEL + "/initSetCourseScheduleCondition.do") + @Function("teacherOpenCourseScheduleSessionTag.query") + @ResponseBody + public ModelAndView initSetCourseScheduleCondition() { + ModelAndView view = new ModelAndView("/jlw/teacherOpenCourseScheduleSessionTag/initSetCourseScheduleCondition.html") ; + view.addObject("search", TeacherOpenCourseScheduleSessionTagQuery.class.getName()); + return view; + } + /* 后台接口 */ @PostMapping(MODEL + "/list.json") diff --git a/web/src/main/resources/static/js/jlw/teacherOpenCourseScheduleSession/add.js b/web/src/main/resources/static/js/jlw/teacherOpenCourseScheduleSession/add.js index 7f604ea0..5cedaeb8 100644 --- a/web/src/main/resources/static/js/jlw/teacherOpenCourseScheduleSession/add.js +++ b/web/src/main/resources/static/js/jlw/teacherOpenCourseScheduleSession/add.js @@ -435,7 +435,10 @@ layui.define(['form', 'laydate', 'table', 'xmSelect', 'teacherOpenCourseSchedule return; } - + layer.load(0, { + shadeClose: false, + shade: [0.5] + }); var param = { teacherOpenCourseScheduleSessionId: teacherOpenCourseScheduleSessionId, teacherOpenCourseId: teacherOpenCourseId, @@ -452,11 +455,14 @@ layui.define(['form', 'laydate', 'table', 'xmSelect', 'teacherOpenCourseSchedule if(!$.isEmpty(teacherOpenCourseScheduleSessionId)){ url = "/jlw/teacherOpenCourseScheduleSession/editSession.json"; } - var ret = Common.postJSON(url,JSON.stringify(param)); - if (ret.code == 0) { - parent.Lib.tableRefresh(); - Lib.closeFrame(); - } + setTimeout(function(){ + var ret = Common.postJSON(url,JSON.stringify(param)); + if (ret.code == 0) { + parent.window.dataReload(); + parent.Lib.tableRefresh(); + Lib.closeFrame(); + } + },100); }); $("#addButton-cancel").click(function(){ diff --git a/web/src/main/resources/templates/jlw/teacherOpenCourseScheduleSessionTag/initSetCourseScheduleCondition.html b/web/src/main/resources/templates/jlw/teacherOpenCourseScheduleSessionTag/initSetCourseScheduleCondition.html new file mode 100644 index 00000000..566549bd --- /dev/null +++ b/web/src/main/resources/templates/jlw/teacherOpenCourseScheduleSessionTag/initSetCourseScheduleCondition.html @@ -0,0 +1,10 @@ + + +
+ +