beetlsql3-dev
姚丹ab 2 years ago
parent 75f35c13d0
commit 4c13712cf7

@ -338,8 +338,6 @@
var element = layui.element; var element = layui.element;
$(".menu_three").on("click", function () { $(".menu_three").on("click", function () {
$(this).next().toggle(500); $(this).next().toggle(500);
$(".three_this").removeClass("three_this"); $(".three_this").removeClass("three_this");
@ -354,7 +352,6 @@
$(this).addClass('three_this'); // 添加当前元素的样式 $(this).addClass('three_this'); // 添加当前元素的样式
}); });
//webSocket.openSocket($("input[name='webSocketServer']").val(),$("#userId").val(),"index"); //调用socket请求 //webSocket.openSocket($("input[name='webSocketServer']").val(),$("#userId").val(),"index"); //调用socket请求
/*院校登录logo*/ /*院校登录logo*/
@ -411,7 +408,7 @@
} else { } else {
$("#fsLeftMenu .menu_three").parent().removeClass("layui-this"); $("#fsLeftMenu .menu_three").parent().removeClass("layui-this");
$("#fsLeftMenu a[menuId=" + layId + "]").parent().addClass('layui-this'); $("#fsLeftMenu a[menuId=" + layId + "]").parent().addClass('layui-this');
console.log(layId, url, title) //console.log(layId, url, title)
openNewPage(layId, url, title); openNewPage(layId, url, title);
} }
}; };
@ -523,7 +520,6 @@
//打开新的title //打开新的title
function openNewPage(layId, url, title) { function openNewPage(layId, url, title) {
var layId = layId;//来电管理ID var layId = layId;//来电管理ID
var dataUrl = Common.ctxPath + url; var dataUrl = Common.ctxPath + url;
var title = title; var title = title;

@ -375,9 +375,10 @@
adminIndexDetailData = ret.data; adminIndexDetailData = ret.data;
layer.close(index); layer.close(index);
}else { }else {
Common.info(ret.msg) Common.info(ret.msg);
layer.close(index); layer.close(index);
} }
$(".pace-activity").hide();
$("#universitiesCollegesAuthCode").text(adminIndexDetailData.universitiesCollegesAuthCode.toString()); $("#universitiesCollegesAuthCode").text(adminIndexDetailData.universitiesCollegesAuthCode.toString());
laytpl(getTpl).render(adminIndexDetailData, function (html) { laytpl(getTpl).render(adminIndexDetailData, function (html) {
view.innerHTML = html; view.innerHTML = html;

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

Loading…
Cancel
Save