日期区间,限制bug

master
wyj2080 6 years ago
parent fc129b9dc3
commit a8128959e6

@ -204,7 +204,7 @@
if(that.selectEndTime == null || that.selectEndTime == ""){
return false;
}else{
return date && date.valueOf() > that.selectEndTime || date && date.valueOf() < that.$moment(that.selectEndTime).add(-31,"days");
return date && date.valueOf() > that.$moment(that.selectEndTime) || date && date.valueOf() < that.$moment(that.selectEndTime).add(-31,"days");
}
}
}
@ -217,7 +217,7 @@
if(that.selectStartTime == null || that.selectStartTime == ""){
return false;
}else{
return date && date.valueOf() < that.selectStartTime || date && date.valueOf() > that.$moment(that.selectStartTime).add(31,"days");
return date && date.valueOf() < that.$moment(that.selectStartTime) || date && date.valueOf() > that.$moment(that.selectStartTime).add(31,"days");
}
}
}

Loading…
Cancel
Save