From 43d582ece56e1b4641c86b16e8243b7d054af00f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A7=9A=E4=B8=B9ab?= <1421553879@qq.com> Date: Mon, 14 Aug 2023 16:50:34 +0800 Subject: [PATCH] =?UTF-8?q?=E9=99=A2=E6=A0=A1=E6=9D=83=E9=99=90=E8=AE=BE?= =?UTF-8?q?=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../add.html | 25 +++++++++++++++---- 1 file changed, 20 insertions(+), 5 deletions(-) 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 @@ </table> </div> <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> </ul> <div style="text-align: center;margin-top: 100px;"> @@ -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 + "】开始时间!", {