双重预防项目-国泰新华二开定制版
马宇豪
2024-06-19 e5d955d763dddc73055d45151c65a5fc1656395d
添加
已修改4个文件
22 ■■■■■ 文件已修改
src/main/resources/templates/tr/TBSpecialCheckScoreAndDangerLog/specialCheckScoreAndDangerLog.html 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/resources/templates/tr/specialCheckTaskLog/add.html 9 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/resources/templates/tr/specialCheckTaskLog/detail.html 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/resources/templates/tr/specialCheckTaskLog/edit.html 9 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/resources/templates/tr/TBSpecialCheckScoreAndDangerLog/specialCheckScoreAndDangerLog.html
@@ -111,7 +111,7 @@
                    formatter: function (value, row, index) {
                        if (value == "1") {
                            return "事故隐患";
                        } else if (value == "0") {
                        } else if (value == "2") {
                            return "火灾隐患";
                        }
                    }
src/main/resources/templates/tr/specialCheckTaskLog/add.html
@@ -32,7 +32,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" class="form-control" placeholder="yyyy-MM-dd" type="text" required>
                    <input name="checkDate" class="form-control" placeholder="yyyy-MM-dd HH:mm:ss" type="text" required>
                </div>
            </div>
        </div>
@@ -51,8 +51,13 @@
<th:block th:include="include :: footer"/>
<th:block th:include="include :: datetimepicker-js"/>
<script type="text/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
    });
src/main/resources/templates/tr/specialCheckTaskLog/detail.html
@@ -37,7 +37,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 readonly="readonly">
                    <input name="checkDate" th:value="${#dates.format(specialCheckTaskLog.checkDate, 'yyyy-MM-dd HH:mm:ss')}" class="form-control" type="text" required readonly="readonly">
                </div>
            </div>
        </div>
src/main/resources/templates/tr/specialCheckTaskLog/edit.html
@@ -37,7 +37,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 +60,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
    });