<!DOCTYPE html>
|
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
|
<head>
|
<th:block th:include="include :: header('修改安全风险事件')" />
|
</head>
|
<body class="white-bg">
|
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
|
<form class="form-horizontal m" id="form-riskMeasure-edit" th:object="${measureData}">
|
<input name="id" th:field="*{id}" type="hidden">
|
<div class="form-group">
|
<label class="col-sm-3 control-label">安全风险分析单元名称:</label>
|
<div class="col-sm-8">
|
<select name="riskUnitId" th:field="*{riskEventId}" class="form-control m-b">
|
<option value="">--请选择安全风险分析单元--</option>
|
<option th:each="u :${riskEvents}" th:value="${u.id}" th:text="${u.riskEventName}"></option>
|
</select>
|
<!-- <span class="help-block m-b-none"><i class="fa fa-info-circle"></i> 代码生成请选择字典属性</span>-->
|
</div>
|
</div>
|
<div class="form-group">
|
<label class="col-sm-3 control-label">风险措施编码:</label>
|
<div class="col-sm-8">
|
<input name="controlMeasureCode" th:field="*{controlMeasureCode}" class="form-control" type="text">
|
</div>
|
</div>
|
<div class="form-group">
|
<label class="col-sm-3 control-label">管控方式:</label>
|
<div class="col-sm-8">
|
<select name="controlType" th:field="*{controlType}" class="form-control m-b" th:with="type=${@dict.getType('dc_action_type')}">
|
<option value="">--请选择管控方式--</option>
|
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
|
</select>
|
</div>
|
</div>
|
<div class="form-group">
|
<label class="col-sm-3 control-label">管控内容:</label>
|
<div class="col-sm-8">
|
<input name="checkContent" th:field="*{checkContent}" class="form-control" type="text">
|
</div>
|
</div>
|
<div class="form-group">
|
<label class="col-sm-3 control-label">管控措施1:</label>
|
<div class="col-sm-8">
|
<select name="classify1" th:field="*{classify1}" class="form-control m-b" th:with="type=${@dict.getType('dc_action_one')}">
|
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
|
</select>
|
</div>
|
</div>
|
<div class="form-group">
|
<label class="col-sm-3 control-label">管控措施2:</label>
|
<div class="col-sm-8">
|
<select name="classify2" th:field="*{classify2}" class="form-control m-b" th:with="type=${@dict.getType('dc_action_two')}">
|
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
|
</select>
|
</div>
|
</div>
|
<div class="form-group">
|
<label class="col-sm-3 control-label">管控措施3:</label>
|
<div class="col-sm-8">
|
<input name="classify3" th:field="*{classify3}" class="form-control" type="text">
|
</div>
|
</div>
|
<div class="form-group">
|
<label class="col-sm-3 control-label">措施说明:</label>
|
<div class="col-sm-8">
|
<input name="measureDesc" th:field="*{measureDesc}" class="form-control" type="text">
|
</div>
|
</div>
|
<!-- <div class="form-group">-->
|
<!-- <label class="col-sm-3 control-label">可能造成后果:</label>-->
|
<!-- <div class="col-sm-8">-->
|
<!-- <input name="eventResult" th:field="*{eventResult}" class="form-control" type="text">-->
|
<!-- </div>-->
|
<!-- </div>-->
|
</form>
|
</div>
|
<th:block th:include="include :: footer" />
|
<script th:inline="javascript">
|
var actionTypeDatas = [[${@dict.getType('dc_action_type')}]];
|
var actionOneList = [[${@dict.getType('dc_action_one')}]];
|
var actionTwoList = [[${@dict.getType('dc_action_two')}]];
|
var prefix = ctx + "tr/riskMeasure";
|
$("#form-riskMeasure-edit").validate({
|
focusCleanup: true
|
});
|
|
function submitHandler() {
|
if ($.validate.form()) {
|
$.operate.save(prefix + "/edit", $('#form-riskMeasure-edit').serialize());
|
}
|
}
|
</script>
|
</body>
|
</html>
|