beetlsql3-dev
姚丹ab 2 years ago
parent 8a1d020267
commit 3d215dc310

@ -551,6 +551,26 @@ var Common = {
if (r != null) return unescape(r[2]); return null; //返回参数值
},getLocalTime:function (nS) {//时间戳转换成时间格式
return new Date(parseInt(nS)).format('yyyy-MM-dd HH:mm:ss');
},getFormatDate:function (d) {
var date = new Date(d);
if(!$.isEmpty(d)){
var YY = date.getFullYear() + '-';
var MM =
(date.getMonth() + 1 < 10
? '0' + (date.getMonth() + 1)
: date.getMonth() + 1) + '-';
var DD = date.getDate() < 10 ? '0' + date.getDate() : date.getDate();
var hh =
(date.getHours() < 10 ? '0' + date.getHours() : date.getHours()) + ':';
var mm =
(date.getMinutes() < 10 ? '0' + date.getMinutes() : date.getMinutes()) +
':';
var ss =
date.getSeconds() < 10 ? '0' + date.getSeconds() : date.getSeconds();
return YY + MM + DD + ' ' + hh + mm + ss;
}else {
return '';
}
}
});

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 KiB

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

@ -28,6 +28,13 @@
border-radius: 5px;
padding: 3px
}
.layui-form-label {
width: 90px;
}
.layui-input-block{
margin-left: 120px;
}
</style>
<layui:searchForm formId="searchForm" searchList="" condition="${search}">
<div class="layui-inline">

Loading…
Cancel
Save