From 1e29aa5e7343751bc12eab7b947da6bb387a54c9 Mon Sep 17 00:00:00 2001
From: 马宇豪 <978517621@qq.com>
Date: 星期三, 19 六月 2024 15:20:57 +0800
Subject: [PATCH] 添加
---
src/main/resources/templates/tr/specialCheckTaskLog/edit.html | 18 ++++++++++++++----
1 files changed, 14 insertions(+), 4 deletions(-)
diff --git a/src/main/resources/templates/tr/specialCheckTaskLog/edit.html b/src/main/resources/templates/tr/specialCheckTaskLog/edit.html
index fbbfe9a..0adf82f 100644
--- a/src/main/resources/templates/tr/specialCheckTaskLog/edit.html
+++ b/src/main/resources/templates/tr/specialCheckTaskLog/edit.html
@@ -9,7 +9,14 @@
<form class="form-horizontal m" id="form-job-edit" th:object="${specialCheckTaskLog}">
<input id="indexId" name="indexId" type="hidden" th:field="*{indexId}"/>
-
+ <div class="form-group">
+ <label class="col-sm-3 control-label is-required">专项检查任务:</label>
+ <div class="col-sm-8">
+ <select id="taskId" name="taskId" th:field="*{taskId}" class="form-control" required>
+ <option th:each="task : ${tbBaseCheckTask}" th:text="${task.taskName}" th:value="${task.id}"></option>
+ </select>
+ </div>
+ </div>
<!-- <input id="createUserId" name="createUserId" type="hidden" th:field="*{createUserId}"/>-->
<!-- <input id="createBy" name="createBy" type="hidden" th:field="*{createBy}"/>-->
<div class="form-group">
@@ -37,7 +44,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(specialCheckTaskLog.checkDate, 'yyyy-MM-dd')}" class="form-control" type="text" required>
+ <input name="checkDate" th:value="${#dates.format(specialCheckTaskLog.checkDate, 'yyyy-MM-dd HH:mm:ss')}" class="form-control" type="text" required>
</div>
</div>
</div>
@@ -60,9 +67,12 @@
<th:block th:include="include :: datetimepicker-js"/>
<script th:inline="javascript">
var prefix = ctx + "tr/specialCheckTaskLog";
-
+ 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