From b2f311d02b4ce8a1dc11a782f97297b1e1fbd28b Mon Sep 17 00:00:00 2001 From: 马宇豪 <978517621@qq.com> Date: 星期三, 19 六月 2024 09:15:50 +0800 Subject: [PATCH] 添加 --- src/main/resources/templates/tr/TBSpecialCheckScoreAndDangerLog/add.html | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/src/main/resources/templates/tr/TBSpecialCheckScoreAndDangerLog/add.html b/src/main/resources/templates/tr/TBSpecialCheckScoreAndDangerLog/add.html index 25f77f0..9674d47 100644 --- a/src/main/resources/templates/tr/TBSpecialCheckScoreAndDangerLog/add.html +++ b/src/main/resources/templates/tr/TBSpecialCheckScoreAndDangerLog/add.html @@ -57,8 +57,13 @@ <th:block th:include="include :: footer"/> <th:block th:include="include :: datetimepicker-js"/> <script type="text/javascript"> + var prefix = ctx + "tr/TBSpecialCheckScoreAndDangerLog"; + var now = new Date(); + var hour = now.getHours(); //获取当前小时数(0-23) + var minute = now.getMinutes(); //获取当前分钟数(0-59) + var second = now.getSeconds(); //获取当前秒数(0-59) $("input[name='checkDate']").datetimepicker({ - format: "yyyy-mm-dd", + format: "yyyy-mm-dd" + ' ' + hour.toString().padStart(2, '0') + ':' + minute.toString().padStart(2, '0') + ':' + second.toString().padStart(2, '0'), minView: "month", autoclose: true }); -- Gitblit v1.9.2