@ -17,7 +17,28 @@
table th, table td {
table th, table td {
text-align: center !important;
text-align: center !important;
}
}
.fix_bar {
position: fixed;
right: 15px;
bottom: 15px;
z-index: 9999;
cursor: pointer;
}
.layui-fixbar-top {
font-size: 35px;
background-color: rgba(0, 0, 0, .3);
cursor: pointer;
}
.layui-fixbar-down {
font-size: 35px;
background-color: rgba(0, 0, 0, .3);
cursor: pointer;
}
< / style >
< / style >
< form class = "layui-form" id = "addForm" >
< form class = "layui-form" id = "addForm" >
< div class = "layui-row" >
< div class = "layui-row" >
< div class = "layui-form-item" >
< div class = "layui-form-item" >
@ -26,191 +47,204 @@
< / div >
< / div >
< / div >
< / div >
< / div >
< / div >
< div class = "layui-row" >
< div class = "layui-form-item" >
< div class = "layui-inline" >
< label class = "layui-form-label" > 授权院校:< / label >
< div class = "layui-input-inline" >
<!-- #if(universitiesCollegesId!=null){ -->
< input name = "universitiesCollegesId" value = "${universitiesCollegesId}" type = "hidden" >
< div class = "layui-form-mid" > ${universitiesCollegesName}< div >
<!-- #}else{ -->
<!-- 时间久远,忘记这里是干啥的,先注释吧 -->
<!-- universities_colleges.universities_colleges_name.universities_colleges_status=1,not find_in_set(universities_colleges_id,IFNULL((SELECT group_concat(universities_colleges_id) FROM universities_colleges_jurisdiction_experimental_system WHERE FIND_IN_SET(use_type,'1,2')), - 1)) -->
< layui:simpleDictSelect style = 'layui-input-inline' value = "${universitiesCollegesId}"
type="universities_colleges.universities_colleges_name.universities_colleges_status=1"
id="universitiesCollegesId" name="universitiesCollegesId"
layFilter="select_universitiesColleges"/>
<!-- #} -->
< / div >
< / div >
< / div >
< / div >
< div class = "layui-row" >
< div class = "layui-row" >
< div class = "layui-form-item" >
< div class = "layui-form-item" >
< div class = "layui-inline" >
< div class = "layui-inline" >
实验系统:
< label class = "layui-form-label" > 授权院校:< / label >
< button type = "button" class = "layui-btn bg plsz" index = "1" > 批量设置< / button >
< div class = "layui-input-inline" >
<!-- #if(universitiesCollegesId!=null){ -->
< input name = "universitiesCollegesId" value = "${universitiesCollegesId}" type = "hidden" >
< div class = "layui-form-mid" > ${universitiesCollegesName}
< div >
<!-- #}else{ -->
<!-- 时间久远,忘记这里是干啥的,先注释吧 -->
<!-- universities_colleges.universities_colleges_name.universities_colleges_status=1,not find_in_set(universities_colleges_id,IFNULL((SELECT group_concat(universities_colleges_id) FROM universities_colleges_jurisdiction_experimental_system WHERE FIND_IN_SET(use_type,'1,2')), - 1)) -->
< layui:simpleDictSelect style = 'layui-input-inline' value = "${universitiesCollegesId}"
type="universities_colleges.universities_colleges_name.universities_colleges_status=1"
id="universitiesCollegesId" name="universitiesCollegesId"
layFilter="select_universitiesColleges"/>
<!-- #} -->
< / div >
< / div >
< / div >
< / div >
< / div >
< / div >
< div class = "layui-row" >
< / div >
< div class = "layui-form-item" >
< div class = "layui-row" >
< div class = "layui-inline" >
< table class = "layui-table" id = "syTable" >
实验系统:
< colgroup >
< button type = "button" class = "layui-btn bg plsz" index = "1" > 批量设置< / button >
< col width = "80" >
< / div >
< col width = "300" >
< / div >
< col width = "150" >
< / div >
< col width = "200" >
< div class = "layui-row" >
< col width = "200" >
< table class = "layui-table" id = "syTable" >
< col >
< colgroup >
< / colgroup >
< col width = "80" >
< thead >
< col width = "300" >
< tr >
< col width = "150" >
< th > < input type = "checkbox" name = "allSelect_1" lay-skin = "primary" lay-filter = "allSelect_1" > < / th >
< col width = "200" >
< th > 应用名称< / th >
< col width = "200" >
< th > 使用层次< / th >
< col >
< th > 开始时间< / th >
< / colgroup >
< th > 结束时间< / th >
< thead >
< th > 子系统< br / > 登录页logo设计< / th >
< tr >
< th > 子系统logo设计< / th >
< th > < input type = "checkbox" name = "allSelect_1" lay-skin = "primary" lay-filter = "allSelect_1" > < / th >
< th > 子系统底栏名称< / th >
< th > 应用名称< / th >
< / tr >
< th > 使用层次< / th >
< / thead >
< th > 开始时间< / th >
< tbody id = "uje_view" > < / tbody >
< th > 结束时间< / th >
< script id = "uje_demo" type = "text/html" >
< th > 子系统< br / > 登录页logo设计< / th >
{{# layui.each(d.list, function(index, item){ }}
< th > 子系统logo设计< / th >
< tr index = "{{index}}" >
< th > 子系统底栏名称< / th >
< td > < input type = "checkbox" name = "xt_id" { { item . useType ! = null & & item . useType ! = 0 ? ' checked ' : ' ' } }
< / tr >
lay-skin="primary" lay-filter="select_xt" value="{{item.typeId}}">< / td >
< / thead >
< td > {{item.applicationName}}< / td >
< tbody id = "uje_view" > < / tbody >
< td >
< script id = "uje_demo" type = "text/html" >
< select name = "useType" lay-filter = "select_useType_1" >
{{# layui.each(d.list, function(index, item){ }}
< option value = "0" > 请选择< / option >
< tr index = "{{index}}" >
< option value = "1" { { item . useType = ='1'?'selected':''}} > 购买< / option >
< td > < input type = "checkbox" name = "xt_id" { { item . useType ! = null & & item . useType
< option value = "2" { { item . useType = ='2'?'selected':''}} > 试用< / option >
!=0?'checked':''}}
< / select >
lay-skin="primary" lay-filter="select_xt" value="{{item.typeId}}">< / td >
< / td >
< td > {{item.applicationName}}< / td >
< td >
< td >
< input type = "text" autocomplete = "off" id = "useStartTime_xt_{{index}}"
< select name = "useType" lay-filter = "select_useType_1" >
value="{{Common.getDate(item.useStartTime,'yyyy-MM-dd HH:mm')}}" name="useStartTime"
< option value = "0" > 请选择< / option >
class="layui-input"/>
< option value = "1" { { item . useType = ='1'?'selected':''}} > 购买< / option >
< / td >
< option value = "2" { { item . useType = ='2'?'selected':''}} > 试用< / option >
< td >
< / select >
< input type = "text" autocomplete = "off" id = "useEndTime_xt_{{index}}"
< / td >
value="{{Common.getDate(item.useEndTime,'yyyy-MM-dd HH:mm')}}" name="useEndTime"
< td >
class="layui-input"/>
< input type = "text" autocomplete = "off" id = "useStartTime_xt_{{index}}"
< / td >
value="{{Common.getDate(item.useStartTime,'yyyy-MM-dd HH:mm')}}"
< td >
name="useStartTime"
{{#if(!$.isEmpty(item.subsystemIndexLogo)){}}
class="layui-input"/>
< img id = "subsystemIndexLogo_xt_{{index}}" src = "${ctxPath}{{item.subsystemIndexLogo}}" / >
< / td >
{{#}else{}}
< td >
< i class = "iconfont" id = "subsystemIndexLogo_xt_{{index}}"
< input type = "text" autocomplete = "off" id = "useEndTime_xt_{{index}}"
style="font-size: 30px;color: #73a2f8;"> < / i >
value="{{Common.getDate(item.useEndTime,'yyyy-MM-dd HH:mm')}}" name="useEndTime"
{{#}}}
class="layui-input"/>
< / td >
< / td >
< td >
< td >
{{#if(!$.isEmpty(item.subsystemLogo)){}}
{{#if(!$.isEmpty(item.subsystemIndexLogo)){}}
< img id = "subsystemLogo_xt_{{index}}" src = "${ctxPath}{{item.subsystemLogo}}" / >
< img id = "subsystemIndexLogo_xt_{{index}}" src = "${ctxPath}{{item.subsystemIndexLogo}}" / >
{{#}else{}}
{{#}else{}}
< i class = "iconfont" id = "subsystemLogo_xt_{{index}}" style = "font-size: 30px;color: #73a2f8;" >  < / i >
< i class = "iconfont" id = "subsystemIndexLogo_xt_{{index}}"
{{#}}}
style="font-size: 30px;color: #73a2f8;"> < / i >
< / td >
{{#}}}
< td >
< / td >
< td >
{{#if(!$.isEmpty(item.subsystemLogo)){}}
< img id = "subsystemLogo_xt_{{index}}" src = "${ctxPath}{{item.subsystemLogo}}" / >
{{#}else{}}
< i class = "iconfont" id = "subsystemLogo_xt_{{index}}"
style="font-size: 30px;color: #73a2f8;"> < / i >
{{#}}}
< / td >
< td >
< textarea name = "subsystemBottomBar" style = "min-height: 30px;"
< textarea name = "subsystemBottomBar" style = "min-height: 30px;"
id="subsystemBottomBar_xt_{{index}}" placeholder="请输入内容" class="layui-textarea">
id="subsystemBottomBar_xt_{{index}}" placeholder="请输入内容" class="layui-textarea">
{{item.subsystemBottomBar || ''}}
{{item.subsystemBottomBar || ''}}
< / textarea >
< / textarea >
< / td >
< / td >
< / tr >
< / tr >
{{# }); }}
{{# }); }}
{{# if(d.list.length < = 0){ }}
{{# if(d.list.length < = 0){ }}
< tr >
< tr >
< td colspan = "7" >
< td colspan = "7" >
< div class = "layui-none" > 无数据< / div >
< div class = "layui-none" > 无数据< / div >
< / td >
< / td >
< / tr >
< / tr >
{{# } }}
{{# } }}
< / script >
< / script >
< / table >
< / table >
< / div >
< div class = "layui-row" >
< div class = "layui-form-item" >
< div class = "layui-inline" >
课程资源:
< button type = "button" class = "layui-btn bg plsz" index = "2" > 批量设置< / button >
< / div >
< / div >
< / div >
< / div >
< div class = "layui-row" >
< table class = "layui-table" >
< colgroup >
< col width = "80" >
< col width = "300" >
< col width = "150" >
< col width = "200" >
< col width = "200" >
< col >
< / colgroup >
< thead >
< tr >
< th > < input type = "checkbox" name = "allSelect_2" lay-skin = "primary" lay-filter = "allSelect_2" > < / th >
< th > 课程名称< / th >
< th > 使用层次< / th >
< th > 开始时间< / th >
< th > 结束时间< / th >
< th > 二级课程名设置< / th >
< th > 二级课程logo设置< / th >
< / tr >
< / thead >
< tbody id = "ujr_view" > < / tbody >
< script id = "ujr_demo" type = "text/html" >
{{# layui.each(d.list, function(index, item){ }}
< tr index = "{{index}}" >
< td > < input type = "checkbox" name = "kc_id" { { item . useType ! = null & & item . useType ! = 0 ? ' checked ' : ' ' } }
lay-skin="primary" lay-filter="select_kc">< / td >
< td > {{item.courseInfoName}}< / td >
< td >
< select name = "useType" lay-filter = "select_useType_2" >
< option value = "0" > 请选择< / option >
< option value = "1" { { item . useType = ='1'?'selected':''}} > 购买< / option >
< option value = "2" { { item . useType = ='2'?'selected':''}} > 试用< / option >
< / select >
< / td >
< td >
< input type = "text" autocomplete = "off" id = "useStartTime_kc_{{index}}"
value="{{Common.getDate(item.useStartTime,'yyyy-MM-dd HH:mm')}}" name="useStartTime"
class="layui-input"/>
< / td >
< td >
< input type = "text" autocomplete = "off" id = "useEndTime_kc_{{index}}"
value="{{Common.getDate(item.useEndTime,'yyyy-MM-dd HH:mm')}}" name="useEndTime"
class="layui-input"/>
< / td >
< td > < input name = "secondLevelName" type = "text" id = "secondLevelName_kc_{{index}}"
value="{{item.secondLevelName || ''}}" class="layui-input"/>< / td >
< td >
{{#if(!$.isEmpty(item.secondLevelLogo)){}}
< img id = "secondLevelLogo_kc_{{index}}" src = "${ctxPath}{{item.secondLevelLogo}}" / >
{{#}else{}}
< i class = "iconfont" id = "secondLevelLogo_kc_{{index}}" style = "font-size: 30px;color: #73a2f8;" >  < / i >
{{#}}}
< / td >
< / tr >
{{# }); }}
{{# if(d.list.length < = 0){ }}
< tr >
< td colspan = "7" >
< div class = "layui-none" > 无数据< / div >
< / td >
< / tr >
{{# } }}
< / script >
< / table >
< / div >
< div style = "text-align: center;margin-top: 100px;" > < layui:submitButtons id = "addButton" buttonType = "" / > < / div >
< div class = "layui-row" >
< div class = "layui-form-item" >
< div class = "layui-inline" >
课程资源:
< button type = "button" class = "layui-btn bg plsz" index = "2" > 批量设置< / button >
< / div >
< / div >
< / div >
< div class = "layui-row" >
< table class = "layui-table" >
< colgroup >
< col width = "80" >
< col width = "300" >
< col width = "150" >
< col width = "200" >
< col width = "200" >
< col >
< / colgroup >
< thead >
< tr >
< th > < input type = "checkbox" name = "allSelect_2" lay-skin = "primary" lay-filter = "allSelect_2" > < / th >
< th > 课程名称< / th >
< th > 使用层次< / th >
< th > 开始时间< / th >
< th > 结束时间< / th >
< th > 二级课程名设置< / th >
< th > 二级课程logo设置< / th >
< / tr >
< / thead >
< tbody id = "ujr_view" > < / tbody >
< script id = "ujr_demo" type = "text/html" >
{{# layui.each(d.list, function(index, item){ }}
< tr index = "{{index}}" >
< td > < input type = "checkbox" name = "kc_id" { { item . useType ! = null & & item . useType
!=0?'checked':''}}
lay-skin="primary" lay-filter="select_kc">< / td >
< td > {{item.courseInfoName}}< / td >
< td >
< select name = "useType" lay-filter = "select_useType_2" >
< option value = "0" > 请选择< / option >
< option value = "1" { { item . useType = ='1'?'selected':''}} > 购买< / option >
< option value = "2" { { item . useType = ='2'?'selected':''}} > 试用< / option >
< / select >
< / td >
< td >
< input type = "text" autocomplete = "off" id = "useStartTime_kc_{{index}}"
value="{{Common.getDate(item.useStartTime,'yyyy-MM-dd HH:mm')}}"
name="useStartTime"
class="layui-input"/>
< / td >
< td >
< input type = "text" autocomplete = "off" id = "useEndTime_kc_{{index}}"
value="{{Common.getDate(item.useEndTime,'yyyy-MM-dd HH:mm')}}" name="useEndTime"
class="layui-input"/>
< / td >
< td > < input name = "secondLevelName" type = "text" id = "secondLevelName_kc_{{index}}"
value="{{item.secondLevelName || ''}}" class="layui-input"/>< / td >
< td >
{{#if(!$.isEmpty(item.secondLevelLogo)){}}
< img id = "secondLevelLogo_kc_{{index}}" src = "${ctxPath}{{item.secondLevelLogo}}" / >
{{#}else{}}
< i class = "iconfont" id = "secondLevelLogo_kc_{{index}}"
style="font-size: 30px;color: #73a2f8;"> < / i >
{{#}}}
< / td >
< / tr >
{{# }); }}
{{# if(d.list.length < = 0){ }}
< tr >
< td colspan = "7" >
< div class = "layui-none" > 无数据< / div >
< / td >
< / tr >
{{# } }}
< / script >
< / table >
< / div >
< ul class = "fix_bar" >
< li class = "layui-icon layui-fixbar-top" id = "to_top" title = "返回顶部" > < i class = "iconfont" >  < / i > < / li >
< li class = "layui-icon layui-fixbar-down" id = "to_bottom" title = "去底部" > < i class = "iconfont" >  < / i >
< / li >
< / ul >
< div style = "text-align: center;margin-top: 100px;" >
< layui:submitButtons id = "addButton" buttonType = "1" text = "确定" / >
< / div >
< / form >
< / form >
<!-- 批量设置 -->
<!-- 批量设置 -->
< div class = "layui-form" id = "batch_dialog" style = "display: none;padding: 20px 50px;" >
< div class = "layui-form" id = "batch_dialog" style = "display: none;padding: 20px 50px;" >
@ -253,6 +287,8 @@
< / div >
< / div >
< / span >
< / span >
< / div >
< / div >
<!-- #} -->
<!-- #} -->
< script >
< script >
layui.define(['form', 'laydate', 'upload', 'laytpl', 'table'], function (exports) {
layui.define(['form', 'laydate', 'upload', 'laytpl', 'table'], function (exports) {
@ -280,10 +316,13 @@
//加载课程数据
//加载课程数据
function loadkcInfo() {
function loadkcInfo() {
var typeIds = '';
var typeIds = '';
$("input[name='xt_id']:checked").each(function (obj) {typeIds += obj+',';});
$("input[name='xt_id']:checked").each(function (obj) {
typeIds += obj + ',';
});
var ret = Common.getAjax("/jlw/universitiesCollegesJurisdictionCurriculumResources/getAllByQuery.json", {
var ret = Common.getAjax("/jlw/universitiesCollegesJurisdictionCurriculumResources/getAllByQuery.json", {
applicationIds:typeIds.substring(0,typeIds.length-1)
applicationIds: typeIds.substring(0, typeIds.length - 1)
});//获取课程系统 universitiesCollegesId: $("select[name='universitiesCollegesId']").val() || onUniversitiesCollegesId,
});//获取课程系统 universitiesCollegesId: $("select[name='universitiesCollegesId']").val() || onUniversitiesCollegesId,
kcList = ret.data;
kcList = ret.data;
loadujr(kcList);
loadujr(kcList);
@ -317,7 +356,7 @@
//系统单选
//系统单选
form.on('checkbox(select_xt)', function (obj) {
form.on('checkbox(select_xt)', function (obj) {
if($.isEmpty($("select[name='universitiesCollegesId']").val())& & $.isEmpty(onUniversitiesCollegesId)){
if ($.isEmpty($("select[name='universitiesCollegesId']").val()) & & $.isEmpty(onUniversitiesCollegesId)) {
$("input[name='xt_id']").prop("checked", false);
$("input[name='xt_id']").prop("checked", false);
loadxtInfo();
loadxtInfo();
Common.info("请选择授权院校!!!");
Common.info("请选择授权院校!!!");
@ -521,7 +560,7 @@
//系统全选
//系统全选
form.on('checkbox(allSelect_1)', function (obj) {
form.on('checkbox(allSelect_1)', function (obj) {
if($.isEmpty($("select[name='universitiesCollegesId']").val())& & $.isEmpty(onUniversitiesCollegesId)){
if ($.isEmpty($("select[name='universitiesCollegesId']").val()) & & $.isEmpty(onUniversitiesCollegesId)) {
$("input[name='allSelect_1']").prop("checked", false);
$("input[name='allSelect_1']").prop("checked", false);
loadxtInfo();
loadxtInfo();
Common.info("请选择授权院校!!!");
Common.info("请选择授权院校!!!");
@ -685,7 +724,7 @@
};
};
var ret;
var ret;
setTimeout(function () {
setTimeout(function () {
ret= Common.postAjax("/jlw/universitiesCollegesJurisdictionExperimentalSystem/addAll.json", param);
ret = Common.postAjax("/jlw/universitiesCollegesJurisdictionExperimentalSystem/addAll.json", param);
layer.msg(ret.code == 0 ? "保存成功!" : ret.msg, {
layer.msg(ret.code == 0 ? "保存成功!" : ret.msg, {
offset: ['50%'],
offset: ['50%'],
icon: ret.code == 0 ? 1 : 2,
icon: ret.code == 0 ? 1 : 2,
@ -705,6 +744,31 @@
$("#addButton-cancel").click(function () {
$("#addButton-cancel").click(function () {
Lib.closeFrame();
Lib.closeFrame();
});
});
//回到顶部
$("#to_top").click(function () {
$("html,body").animate({scrollTop: 0}, 200);
});
$(document).scroll(function () {
var scroll_top = $(document).scrollTop();
if (scroll_top > 800) {
$("#to_top").show();
} else {
$("#to_top").hide();
}
});
//去底部
$("#to_bottom").click(function () {
$("html,body").animate({scrollTop: document.body.clientHeight + 'px'}, 200);
});
$(document).scroll(function () {
var scroll_top = $(document).scrollTop();
if (scroll_top < 800 ) {
$("#to_bottom").show();
} else {
$("#to_bottom").hide();
}
});
});
});
< / script >
< / script >