|
|
|
@ -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('<optgroup label="应用课程类">');
|
|
|
|
|
for (let currentAuthCourseInfoDetail of applicationCourseList) {
|
|
|
|
|
ele.append(
|
|
|
|
|
'<option value="'+ (currentAuthCourseInfoDetail.courseInfoId || '-1') +'">'+ (currentAuthCourseInfoDetail.courseInfoName || '未查询到数据') +'</option>')
|
|
|
|
|
}
|
|
|
|
|
ele.append('</optgroup>');
|
|
|
|
|
|
|
|
|
|
var filterNames = '${filterName!""}';
|
|
|
|
|
|
|
|
|
|
ele.append('<optgroup label="理论课程类">');
|
|
|
|
|
for (let currentAuthCourseInfoDetail of theoryCourseList) {
|
|
|
|
|
ele.append(
|
|
|
|
|
'<option value="'+ (currentAuthCourseInfoDetail.courseInfoId || '-1') +'">'+ (currentAuthCourseInfoDetail.courseInfoName || '未查询到数据') +'</option>')
|
|
|
|
|
if (filterNames.indexOf('应用课程类') >= 0 || filterNames === "") {
|
|
|
|
|
ele.append('<optgroup label="应用课程类">');
|
|
|
|
|
for (let currentAuthCourseInfoDetail of applicationCourseList) {
|
|
|
|
|
ele.append(
|
|
|
|
|
'<option value="'+ (currentAuthCourseInfoDetail.courseInfoId || '-1') +'">'+ (currentAuthCourseInfoDetail.courseInfoName || '未查询到数据') +'</option>')
|
|
|
|
|
}
|
|
|
|
|
ele.append('</optgroup>');
|
|
|
|
|
}
|
|
|
|
|
ele.append('</optgroup>');
|
|
|
|
|
|
|
|
|
|
if (filterNames.indexOf('理论课程类') >= 0 || filterNames === "") {
|
|
|
|
|
ele.append('<optgroup label="应用课程类">');
|
|
|
|
|
for (let currentAuthCourseInfoDetail of theoryCourseList) {
|
|
|
|
|
ele.append(
|
|
|
|
|
'<option value="'+ (currentAuthCourseInfoDetail.courseInfoId || '-1') +'">'+ (currentAuthCourseInfoDetail.courseInfoName || '未查询到数据') +'</option>')
|
|
|
|
|
}
|
|
|
|
|
ele.append('</optgroup>');
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
ele.append('<optgroup label="考证课程类">');
|
|
|
|
|
for (let currentAuthCourseInfoDetail of textualResearchCourseList) {
|
|
|
|
|
ele.append(
|
|
|
|
|
'<option value="'+ (currentAuthCourseInfoDetail.courseInfoId || '-1') +'">'+ (currentAuthCourseInfoDetail.courseInfoName || '未查询到数据') +'</option>')
|
|
|
|
|
if (filterNames.indexOf('考证课程类') >= 0 || filterNames === "") {
|
|
|
|
|
ele.append('<optgroup label="考证课程类">');
|
|
|
|
|
for (let currentAuthCourseInfoDetail of textualResearchCourseList) {
|
|
|
|
|
ele.append(
|
|
|
|
|
'<option value="'+ (currentAuthCourseInfoDetail.courseInfoId || '-1') +'">'+ (currentAuthCourseInfoDetail.courseInfoName || '未查询到数据') +'</option>')
|
|
|
|
|
}
|
|
|
|
|
ele.append('</optgroup>');
|
|
|
|
|
}
|
|
|
|
|
ele.append('</optgroup>');
|
|
|
|
|
|
|
|
|
|
</script>
|
|
|
|
|