<!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>
|