日志详细优化

This commit is contained in:
RuoYi
2018-11-14 23:08:52 +08:00
parent 0c5da2cf17
commit 3a44c4e765
2 changed files with 24 additions and 7 deletions

View File

@ -28,8 +28,7 @@
</div>
<div class="form-group">
<label class="col-sm-2 control-label">请求参数:</label>
<div class="form-control-static" th:text="${operLog.operParam}">
</div>
<div class="form-control-static"><pre id="operParam"></pre></div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">状态:</label>
@ -44,5 +43,13 @@
</form>
</div>
<div th:include="include :: footer"></div>
<script th:inline="javascript">
$(function() {
var text = [[${operLog.operParam}]];
var result = JSON.stringify(JSON.parse(text), null, 2);
$("#operParam").html(result);
});
</script>
</body>
</html>