双重预防项目-国泰新华二开定制版
heheng
2024-11-15 9015e720487b737743232b0b3aa464c2ac9e8d17
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
<!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-t" id="jobForm">
        <div class="form-group">
            <label class="col-sm-3 control-label">任务名称:</label>
            <div class="form-control-static" th:text="${hiddenDangerCheck.jobName}">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">排查类型:</label>
            <div class="form-control-static" th:text="${hiddenDangerCheck.troubleshootTypeName}">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">排查周期:</label>
            <div class="form-control-static" id="troubleshootCycleInfo">
            </div>
        </div>
 
        <div class="form-group">
            <label class="col-sm-3 control-label">排查方式:</label>
            <div class="form-control-static" th:switch="${hiddenDangerCheck.checkType}">
                <span th:case="'1'">基础清单排查</span>
                <span th:case="'2'">选择风险单元清单排查</span>
            </div>
        </div>
        <div class="form-group" th:if="${hiddenDangerCheck.checkType=='2'}">
            <label class="col-sm-3 control-label">风险单元:</label>
            <div class="form-control-static" th:text="${hiddenDangerCheck.riskName}">
            </div>
        </div>
 
        <div class="form-group" th:if="${hiddenDangerCheck.checkType=='2'}">
            <div class="col-sm-3 control-label">排查项目:</div>
            <div class="form-control-static" id="checkItems" style="float:left;">
            </div>
        </div>
 
        <div class="form-group" th:if="${hiddenDangerCheck.checkType=='1'}">
            <label class="col-sm-3 control-label">基础清单:</label>
            <div class="form-control-static">
                <a th:href="${hiddenDangerCheck.basicListFile}" target="_blank" download="">点击下载查看清单文件(<span th:text="${hiddenDangerCheck.basicListName}"></span>)</a>
            </div>
        </div>
 
 
        <div class="form-group">
            <label class="col-sm-3 control-label">排查时间:</label>
            <div class="form-control-static"
                 th:text="${#dates.format(hiddenDangerCheck.createTime, 'yyyy-MM-dd HH:mm:ss')}">
            </div>
        </div>
    </form>
 
</div>
<th:block th:include="include :: footer"/>
<script th:inline="javascript">
    $(function () {
        var hiddenDangerCheck = [[${hiddenDangerCheck}]];
        var typeCycleNum = hiddenDangerCheck.troubleshootTypeCycleNum;
        var typeCycleType = hiddenDangerCheck.troubleshootTypeCycleType;
 
        var typeCycleTypeLabel = "";
        if (typeCycleType == "1") {
            typeCycleTypeLabel = "小时";
        } else if (typeCycleType == "2") {
            typeCycleTypeLabel = "日";
        } else if (typeCycleType == "3") {
            typeCycleTypeLabel = "周";
        } else if (typeCycleType == "4") {
            typeCycleTypeLabel = "月";
        } else if (typeCycleType == "5") {
            typeCycleTypeLabel = "年";
        }
 
        var troubleshootCycleInfo = typeCycleNum + typeCycleTypeLabel + "1次";
        $("#troubleshootCycleInfo").text(troubleshootCycleInfo);
 
 
        var planLabel = [[${planLabel}]];
        if(planLabel=="0"){
            $("#checkItems").text("该风险单元未评价,暂无排查项目");
        }else if(planLabel=="1"){
            var checkPointList = [[${checkPointList}]];
            var checkItems = "";
            for (var i in checkPointList) {
                var checkPoint = checkPointList[i];
                if(checkItems!=""){
                    checkItems+="</br>";
                }
                checkItems += "第" + (parseInt(i) + 1) + "个排查项目  内容如下:</br>";
                if(checkPoint.plan.riskIdentifyMethod=="1"){
                    checkItems+="SCL_检查项目:"+(checkPoint.sclJianchaXiangmu==null?'暂无':checkPoint.sclJianchaXiangmu)+"<br/>";
                    checkItems+="SCL_检查标准:"+(checkPoint.sclJianchaMubiao==null?'暂无':checkPoint.sclJianchaMubiao)+"<br/>";
                    checkItems+="SCL_不符合标准情况:"+(checkPoint.sclQingkuang==null?'暂无':checkPoint.sclQingkuang)+"<br/>";
                    checkItems+="SCL_主要后果:"+(checkPoint.sclZhuyaoHouguo==null?'暂无':checkPoint.sclZhuyaoHouguo)+"<br/>";
                }else if(checkPoint.plan.riskIdentifyMethod=="2"){
                    checkItems+="JHA_作业步骤:"+(checkPoint.jhaZuoyeBuzhou==null?'暂无':checkPoint.jhaZuoyeBuzhou)+"<br/>";
                    checkItems+="JHA_危险源或潜在事件:"+(checkPoint.jhaWeixianyuan==null?'暂无':checkPoint.jhaWeixianyuan)+"<br/>";
                    checkItems+="JHA_可能发生的事故类型及后果:"+(checkPoint.jhaShiguLeixing==null?'暂无':checkPoint.jhaShiguLeixing)+"<br/>";
                }else if(checkPoint.plan.riskIdentifyMethod=="3"){
                    checkItems+="HAZOP_节点:"+(checkPoint.hazopJiedian==null?'暂无':checkPoint.hazopJiedian)+"<br/>";
                    checkItems+="HAZOP_参数:"+(checkPoint.hazopCanshu==null?'暂无':checkPoint.hazopCanshu)+"<br/>";
                    checkItems+="HAZOP_可能原因:"+(checkPoint.hazopYuanyin==null?'暂无':checkPoint.hazopYuanyin)+"<br/>";
                    checkItems+="HAZOP_主要后果:"+(checkPoint.hazopHouguo==null?'暂无':checkPoint.hazopHouguo)+"<br/>";
                }
                checkItems+="现有技术措施:"+(checkPoint.evaluationNowJishu==null?'暂无':checkPoint.evaluationNowJishu)+"<br/>";
                checkItems+="现有管理措施:"+(checkPoint.evaluationNowGuanli==null?'暂无':checkPoint.evaluationNowGuanli)+"<br/>";
                checkItems+="现有教育措施:"+(checkPoint.evaluationNowJiaoyu==null?'暂无':checkPoint.evaluationNowJiaoyu)+"<br/>";
                checkItems+="现有个体防护措施:"+(checkPoint.evaluationNowFanghu==null?'暂无':checkPoint.evaluationNowFanghu)+"<br/>";
                checkItems+="现有应急措施:"+(checkPoint.evaluationNowYingji==null?'暂无':checkPoint.evaluationNowYingji)+"<br/>";
 
 
                checkItems+="建议技术措施:"+(checkPoint.evaluationAfterJishu==null?'暂无':checkPoint.evaluationAfterJishu)+"<br/>";
                checkItems+="建议管理措施:"+(checkPoint.evaluationAfterGuanli==null?'暂无':checkPoint.evaluationAfterGuanli)+"<br/>";
                checkItems+="建议培训教育措施:"+(checkPoint.evaluationAfterJiaoyu==null?'暂无':checkPoint.evaluationAfterJiaoyu)+"<br/>";
                checkItems+="建议个体防护措施:"+(checkPoint.evaluationAfterFanghu==null?'暂无':checkPoint.evaluationAfterFanghu)+"<br/>";
                checkItems+="建议应急处置措施:"+(checkPoint.evaluationAfterYingji==null?'暂无':checkPoint.evaluationAfterYingji)+"<br/>";
 
            }
            $("#checkItems").html(checkItems);
        }
 
 
    });
 
</script>
 
 
</body>
</html>