| | |
| | | <input th:value="*{dangerName}" class="form-control" type="text" readonly="readonly"> |
| | | </div> |
| | | </div> |
| | | <div class="form-group"> |
| | | <label class="col-sm-3 control-label is-required">排查方法:</label> |
| | | <div class="col-sm-8"> |
| | | <input th:value="*{remark}" class="form-control" type="text" readonly="readonly"> |
| | | </div> |
| | | </div> |
| | | |
| | | <div class="form-group"> |
| | | <label class="col-sm-3 control-label is-required">隐患描述:</label> |
| | |
| | | |
| | | |
| | | <div class="form-group"> |
| | | <label class="col-sm-3 control-label is-required">判定人:</label> |
| | | <label class="col-sm-3 control-label is-required">隐患责任人(判定人):</label> |
| | | <div class="col-sm-8"> |
| | | <input th:value="*{judgeUserName}" class="form-control" type="text" readonly="readonly"> |
| | | </div> |
| | | </div> |
| | | |
| | | <div class="form-group"> |
| | | <label class="col-sm-3 control-label is-required">隐患发现时间:</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 class="form-group"> |
| | | <label class="col-sm-3 control-label is-required">检查人:</label> |
| | | <div class="col-sm-8"> |
| | | <input th:value="*{checkPerson}" class="form-control" type="text" readonly="readonly"> |
| | | </div> |
| | | </div> |
| | | |
| | |
| | | <label class="col-sm-3 control-label is-required">隐患判定结果:</label> |
| | | <div class="col-sm-8"> |
| | | <select name="reportStatus" class="form-control m-b" required> |
| | | <option value="1">不是隐患</option> |
| | | <option value="2">是隐患</option> |
| | | <!-- <option value="1">不是隐患</option>--> |
| | | </select> |
| | | </div> |
| | | </div> |
| | | |
| | | |
| | | <div class="form-group" id="showByReportStatusChange" style="display:none;"> |
| | | <div class="form-group" id="showByReportStatusChange"> |
| | | <label class="col-sm-3 control-label is-required">核查人:</label> |
| | | <div class="col-sm-8"> |
| | | <input id="examineUserName" name="examineUserName" placeholder="选择核查人" class="form-control" type="text" onclick="selectExamineUser()" maxlength="30" readonly="true" required> |
| | |
| | | |
| | | |
| | | //根据是否为隐患--来控制--显示选择核查人--是否显示 |
| | | $("select[name='reportStatus']").change(function () { |
| | | var $thisVal = $(this).val(); |
| | | if ($thisVal == "1") { |
| | | $("#showByReportStatusChange").hide(); |
| | | $(".requiredByReportStatusChange").removeClass("is-required"); |
| | | $("select[name='troubleTypeId']").attr("required", "required"); |
| | | |
| | | } else if ($thisVal == "2") { |
| | | $("#showByReportStatusChange").show(); |
| | | $(".requiredByReportStatusChange").addClass("is-required"); |
| | | $("select[name='troubleTypeId']").removeAttr("required"); |
| | | } |
| | | }); |
| | | // $("select[name='reportStatus']").change(function () { |
| | | // var $thisVal = $(this).val(); |
| | | // if ($thisVal == "1") { |
| | | // $("#showByReportStatusChange").hide(); |
| | | // $(".requiredByReportStatusChange").removeClass("is-required"); |
| | | // $("select[name='troubleTypeId']").attr("required", "required"); |
| | | // |
| | | // } else if ($thisVal == "2") { |
| | | // $("#showByReportStatusChange").show(); |
| | | // $(".requiredByReportStatusChange").addClass("is-required"); |
| | | // $("select[name='troubleTypeId']").removeAttr("required"); |
| | | // } |
| | | // }); |
| | | |
| | | |
| | | function submitHandler() { |
| | |
| | | |
| | | /*隐患责任部门 选择 end*/ |
| | | |
| | | |
| | | $("input[name='findTime']").datetimepicker({ |
| | | format: "yyyy-mm-dd", |
| | | minView: "month", |
| | | autoclose: true |
| | | }); |
| | | |
| | | <!--layui图片文件上传--> |
| | | layui.use('upload', function () { |