双重预防项目-国泰新华二开定制版
马宇豪
2024-06-13 bce5ddaccb8cb6107c1fe039dfa42c3a62ea2a66
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
<!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="jobLogForm" th:if="${name == 'hiddenDangerCheckJobLog'}">
        <div class="form-group">
            <label class="col-sm-3 control-label">日志序号:</label>
            <div class="form-control-static" th:text="${hiddenDangerCheckJobLog.jobLogId}">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">任务名称:</label>
            <div class="form-control-static" th:text="${hiddenDangerCheckJobLog.jobName}">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">任务分组:</label>
            <div class="form-control-static"
                 th:text="${@dict.getLabel('sys_job_group', hiddenDangerCheckJobLog.jobGroup)}">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">调用目标字符串:</label>
            <div class="form-control-static" th:text="${hiddenDangerCheckJobLog.invokeTarget}">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">日志信息:</label>
            <div class="form-control-static" th:text="${hiddenDangerCheckJobLog.jobMessage}">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">执行状态:</label>
            <div class="form-control-static"
                 th:class="${hiddenDangerCheckJobLog.status == '0' ? 'label label-primary' : 'label label-danger'}"
                 th:text="${hiddenDangerCheckJobLog.status == '0' ? '正常' : '失败'}">
            </div>
        </div>
        <div class="form-group" th:style="'display:' + ${hiddenDangerCheckJobLog.status == '0' ? 'none' : 'block'}">
            <label class="col-sm-3 control-label">异常信息:</label>
            <div class="form-control-static" th:text="${hiddenDangerCheckJobLog.exceptionInfo}">
            </div>
        </div>
    </form>
 
    <form class="form-horizontal m-t" id="jobForm" th:if="${name == 'hiddenDangerCheckJob'}">
        <div class="form-group">
            <label class="col-sm-3 control-label">任务名称:</label>
            <div class="form-control-static" th:text="${hiddenDangerCheckJob.jobName}">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">排查类型:</label>
            <div class="form-control-static" th:text="${hiddenDangerCheckJob.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="${hiddenDangerCheckJob.checkType}">
                <span th:case="'1'">基础清单排查</span>
                <span th:case="'2'">选择风险单元清单排查</span>
            </div>
        </div>
        <div class="form-group" th:if="${hiddenDangerCheckJob.checkType=='2'}">
            <label class="col-sm-3 control-label">风险单元:</label>
            <div class="form-control-static" th:text="${hiddenDangerCheckJob.riskName}">
            </div>
        </div>
 
        <div class="form-group" th:if="${hiddenDangerCheckJob.checkType=='1'}">
            <label class="col-sm-3 control-label">基础清单名称:</label>
            <div class="form-control-static" th:text="${hiddenDangerCheckJob.riskName}">
            </div>
        </div>
 
 
        <div class="form-group">
            <label class="col-sm-3 control-label">执行人:</label>
            <div class="form-control-static" th:text="${hiddenDangerCheckJob.executeUserName}">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">执行时间:</label>
            <div class="form-control-static"
                 th:text="${#dates.format(hiddenDangerCheckJob.startTime, 'yyyy-MM-dd HH:mm:ss')}">
            </div>
        </div>
    </form>
 
</div>
<th:block th:include="include :: footer"/>
<script th:inline="javascript">
    $(function () {
        var hiddenDangerCheckJob = [[${hiddenDangerCheckJob}]];
        var typeCycleNum = hiddenDangerCheckJob.troubleshootTypeCycleNum;
        var typeCycleType = hiddenDangerCheckJob.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);
 
 
    });
 
</script>
 
 
</body>
</html>