|
|
|
@ -26,25 +26,21 @@ layui.define(['form', 'laydate', 'table'], function (exports) {
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
for (let currentAuthCourseInfoDetail of applicationCourseList) {
|
|
|
|
|
htmY += '<option value="' + (currentAuthCourseInfoDetail.courseInfoId || '-1') + '">' + (currentAuthCourseInfoDetail.courseInfoName || '未查询到数据') + '</option>';
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
for (let currentAuthCourseInfoDetail of theoryCourseList) {
|
|
|
|
|
htmL+='<option value="'+ (currentAuthCourseInfoDetail.courseInfoId || '-1') +'">'+ (currentAuthCourseInfoDetail.courseInfoName || '未查询到数据') +'</option>';
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
for (let currentAuthCourseInfoDetail of textualResearchCourseList) {
|
|
|
|
|
htmK+='<option value="'+ (currentAuthCourseInfoDetail.courseInfoId || '-1') +'">'+ (currentAuthCourseInfoDetail.courseInfoName || '未查询到数据') +'</option>';
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if($("#isUser").val() === "true"){
|
|
|
|
|
selectList += htmY + '</optgroup>' + htmK + '</optgroup>' + htmL + '</optgroup>' + "</select>";
|
|
|
|
|
console.log($("#isUser").val())
|
|
|
|
|
//console.log($("#isUser").val())
|
|
|
|
|
}else {
|
|
|
|
|
selectList+= htmL + '</optgroup>' + "</select>";
|
|
|
|
|
}
|
|
|
|
@ -79,7 +75,6 @@ layui.define(['form', 'laydate', 'table'], function (exports) {
|
|
|
|
|
{
|
|
|
|
|
field: 'courseInfoParentParentName',
|
|
|
|
|
title: '归属课程',
|
|
|
|
|
|
|
|
|
|
templet: function (d) {
|
|
|
|
|
return selectList; //一级
|
|
|
|
|
}
|
|
|
|
@ -93,7 +88,6 @@ layui.define(['form', 'laydate', 'table'], function (exports) {
|
|
|
|
|
if (!$.isEmpty(d.courseInfoParentId)) {
|
|
|
|
|
if ($.isEmpty(selectMap[d.courseInfoParentId])) {
|
|
|
|
|
var h = htm;
|
|
|
|
|
|
|
|
|
|
if (!$.isEmpty(courseInfoMap[d.courseInfoParentParentId])) {
|
|
|
|
|
$.each(courseInfoMap[d.courseInfoParentParentId].children, function (key, v) {
|
|
|
|
|
h += "<option value='" + v.courseInfoId + "'>" + v.courseInfoName + "</option>";
|
|
|
|
|