院校权限设置

beetlsql3-dev
姚丹ab 2 years ago
parent 82ab5f599b
commit 43d582ece5

@ -239,7 +239,7 @@
</table> </table>
</div> </div>
<ul class="fix_bar"> <ul class="fix_bar">
<li class="layui-icon layui-fixbar-top" id="to_top" title="返回顶部"><i class="layui-icon layui-icon-top" style="font-size: 35px;"></i></li> <li class="layui-icon layui-fixbar-top" id="to_top" title="返回顶部"><i class="layui-icon layui-icon-up" style="font-size: 35px;"></i></li>
<li class="layui-icon layui-fixbar-down" id="to_bottom" title="去底部"><i class="layui-icon layui-icon-down" style="font-size: 35px;"></i></li> <li class="layui-icon layui-fixbar-down" id="to_bottom" title="去底部"><i class="layui-icon layui-icon-down" style="font-size: 35px;"></i></li>
</ul> </ul>
<div style="text-align: center;margin-top: 100px;"> <div style="text-align: center;margin-top: 100px;">
@ -428,11 +428,22 @@
//开始结束时间 //开始结束时间
function loadTime(id,data) { function loadTime(id,data) {
var timeValue = data.useStartTime; var timeValue = data.useStartTime;
if(data.useType == 0 || $.isEmpty(data.useType)){ if(data.useType == 0 || $.isEmpty(data.useType)){
var timeValue = Common.getNowDate(0) + ' 00:00:00'; var timeValue = Common.getNowDate(0) + ' 00:00:00';
if(id.indexOf("useEndTime") > -1){ if(id.indexOf("useEndTime") > -1){
timeValue = Common.getNowDate(1095) + ' 00:00:00';; timeValue = Common.getNowDate(1095) + ' 00:00:00';;
} }
var i = $("#" + id).parents("tr").attr("index");//当前编辑行号
if (id.indexOf("useStartTime_xt") >= 0) {
xtList[i].useStartTime = timeValue;
} else if (id.indexOf("useEndTime_xt") >= 0) {
xtList[i].useEndTime = timeValue;
} else if (id.indexOf("useStartTime_kc") >= 0) {
kcList[i].useStartTime = timeValue;
} else if (id.indexOf("useEndTime_kc") >= 0) {
kcList[i].useEndTime = timeValue;
}
}else { }else {
if(id.indexOf("useEndTime") > -1){ if(id.indexOf("useEndTime") > -1){
timeValue = data.useEndTime; timeValue = data.useEndTime;
@ -457,6 +468,7 @@
} }
} }
}); });
} }
//上传logo //上传logo
@ -618,16 +630,18 @@
} }
var t = true,experimentalSystemList = [], //系统授权list var t = true,experimentalSystemList = [], //系统授权list
curriculumResourcesList = []; //课程授权 curriculumResourcesList = []; //课程授权
$("input[name='xt_id']").each(function (i) { $("input[name='xt_id']").each(function (i) {
if ($(this).prop("checked")) { if ($(this).prop("checked")) {
if ($.isEmpty(xtList[i].useType)) { if ($.isEmpty(xtList[i].useType)) {
layer.msg("请选择实验系统【" + xtList[i].applicationName + "】使用层次!", { xtList[i].useType = 1;
/*layer.msg("请选择实验系统【" + xtList[i].applicationName + "】使用层次!", {
offset: ['50%'], offset: ['50%'],
icon: 2, icon: 2,
time: 1500 //2秒关闭如果不配置默认是3秒 time: 1500 //2秒关闭如果不配置默认是3秒
}); });
t = false; t = false;
return false; return false;*/
} }
if ($.isEmpty(xtList[i].useStartTime)) { if ($.isEmpty(xtList[i].useStartTime)) {
layer.msg("请选择实验系统【" + xtList[i].applicationName + "】开始时间!", { layer.msg("请选择实验系统【" + xtList[i].applicationName + "】开始时间!", {
@ -657,13 +671,14 @@
$("input[name='kc_id']").each(function (i) { $("input[name='kc_id']").each(function (i) {
if ($(this).prop("checked")) { if ($(this).prop("checked")) {
if ($.isEmpty(kcList[i].useType)) { if ($.isEmpty(kcList[i].useType)) {
layer.msg("请选择课程系统【" + kcList[i].courseInfoName + "】使用层次!", { kcList[i].useType = 1;
/*layer.msg("请选择课程系统【" + kcList[i].courseInfoName + "】使用层次!", {
offset: ['50%'], offset: ['50%'],
icon: 2, icon: 2,
time: 1500 //2秒关闭如果不配置默认是3秒 time: 1500 //2秒关闭如果不配置默认是3秒
}); });
t = false; t = false;
return false; return false;*/
} }
if ($.isEmpty(kcList[i].useStartTime)) { if ($.isEmpty(kcList[i].useStartTime)) {
layer.msg("请选择课程系统【" + kcList[i].courseInfoName + "】开始时间!", { layer.msg("请选择课程系统【" + kcList[i].courseInfoName + "】开始时间!", {

Loading…
Cancel
Save