From 58a0b166aa92ac699a469f12745728b30769c093 Mon Sep 17 00:00:00 2001
From: 马宇豪 <978517621@qq.com>
Date: 星期三, 29 十一月 2023 10:25:04 +0800
Subject: [PATCH] 修改时间显示

---
 src/main/resources/templates/tr/hiddenDangerCheck/dangerReport/addDangerReportWholeProcess.html |   12 ++++++------
 src/main/resources/templates/tr/hiddenDangerCheck/dangerReport/detailYesDanger.html             |    3 ++-
 src/main/resources/templates/tr/hiddenDangerCheck/dangerReport/editJudgeDangerReport.html       |    6 +++++-
 src/main/resources/templates/tr/hiddenDangerCheck/dangerReport/detailNotJudge.html              |    3 ++-
 4 files changed, 15 insertions(+), 9 deletions(-)

diff --git a/src/main/resources/templates/tr/hiddenDangerCheck/dangerReport/addDangerReportWholeProcess.html b/src/main/resources/templates/tr/hiddenDangerCheck/dangerReport/addDangerReportWholeProcess.html
index 970fa84..47522e9 100644
--- a/src/main/resources/templates/tr/hiddenDangerCheck/dangerReport/addDangerReportWholeProcess.html
+++ b/src/main/resources/templates/tr/hiddenDangerCheck/dangerReport/addDangerReportWholeProcess.html
@@ -541,12 +541,6 @@
         });
     }
 
-    $("input[name='findTime']").datetimepicker({
-        format: "yyyy-mm-dd",
-        minView: "month",
-        autoclose: true
-    });
-
     /*核查人  选择 start*/
     function selectExamineUser() {
         var url = ctx + "system/user/selectUserListByParentSonCompany";
@@ -706,6 +700,11 @@
             format: "yyyy-mm-dd hh:ii",
             autoclose: true
         });
+        $("input[name='findTime']").datetimepicker({
+            format: "yyyy-mm-dd",
+            minView: "month",
+            autoclose: true
+        });
     });
 
 
@@ -796,6 +795,7 @@
     //         }
     //     });
     // });
+
     layui.use('upload', function() {
         var $ = layui.jquery;
         upload = layui.upload;
diff --git a/src/main/resources/templates/tr/hiddenDangerCheck/dangerReport/detailNotJudge.html b/src/main/resources/templates/tr/hiddenDangerCheck/dangerReport/detailNotJudge.html
index f69051c..35ea4bd 100644
--- a/src/main/resources/templates/tr/hiddenDangerCheck/dangerReport/detailNotJudge.html
+++ b/src/main/resources/templates/tr/hiddenDangerCheck/dangerReport/detailNotJudge.html
@@ -137,7 +137,8 @@
                 <div class="form-group">
                     <label class="col-sm-4 control-label  ">隐患发现时间:</label>
                     <div class="col-sm-8">
-                        <input th:value="*{findTime}" class="form-control" type="text" readonly="readonly">
+                        <input th:value="${#dates.format(hiddenDangerCheckPoint.findTime,'yyyy-MM-dd')}"
+                               class="form-control" type="text" readonly="readonly">
                     </div>
                 </div>
             </div>
diff --git a/src/main/resources/templates/tr/hiddenDangerCheck/dangerReport/detailYesDanger.html b/src/main/resources/templates/tr/hiddenDangerCheck/dangerReport/detailYesDanger.html
index ecb77aa..0639993 100644
--- a/src/main/resources/templates/tr/hiddenDangerCheck/dangerReport/detailYesDanger.html
+++ b/src/main/resources/templates/tr/hiddenDangerCheck/dangerReport/detailYesDanger.html
@@ -190,7 +190,8 @@
                 <div class="form-group">
                     <label class="col-sm-4 control-label  ">隐患发现时间:</label>
                     <div class="col-sm-8">
-                        <input th:value="*{findTime}" class="form-control" type="text" readonly="readonly">
+                        <input th:value="${#dates.format(hiddenDangerCheckPoint.findTime,'yyyy-MM-dd')}"
+                               class="form-control" type="text" readonly="readonly">
                     </div>
                 </div>
             </div>
diff --git a/src/main/resources/templates/tr/hiddenDangerCheck/dangerReport/editJudgeDangerReport.html b/src/main/resources/templates/tr/hiddenDangerCheck/dangerReport/editJudgeDangerReport.html
index 9a23f0d..921f83d 100644
--- a/src/main/resources/templates/tr/hiddenDangerCheck/dangerReport/editJudgeDangerReport.html
+++ b/src/main/resources/templates/tr/hiddenDangerCheck/dangerReport/editJudgeDangerReport.html
@@ -235,7 +235,11 @@
 
     /*隐患责任部门 选择 end*/
 
-
+    $("input[name='findTime']").datetimepicker({
+        format: "yyyy-mm-dd",
+        minView: "month",
+        autoclose: true
+    });
 
     <!--layui图片文件上传-->
     layui.use('upload', function () {

--
Gitblit v1.9.2