<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
	<th:block th:include="include :: header(#{system.operlog.detail.title})" />
	<th:block th:include="include :: jsonview-css" />
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
	<form class="form-horizontal m-t" id="signupForm">
		<div class="form-group">
			<label class="col-sm-2 control-label" th:text="#{system.operlog.detail.module}"></label>
			<div class="form-control-static" th:text="${operLog.title} + ' / ' + ${@dict.getLabel('sys_oper_type',operLog.businessType)}">
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-2 control-label" th:text="#{system.operlog.detail.loginInfo}"></label>
			<div class="form-control-static" th:text="${operLog.operName} + ' / ' + ${operLog.deptName} + ' / ' + ${operLog.operIp}+ ' / ' + ${operLog.operLocation}">
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-2 control-label" th:text="#{system.operlog.detail.requestUrl}"></label>
			<div class="form-control-static" th:text="${operLog.requestMethod} + ' - ' + ${operLog.operUrl} + '  ' + '(' + #{system.operlog.detail.costTime} + ${operLog.costTime} + #{system.operlog.detail.millisecond} + ')'">
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-2 control-label" th:text="#{system.operlog.detail.method}"></label>
			<div class="form-control-static" th:text="${operLog.method}">
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-2 control-label" th:text="#{system.operlog.detail.operParam}"></label>
			<div class="form-control-static"><pre id="operParam"></pre></div>
		</div>
		<div class="form-group">
			<label class="col-sm-2 control-label" th:text="#{system.operlog.detail.jsonResult}"></label>
			<div class="form-control-static"><pre id="jsonResult"></pre></div>
		</div>
		<div class="form-group">
			<label class="col-sm-2 control-label" th:text="#{system.operlog.detail.status}"></label>
			<div class="form-control-static" th:class="${operLog.status == 0 ? 'label label-primary' : 'label label-danger'}" th:text="${operLog.status == 0 ? #{system.operlog.status.normal} : #{system.operlog.status.abnormal}}">
			</div>
		</div>
		<div class="form-group" th:style="'display:' + ${operLog.status == 0 ? 'none' : 'block'}">
			<label class="col-sm-2 control-label" th:text="#{system.operlog.detail.errorMsg}"></label>
			<div class="form-control-static" th:text="${operLog.errorMsg}">
			</div>
		</div>
	</form>
</div>
<th:block th:include="include :: footer" />
<th:block th:include="include :: jsonview-js" />
<script th:inline="javascript">
	$(function() {
		var operParam = [[${operLog.operParam}]];
		if ($.common.isNotEmpty(operParam) && operParam.length < 2000) {
			$("#operParam").JSONView(operParam);
		} else {
			$("#operParam").text(operParam);
		}
		var jsonResult = [[${operLog.jsonResult}]];
		if ($.common.isNotEmpty(jsonResult) && jsonResult.length < 2000) {
			$("#jsonResult").JSONView(jsonResult);
		} else {
			$("#jsonResult").text(jsonResult);
		}
	});
</script>
</body>
</html>