操作日志新增消耗时间属性

This commit is contained in:
RuoYi
2023-02-16 11:57:40 +08:00
parent e26b65ca31
commit 00f2db99d8
7 changed files with 47 additions and 14 deletions

View File

@ -19,12 +19,7 @@
</div>
<div class="form-group">
<label class="col-sm-2 control-label">请求地址:</label>
<div class="form-control-static" th:text="${operLog.operUrl}">
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">请求方式:</label>
<div class="form-control-static" th:text="${operLog.requestMethod}">
<div class="form-control-static" th:text="${operLog.requestMethod} + ' - ' + ${operLog.operUrl} + ' ' + '(' + '耗时' + ${operLog.costTime} + '毫秒)'">
</div>
</div>
<div class="form-group">

View File

@ -136,6 +136,14 @@
title: '操作时间',
sortable: true
},
{
field: 'costTime',
title: '消耗时间',
sortable: true,
formatter: function(value, row, index) {
return $.common.sprintf("%s毫秒", value);
}
},
{
title: '操作',
align: 'center',