From a34ac36500832292067b1a6f0a11824ff4d551ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A7=9A=E4=B8=B9ab?= <1421553879@qq.com> Date: Sun, 18 Dec 2022 22:16:05 +0800 Subject: [PATCH] =?UTF-8?q?=E7=B3=BB=E7=BB=9F=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/resources/static/js/common.js | 35 ++++ .../jlw/teacher/statisticalReport.html | 83 +++++++-- .../templates/jlw/teacher/studentLogin.html | 168 +++++++++++++----- .../jlw/teacher/studentUsageLog.html | 83 +++++++-- 4 files changed, 288 insertions(+), 81 deletions(-) diff --git a/admin-core/src/main/resources/static/js/common.js b/admin-core/src/main/resources/static/js/common.js index 792f8559..9c05bbc8 100644 --- a/admin-core/src/main/resources/static/js/common.js +++ b/admin-core/src/main/resources/static/js/common.js @@ -291,6 +291,41 @@ var Common = { } }, + getNowDate: function (date, pattern) {//获取当前时间 + var d = new Date(); + + var year = d.getFullYear(); //获取年 + + var month = d.getMonth() + 1; //获取月,从 Date 对象返回月份 (0 ~ 11),故在此处+1 + + var day = d.getDay(); //获取日 + + var days = d.getDate(); //获取日期 + + var hour = d.getHours(); //获取小时 + + var minute = d.getMinutes(); //获取分钟 + + var second = d.getSeconds(); //获取秒 + + if (month < 10) month = "0" + month; + + if (days < 10) days = "0" + days; + + if (hour < 10) hour = "0" + hour; + + if (minute < 10) minute = "0" + minute; + + if (second < 10) second = "0" + second; + + var week = new Array("星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六") + + var Tools = document.getElementById("Main"); + + var da = year + "-" +month+ "-" + days + " " + "00:00:00"; + //var da=year+" 年 "+month+" 月 "+days+" 日 "+week[day]+" "+hour+" : "+minute+" :"+second + return da; + }, post: function (url, paras, next) { $.ajax({ url: Common.ctxPath + url, diff --git a/web/src/main/resources/templates/jlw/teacher/statisticalReport.html b/web/src/main/resources/templates/jlw/teacher/statisticalReport.html index bb5f9832..e829afe9 100644 --- a/web/src/main/resources/templates/jlw/teacher/statisticalReport.html +++ b/web/src/main/resources/templates/jlw/teacher/statisticalReport.html @@ -12,11 +12,35 @@ white-space: nowrap;text-overflow:ellipsis;line-height: 37px;font-size: 16px;padding-left: 10px;width: auto;min-width: 200px;max-width: 300px;overflow: hidden;height: 37px; } -