From 2e42681c30bbaa924e376518f64123036956d658 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A7=9A=E4=B8=B9ab?= <1421553879@qq.com> Date: Sat, 22 Apr 2023 01:07:05 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=92=E8=AF=BE=E7=AE=A1=E7=90=86-=E6=90=9C?= =?UTF-8?q?=E7=B4=A2=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../teacherOpenCourseScheduleSession/index.js | 18 ++++++- .../templates/common/courseInfoSelect.html | 29 ++++++++-- .../teacherOpenCourseScheduleSession/add.html | 54 +++---------------- .../index.html | 4 +- 4 files changed, 49 insertions(+), 56 deletions(-) diff --git a/web/src/main/resources/static/js/jlw/teacherOpenCourseScheduleSession/index.js b/web/src/main/resources/static/js/jlw/teacherOpenCourseScheduleSession/index.js index a9bf6bb1..387f2362 100644 --- a/web/src/main/resources/static/js/jlw/teacherOpenCourseScheduleSession/index.js +++ b/web/src/main/resources/static/js/jlw/teacherOpenCourseScheduleSession/index.js @@ -130,7 +130,23 @@ layui.define([ 'form', 'laydate', 'table' ,'laytpl'], function(exports) { }, initSearchForm:function(){ - Lib.initSearchForm( $("#searchForm"),teacherOpenCourseScheduleSessionTable,form); + //Lib.initSearchForm( $("#searchForm"),teacherOpenCourseScheduleSessionTable,form); + var btn = $("#searchFormSearch"); + btn.on('click', function () { + var data = $("#searchForm").serializeJson(); + if(!$.isEmpty(data.teacherOpenCourseId)){ + data.courseType = data.teacherOpenCourseId.split('_')[1]; + data.teacherOpenCourseId = data.teacherOpenCourseId.split('_')[0]; + }else { + data.courseType = ""; + } + teacherOpenCourseScheduleSessionTable.reload({ + where: data, + page: { + curr: 1 + } + }); + }); }, initToolBar:function(){ diff --git a/web/src/main/resources/templates/common/courseInfoSelect.html b/web/src/main/resources/templates/common/courseInfoSelect.html index 912a909d..d5d83a13 100644 --- a/web/src/main/resources/templates/common/courseInfoSelect.html +++ b/web/src/main/resources/templates/common/courseInfoSelect.html @@ -8,6 +8,7 @@ isShowGroupName 显示分组名称(默认:true); defaultValue 默认值; filterName 过滤的分类名称,多个逗号隔开;只支持【应用课程类】、【理论课程类】、【考证课程类】,showGroupName为false也会过滤数据。 + isShowOpentCourse 显示开课课程 */ // 传入的标签ID,如果为空,则生成规则 select_id_{标签name}_生成长度为10的字符串 @@ -20,6 +21,7 @@ var newId = !isEmpty(id) ? id : ('select_id_' + (name!'0') + '_' + @cn.hutool.c