diff --git a/web/src/main/resources/templates/jlw/universitiesCollegesJurisdictionExperimentalSystem/add.html b/web/src/main/resources/templates/jlw/universitiesCollegesJurisdictionExperimentalSystem/add.html index 95770faf..eff2a6ff 100644 --- a/web/src/main/resources/templates/jlw/universitiesCollegesJurisdictionExperimentalSystem/add.html +++ b/web/src/main/resources/templates/jlw/universitiesCollegesJurisdictionExperimentalSystem/add.html @@ -239,7 +239,7 @@
@@ -428,11 +428,22 @@ //开始结束时间 function loadTime(id,data) { var timeValue = data.useStartTime; + if(data.useType == 0 || $.isEmpty(data.useType)){ var timeValue = Common.getNowDate(0) + ' 00:00:00'; if(id.indexOf("useEndTime") > -1){ 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 { if(id.indexOf("useEndTime") > -1){ timeValue = data.useEndTime; @@ -457,6 +468,7 @@ } } }); + } //上传logo @@ -618,16 +630,18 @@ } var t = true,experimentalSystemList = [], //系统授权list curriculumResourcesList = []; //课程授权 + $("input[name='xt_id']").each(function (i) { if ($(this).prop("checked")) { if ($.isEmpty(xtList[i].useType)) { - layer.msg("请选择实验系统【" + xtList[i].applicationName + "】使用层次!", { + xtList[i].useType = 1; + /*layer.msg("请选择实验系统【" + xtList[i].applicationName + "】使用层次!", { offset: ['50%'], icon: 2, time: 1500 //2秒关闭(如果不配置,默认是3秒) }); t = false; - return false; + return false;*/ } if ($.isEmpty(xtList[i].useStartTime)) { layer.msg("请选择实验系统【" + xtList[i].applicationName + "】开始时间!", { @@ -657,13 +671,14 @@ $("input[name='kc_id']").each(function (i) { if ($(this).prop("checked")) { if ($.isEmpty(kcList[i].useType)) { - layer.msg("请选择课程系统【" + kcList[i].courseInfoName + "】使用层次!", { + kcList[i].useType = 1; + /*layer.msg("请选择课程系统【" + kcList[i].courseInfoName + "】使用层次!", { offset: ['50%'], icon: 2, time: 1500 //2秒关闭(如果不配置,默认是3秒) }); t = false; - return false; + return false;*/ } if ($.isEmpty(kcList[i].useStartTime)) { layer.msg("请选择课程系统【" + kcList[i].courseInfoName + "】开始时间!", {