Skip to content

Commit

Permalink
日志查询表单异常信息查看界面优化
Browse files Browse the repository at this point in the history
  • Loading branch information
think-gem committed Nov 27, 2019
1 parent 249abd2 commit 71abbfb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,8 @@ public static void saveLog(User user, HttpServletRequest request, Object handler
log.preInsert();

// 获取异常对象
Throwable throwable = null;
if (ex != null){
Throwable throwable = ex;
if (throwable == null){
throwable = ExceptionUtils.getThrowable(request);
}

Expand Down
19 changes: 6 additions & 13 deletions modules/core/src/main/resources/views/modules/sys/logForm.html
Original file line number Diff line number Diff line change
Expand Up @@ -78,19 +78,6 @@
</div>
</div>
</div>
<% if(@Global.YES.equals(log.isException)){ %>
<div class="row">
<div class="col-xs-12">
<div class="form-group">
<label class="control-label col-sm-2" title="">
<span class="required hide">*</span> 异常信息:<i class="fa icon-question hide"></i></label>
<div class="col-sm-10">
<#form:textarea path="exceptionInfo" rows="10" class="form-control "/>
</div>
</div>
</div>
</div>
<% } %>
<div class="row">
<div class="col-xs-6">
<div class="form-group">
Expand Down Expand Up @@ -173,6 +160,12 @@
</div>
</div>
</div>
<% if(@Global.YES.equals(log.isException)){ %>
<div class="form-unit">${text('异常信息')}</div>
<div class="ml10 mr10 mb10">
<#form:textarea path="exceptionInfo" rows="20" class="form-control autoHeight"/>
</div>
<% } %>
</div>
<div class="box-footer">
<div class="row">
Expand Down

0 comments on commit 71abbfb

Please sign in to comment.