所有时间选择界面限制为一周,流量限制在24小时,用户选完开始会自动填入结束时间,流量界面修复样式加载问题以及谷歌不显示onloading问题

This commit is contained in:
tanghao
2018-12-25 15:44:24 +08:00
parent b889cb1ccb
commit a43a8663ee
9 changed files with 124 additions and 217 deletions

View File

@@ -5,6 +5,15 @@ $(function(){
//获取配置日志总数
getTotalLog();
});
function setTime(){
var chooseDate=new Date($('#beginDate').val());
chooseDate=chooseDate.setDate(chooseDate.getDate()+7);
var modifyTime=new Date(chooseDate);
$('#endDate').val(modifyTime.getFullYear()+"-"+((modifyTime.getMonth()+1)>10?(modifyTime.getMonth()+1):"0"+(modifyTime.getMonth()+1))+"-"+(modifyTime.getDate()>10?modifyTime.getDate():'0'+modifyTime.getDate())+' '+(modifyTime.getHours()>10?modifyTime.getHours():'0'+modifyTime.getHours())+':'+(modifyTime.getMinutes()>10?modifyTime.getMinutes():'0'+modifyTime.getMinutes())+':'+(modifyTime.getSeconds()>10?modifyTime.getSeconds():'0'+modifyTime.getSeconds()));
}
var getTotalLog=function(){
/*
td需要配置属性有audit,functionIdcompileIdaction