1.修复时间选择bug

2.修复二级页面导出后字体颜色消失问题
This commit is contained in:
tanghao
2019-01-04 15:10:27 +08:00
parent 9e1a577e7e
commit 420825a221
4 changed files with 346 additions and 320 deletions

View File

@@ -43,7 +43,7 @@ function currentTime() {
var hh = now.getHours();
var mm = now.getMinutes();
var ss = now.getSeconds();
var clock = year + "-";
if (month < 10) clock += "0";
@@ -56,17 +56,21 @@ function currentTime() {
clock += hh + ":";
if (mm < 10) clock += '0';
clock += mm;
clock += mm + ":";
if (ss < 10) clock += '0';
clock += ss;
return (clock);
}
function getMaxDate(day){
var clock=currentTime();
var test=new Date();
var dt;
var times=0;
dt=$("#beginDate").val();
if(dt!=''){
times =Date.parse(dt.replace(/-/g,'/'))+day*24*60*60*1000;//时间间隔为10天
if(times-Date.parse(clock.replace(/-/g,'/'))<0){
var d1 = new Date(times);
var year = d1.getFullYear();
@@ -75,7 +79,8 @@ function getMaxDate(day){
var hh = d1.getHours();
var mm = d1.getMinutes();
var ss = d1.getSeconds();
var clock = year + "-";
if (month < 10) clock += "0";
@@ -88,8 +93,10 @@ function getMaxDate(day){
clock += hh + ":";
if (mm < 10) clock += '0';
clock += mm;
clock += mm + ":";
if (ss < 10) clock += '0';
clock += ss;
}
}
return clock;