Merge remote-tracking branch 'origin/beetlsql3-dev' into beetlsql3-dev

beetlsql3-dev
wgf 2 years ago
commit 9c504603fd

@ -357,7 +357,7 @@ var Common = {
if(pastMonth<10) pastMonth="0"+pastMonth; if(pastMonth<10) pastMonth="0"+pastMonth;
if(pastDay<10) pastDay="0"+pastDay; if(pastDay<10) pastDay="0"+pastDay;
let time = pastYear + '-' + pastMonth + '-' + pastDay + " 00:00"; let time = pastYear + '-' + pastMonth + '-' + pastDay;
return time; return time;
/*var d = new Date(); /*var d = new Date();

@ -63,9 +63,9 @@ layui.define(['form', 'laydate', 'table'], function (exports) {
{ {
field: 'addTime', field: 'addTime',
title: '创建日期', align: "center", title: '创建日期', align: "center",
templet: function (d) { /*templet: function (d) {
return Common.getDate(d.addTime); return Common.getDate(d.addTime);
}, },*/
}, },
{ {
field: 'userId', title: '操作', align: "center", templet: function (d) { field: 'userId', title: '操作', align: "center", templet: function (d) {

@ -54,7 +54,7 @@
layFilter="select_universitiesColleges"/> layFilter="select_universitiesColleges"/>
</div> </div>
</div> </div>
<div class="layui-inline" style="float: right;margin-right: 30px;"> <div class="layui-inline">
<label class="layui-form-label">是否在线</label> <label class="layui-form-label">是否在线</label>
<div class="layui-input-inline"> <div class="layui-input-inline">
<select name="isOnLine" lay-verify=""> <select name="isOnLine" lay-verify="">
@ -73,6 +73,7 @@
placeholder="请输入登录时间"> placeholder="请输入登录时间">
</div> </div>
</div> </div>
</div> </div>
</form> </form>
</div> </div>
@ -226,8 +227,14 @@
} }
if ($.isEmpty(codePlural)) { if ($.isEmpty(codePlural)) {
param = $("#searchForm").serializeJson(); param = $("#searchForm").serializeJson();
if(!$.isEmpty(param.timeZones)){
param.loginStartTime = param.timeZones.split(' ~ ')[0]; param.loginStartTime = param.timeZones.split(' ~ ')[0];
param.loginEndTime = param.timeZones.split(' ~ ')[1]; param.loginEndTime = param.timeZones.split(' ~ ')[1];
}else {
param.loginStartTime = "";
param.loginEndTime = "";
}
delete param.timeZones; delete param.timeZones;
} else { } else {
param.codePlural = codePlural; param.codePlural = codePlural;

@ -429,9 +429,9 @@
function loadTime(id,data) { function loadTime(id,data) {
var timeValue = data.useStartTime; var timeValue = data.useStartTime;
if(data.useType == 0 || $.isEmpty(data.useType)){ if(data.useType == 0 || $.isEmpty(data.useType)){
var timeValue = Common.getNowDate(0); var timeValue = Common.getNowDate(0) + ' 00:00:00';
if(id.indexOf("useEndTime") > -1){ if(id.indexOf("useEndTime") > -1){
timeValue = Common.getNowDate(1095); timeValue = Common.getNowDate(1095) + ' 00:00:00';;
} }
}else { }else {
if(id.indexOf("useEndTime") > -1){ if(id.indexOf("useEndTime") > -1){
@ -442,7 +442,7 @@
laydate.render({ laydate.render({
elem: '#' + id elem: '#' + id
, type: 'datetime' , type: 'datetime'
, format: 'yyyy-MM-dd HH:mm' , format: 'yyyy-MM-dd HH:mm:ss'
, value: [timeValue] , value: [timeValue]
, done: function (value, date, endDate) { , done: function (value, date, endDate) {
var i = $("#" + id).parents("tr").attr("index");//当前编辑行号 var i = $("#" + id).parents("tr").attr("index");//当前编辑行号

Loading…
Cancel
Save