diff --git a/web/src/main/resources/templates/common/courseInfoSelect.html b/web/src/main/resources/templates/common/courseInfoSelect.html index b141d184..2561ac18 100644 --- a/web/src/main/resources/templates/common/courseInfoSelect.html +++ b/web/src/main/resources/templates/common/courseInfoSelect.html @@ -3,8 +3,9 @@ 查询已经授权的课程 条件: - name 标签的name值; - id 标签的ID值。 + name 标签的name值; + id 标签的ID值; + filterName 过滤的分类名称,多个逗号隔开;只支持【应用课程类】、【理论课程类】、【考证课程类】 */ var newId = !isEmpty(id) ? id : ('select_id_' + name + '_' + @cn.hutool.core.util.RandomUtil.randomString(10)); --> @@ -41,27 +42,33 @@ var newId = !isEmpty(id) ? id : ('select_id_' + name + '_' + @cn.hutool.core.ut var ele = $('#${newId}'); - ele.append(''); - for (let currentAuthCourseInfoDetail of applicationCourseList) { - ele.append( - '') - } - ele.append(''); - + var filterNames = '${filterName!""}'; - ele.append(''); - for (let currentAuthCourseInfoDetail of theoryCourseList) { - ele.append( - '') + if (filterNames.indexOf('应用课程类') >= 0 || filterNames === "") { + ele.append(''); + for (let currentAuthCourseInfoDetail of applicationCourseList) { + ele.append( + '') + } + ele.append(''); } - ele.append(''); + if (filterNames.indexOf('理论课程类') >= 0 || filterNames === "") { + ele.append(''); + for (let currentAuthCourseInfoDetail of theoryCourseList) { + ele.append( + '') + } + ele.append(''); + } - ele.append(''); - for (let currentAuthCourseInfoDetail of textualResearchCourseList) { - ele.append( - '') + if (filterNames.indexOf('考证课程类') >= 0 || filterNames === "") { + ele.append(''); + for (let currentAuthCourseInfoDetail of textualResearchCourseList) { + ele.append( + '') + } + ele.append(''); } - ele.append(''); diff --git a/web/src/main/resources/templates/jlw/resourcesQuestion/index.html b/web/src/main/resources/templates/jlw/resourcesQuestion/index.html index e8ec31a5..e8ebb7f7 100644 --- a/web/src/main/resources/templates/jlw/resourcesQuestion/index.html +++ b/web/src/main/resources/templates/jlw/resourcesQuestion/index.html @@ -28,7 +28,7 @@ - +