双重预防项目-国泰新华二开定制版
SZH
2022-08-20 f9f0687195e0fe349185437d22c495d74c8d4a20
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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <th:block th:include="include :: header('检查点及评价列表')" />
</head>
<body class="gray-bg">
     <div class="container-div">
        <div class="row">
            <div class="col-sm-12 search-collapse">
                <form id="formId">
                    <div class="select-list">
                        <ul>
                            <input type="hidden" th:value="${level}" id="evaluationAfterFengxianJibie" name="evaluationAfterFengxianJibie">
 
                            <input th:if="${companyRegion!=null}" type="hidden" th:value="${companyRegion}"  name="companyRegion">
                            <input th:if="${companyIndustryType!=null}" type="hidden" th:value="${companyIndustryType}" name="companyIndustry">
                            <input th:if="${companySubIndustryType!=null}" type="hidden" th:value="${companySubIndustryType}" name="companySubIndustry">
 
 
                            <li>
                                <label>风险单元名称:</label>
                                <input type="text" name="plan.risk.riskListName"/>
                            </li>
 
                            <li>
                                <label>评价方法:</label>
                                <select name="evaluationMethodType" th:with="type=${@dict.getType('tr_evaluation_method')}">
                                    <option value="">所有</option>
                                    <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
                                </select>
                            </li>
 
                            <li>
                                <label>辨识类型:</label>
                                <select name="plan.evaluationType" th:with="type=${@dict.getType('tr_evaluation_type')}">
                                    <option value="">所有</option>
                                    <option th:each="dict : ${type}" th:text="${dict.dictLabel}"
                                            th:value="${dict.dictValue}"></option>
                                </select>
                            </li>
                            <li class="select-time">
                                <label>审核时间:</label>
                                <input type="text" class="time-input" id="startTime" placeholder="开始时间" name="params[beginReviewTime]"/>
                                <span>-</span>
                                <input type="text" class="time-input" id="endTime" placeholder="结束时间" name="params[endReviewTime]"/>
                            </li>
                            <li>
                                <label>审核状态:</label>
                                <select name="reviewStatus" th:with="type=${@dict.getType('tr_review_status')}">
                                    <option value="">所有</option>
                                    <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
                                </select>
                            </li>
                            <li>
                                <label>评价状态:</label>
                                <select name="evaluationStatus" th:with="type=${@dict.getType('tr_evaluation_status')}">
                                    <option value="">所有</option>
                                    <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
                                </select>
                            </li>
 
                            <li>
                                <a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i>&nbsp;搜索</a>
                                <a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i>&nbsp;重置</a>
                            </li>
                        </ul>
                    </div>
                </form>
            </div>
 
            <div class="btn-group-sm" id="toolbar" role="group">
            </div>
            <div class="col-sm-12 select-table table-striped">
                <table id="bootstrap-table"></table>
            </div>
        </div>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var evaluationMethodTypeDatas = [[${@dict.getType('tr_evaluation_method')}]];
        var reviewStatusDatas = [[${@dict.getType('tr_review_status')}]];
        var evaluationStatusDatas = [[${@dict.getType('tr_evaluation_status')}]];
        var evaluationTypeDatas = [[${@dict.getType('tr_evaluation_type')}]];
        var stageStatusDatas = [[${@dict.getType('tr_evaluation_stage_status')}]];
        var prefixByApp = ctx + "tr/dataStatisticsTotalByApp";
 
        var prefix = ctx + "tr/riskCheckPoint";
        $(function() {
            var options = {
                url: prefixByApp + "/riskCheckPoint/ledger",
                detailUrl: prefix + "/detail/{id}",
                removeUrl: prefix + "/removeRiskCheckPointLedger",
                queryParams:queryParams,
                modalName: "检查点及评价",
                columns: [{
                    checkbox: true
                },
                {
                    field: 'checkPointId', 
                    title: 'id',
                    visible: false
                },
 
                    {
                        field: 'plan.evaluationPlanName',
                        title: '评价计划名称'
                    },
                    {
                        title: '评价时间',
                        formatter: function(value, row, index) {
                            return ' <div style="width:150px;">'+row.plan.evaluationBeginTime +"-"+ row.plan.evaluationEndTime+' </div>';
                        }
                    },
                    {
                        field: 'plan.planUser.userName',
                        title: '计划发起人'
                    },
 
                    {
                        field: 'plan.stageStatus',
                        title: '计划阶段',
                        formatter: function(value, row, index) {
                            return $.table.selectDictLabel(stageStatusDatas, value);
                        }
                    },
 
                    {
                        field: 'plan.evaluationType',
                        title: '辨识评价类型',
                        formatter: function(value, row, index) {
                            return $.table.selectDictLabel(evaluationTypeDatas, value);
                        }
                    },
                    {
                        field: 'plan.risk.riskListName',
                        title: '风险单元名称'
                    },
 
                    {
                        field: 'plan.planUser.userName',
                        title: '计划辨识人'
                    },
 
                {
                    field: 'evaluationMethodType', 
                    title: '评价方法',
                    formatter: function(value, row, index) {
                       return $.table.selectDictLabel(evaluationMethodTypeDatas, value);
                    }
                },
                {
                    field: 'evaluationUser.userName',
                    title: '评价负责人'
                },
                    {
                        field: 'evaluationStatus',
                        title: '评价状态',
                        formatter: function(value, row, index) {
                            return $.table.selectDictLabel(evaluationStatusDatas, value);
                        }
                    },
 
                {
                    field: 'evaluationNowFengxianzhi', 
                    title: '现有措施评价风险值'
                },
                {
                    field: 'evaluationNowJibie', 
                    title: '现有措施评价级别'
                },
                {
                    field: 'evaluationNowFengxianJibie', 
                    title: '现有措施评价风险级别'
                },
                {
                    field: 'evaluationNowFengxianse', 
                    title: '现有措施评价风险色',
                    formatter: function(value, row, index) {
                        var actions = [];
                        if (row.evaluationNowFengxianse=='红色'){
                            actions.push('<a class="btn btn-warning btn-rounded" style="background-color: #ff0000;border-color: #ff0000;color: #000000;" href="#">红色</a> ');
                        }else if(row.evaluationNowFengxianse=='橙色'){
                            actions.push('<a class="btn btn-warning btn-rounded" style="background-color: #ff6100;border-color: #ff6100;color: #000000;" href="#">橙色</a>  ');
                        }else if(row.evaluationNowFengxianse=='黄色'){
                            actions.push('<a class="btn btn-warning btn-rounded" style="background-color: #ffff00;border-color: #ffff00;color: #000000;" href="#">黄色</a>  ');
 
                        }else if(row.evaluationNowFengxianse=='蓝色'){
                            actions.push('<a class="btn btn-warning btn-rounded" style="background-color: #0000ff;border-color: #0000ff;color: #ffffff;" href="#">蓝色</a>  ');
                        }
                        return actions.join('');
                    }
                },
                {
                    field: 'evaluationNowGuankongCengji', 
                    title: '现有措施评价管控层级'
                },
 
                // {
                //     field: 'evaluationAfterJishu',
                //     title: '建议技术措施'
                // },
                // {
                //     field: 'evaluationAfterGuanli',
                //     title: '建议管理措施'
                // },
                // {
                //     field: 'evaluationAfterJiaoyu',
                //     title: '建议培训教育措施'
                // },
                // {
                //     field: 'evaluationAfterFanghu',
                //     title: '建议个体防护措施'
                // },
                // {
                //     field: 'evaluationAfterYingji',
                //     title: '建议应急处置措施'
                // },
 
                {
                    field: 'evaluationAfterFengxianzhi', 
                    title: '剩余风险评价风险值'
                },
                {
                    field: 'evaluationAfterJibie', 
                    title: '剩余风险评价级别'
                },
                {
                    field: 'evaluationAfterFengxianJibie', 
                    title: '剩余风险评价风险级别'
                },
                {
                    field: 'evaluationAfterFengxianse',
                    title: '剩余风险评价风险色',
                    formatter: function(value, row, index) {
                        var actions = [];
                        if (row.evaluationAfterFengxianse=='红色'){
                            actions.push('<a class="btn btn-warning btn-rounded" style="background-color: #ff0000;border-color: #ff0000;color: #000000;" href="#">红色</a> ');
                        }else if(row.evaluationAfterFengxianse=='橙色'){
                            actions.push('<a class="btn btn-warning btn-rounded" style="background-color: #ff6100;border-color: #ff6100;color: #000000;" href="#">橙色</a>  ');
                        }else if(row.evaluationAfterFengxianse=='黄色'){
                            actions.push('<a class="btn btn-warning btn-rounded" style="background-color: #ffff00;border-color: #ffff00;color: #000000;" href="#">黄色</a>  ');
 
                        }else if(row.evaluationAfterFengxianse=='蓝色'){
                            actions.push('<a class="btn btn-warning btn-rounded" style="background-color: #0000ff;border-color: #0000ff;color: #ffffff;" href="#">蓝色</a>  ');
                        }
                        return actions.join('');
                    }
                },
                {
                    field: 'evaluationAfterGuankongCengji', 
                    title: '剩余风险评价管控层级'
                },
                {
                    field: 'reviewUser.userName',
                    title: '审核负责人'
                },
                {
                    field: 'reviewOpinion', 
                    title: '审核意见'
                },
                {
                    field: 'reviewTime', 
                    title: '审核时间'
                },
                {
                    field: 'reviewStatus', 
                    title: '审核状态',
                    formatter: function(value, row, index) {
                       return $.table.selectDictLabel(reviewStatusDatas, value);
                    }
                },
 
                    {
                        title: '操作',
                        align: 'center',
                        formatter: function(value, row, index) {
                            var actions = [];
                            actions.push('<a class="btn btn-default btn-xs " href="javascript:void(0)" onclick="$.operate.detail(\'' + row.checkPointId + '\')"><i class="fa fa-search"></i>查看</a> ');
                            return actions.join('');
                        }
                    }]
            };
            $.table.init(options);
        });
 
        function queryParams(params) {
            var search = $.table.queryParams(params);
            return search;
        }
    </script>
</body>
</html>