优化代码

pull/467/MERGE
RuoYi 2023-08-12 16:21:23 +08:00
parent e4585f5dcb
commit 2ebedeb5df
5 changed files with 13 additions and 9 deletions

View File

@ -21,7 +21,7 @@
<div class="form-group"> <div class="form-group">
<label class="col-sm-3 control-label is-required">参数键值:</label> <label class="col-sm-3 control-label is-required">参数键值:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<input id="configValue" name="configValue" class="form-control" type="text" required> <textarea id="configValue" name="configValue" class="form-control" rows="4" required></textarea>
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">

View File

@ -87,26 +87,30 @@
field: 'configName', field: 'configName',
title: '参数名称', title: '参数名称',
formatter: function(value, row, index) { formatter: function(value, row, index) {
return $.table.tooltip(value); return $.table.tooltip(value);
} }
}, },
{ {
field: 'configKey', field: 'configKey',
title: '参数键名', title: '参数键名',
formatter: function(value, row, index) { formatter: function(value, row, index) {
return $.table.tooltip(value); return $.table.tooltip(value);
} }
}, },
{ {
field: 'configValue', field: 'configValue',
title: '参数键值' title: '参数键值',
align: 'center',
formatter: function(value, row, index) {
return $.table.tooltip(value, 10, "open");
}
}, },
{ {
field: 'configType', field: 'configType',
title: '系统内置', title: '系统内置',
align: 'center', align: 'center',
formatter: function(value, row, index) { formatter: function(value, row, index) {
return $.table.selectDictLabel(datas, value); return $.table.selectDictLabel(datas, value);
} }
}, },
{ {
@ -114,7 +118,7 @@
title: '备注', title: '备注',
align: 'center', align: 'center',
formatter: function(value, row, index) { formatter: function(value, row, index) {
return $.table.tooltip(value, 10, "open"); return $.table.tooltip(value, 10, "open");
} }
}, },
{ {

View File

@ -22,7 +22,7 @@
<div class="form-group"> <div class="form-group">
<label class="col-sm-3 control-label is-required">参数键值:</label> <label class="col-sm-3 control-label is-required">参数键值:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<input id="configValue" name="configValue" th:field="*{configValue}" class="form-control" type="text" required> <textarea id="configValue" name="configValue" class="form-control" rows="4" required>[[*{configValue}]]</textarea>
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">

View File

@ -147,7 +147,7 @@ public class DateUtils extends org.apache.commons.lang3.time.DateUtils
/** /**
* *
* *
* @param end * @param endDate
* @param startTime * @param startTime
* @return // * @return //
*/ */

View File

@ -118,7 +118,7 @@ public class SysLoginService
if (UserStatus.DISABLE.getCode().equals(user.getStatus())) if (UserStatus.DISABLE.getCode().equals(user.getStatus()))
{ {
AsyncManager.me().execute(AsyncFactory.recordLogininfor(username, Constants.LOGIN_FAIL, MessageUtils.message("user.blocked", user.getRemark()))); AsyncManager.me().execute(AsyncFactory.recordLogininfor(username, Constants.LOGIN_FAIL, MessageUtils.message("user.blocked")));
throw new UserBlockedException(); throw new UserBlockedException();
} }