双重预防项目-国泰新华二开定制版
Your Name
2022-11-01 9bab1d44244289fad5f706103ac3cd33afcb0640
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
<!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>