双重预防项目-国泰新华二开定制版
马宇豪
2024-07-17 046b155be80123727ff6b7350051d2e4f1325f4b
src/main/resources/templates/tr/TBSpecialCheckScoreAndDangerLog/add.html
@@ -3,14 +3,17 @@
<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-add">
        <input class="form-control" th:value="${id.split(',')[0]}" type="hidden" name="checkScoreId" id="checkScoreId" required>
        <input class="form-control" th:value="${id.split(',')[1]}" type="hidden" name="checkItemId" id="checkItemId" required>
        <div class="form-group">
            <label class="col-sm-3 control-label is-required">关联隐患:</label>
            <div class="col-sm-8">
                <select id="dangerId" name="dangerId" class="form-control" required>
                <select id="dangerId" name="dangerId" class="form-control m-b" required>
                    <option th:each="danger : ${dangerList}" th:text="${danger.dangerName}" th:value="${danger.id}"></option>
                </select>
            </div>
@@ -32,7 +35,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>
@@ -56,6 +59,7 @@
</div>
<th:block th:include="include :: footer"/>
<th:block th:include="include :: datetimepicker-js"/>
<th:block th:include="include :: select2-js" />
<script type="text/javascript">
    var prefix = ctx + "tr/TBSpecialCheckScoreAndDangerLog";
    var now = new Date();
@@ -63,7 +67,7 @@
    var minute = now.getMinutes(); //获取当前分钟数(0-59)
    var second = now.getSeconds(); //获取当前秒数(0-59)
    $("input[name='checkDate']").datetimepicker({
        format: "yyyy-mm-dd" + ' ' + hour.toString().padStart(2, '0') + ':' + minute.toString().padStart(2, '0') + ':' + second.toString().padStart(2, '0'),
        format: "yyyy-mm-dd" + ' ' + '12:00:00',
        minView: "month",
        autoclose: true
    });