From 5bc66d568ea4b12d23dd181fd74a17e2845f3d7d Mon Sep 17 00:00:00 2001
From: 16639036659 <577530412@qq.com>
Date: 星期三, 17 七月 2024 16:43:36 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'

---
 src/main/resources/templates/tr/TBSpecialCheckScoreAndDangerLog/edit.html |   15 +++++++++++----
 1 files changed, 11 insertions(+), 4 deletions(-)

diff --git a/src/main/resources/templates/tr/TBSpecialCheckScoreAndDangerLog/edit.html b/src/main/resources/templates/tr/TBSpecialCheckScoreAndDangerLog/edit.html
index 947cfd1..2aca93a 100644
--- a/src/main/resources/templates/tr/TBSpecialCheckScoreAndDangerLog/edit.html
+++ b/src/main/resources/templates/tr/TBSpecialCheckScoreAndDangerLog/edit.html
@@ -3,12 +3,15 @@
 <head>
     <th:block th:include="include :: header('检查项评分')"/>
     <th:block th:include="include :: datetimepicker-css"/>
+    <th:block th:include="include :: select2-css" />
 </head>
 <body class="white-bg">
 <div class="wrapper wrapper-content animated fadeInRight ibox-content">
     <form class="form-horizontal m" id="form-job-edit" th:object="${specialCheckItem}">
         <input id="indexId" name="indexId" type="hidden" th:field="*{indexId}"/>
-
+        <input class="form-control" th:field="*{checkItemId}" type="hidden" name="checkItemId" id="checkItemId" required>
+        <input class="form-control" th:field="*{checkScoreId}" type="hidden" name="checkScoreId" id="checkScoreId" required>
+        <input class="form-control" th:field="*{taskId}" type="hidden" name="taskId" id="taskId" required>
 
 <!--        <input id="createUserId" name="createUserId" type="hidden" th:field="*{createUserId}"/>-->
 <!--        <input id="createBy" name="createBy" type="hidden" th:field="*{createBy}"/>-->
@@ -37,7 +40,7 @@
             <div class="col-sm-8">
                 <div class="input-group date">
                     <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
-                    <input name="checkDate" th:value="${#dates.format(specialCheckItem.checkDate, 'yyyy-MM-dd')}" class="form-control" type="text" required>
+                    <input name="checkDate" th:value="${#dates.format(specialCheckItem.checkDate, 'yyyy-MM-dd HH:mm:ss')}" class="form-control" type="text" required>
                 </div>
             </div>
         </div>
@@ -63,15 +66,19 @@
 </div>
 <th:block th:include="include :: footer"/>
 <th:block th:include="include :: datetimepicker-js"/>
+<th:block th:include="include :: select2-js" />
 <script th:inline="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" + ' ' + '12:00:00',
         minView: "month",
         autoclose: true
     });
-
 
     $("#form-job-edit").validate({
         onkeyup: false,

--
Gitblit v1.9.2