|
@@ -273,8 +273,8 @@ export default {
|
|
|
const timeDiff = Math.abs(endDate - startDate);
|
|
const timeDiff = Math.abs(endDate - startDate);
|
|
|
const diffDays = Math.ceil(timeDiff / (1000 * 60 * 60 * 24));
|
|
const diffDays = Math.ceil(timeDiff / (1000 * 60 * 60 * 24));
|
|
|
|
|
|
|
|
- if (diffDays > 14) { // maxDays-1 因为包含起始日
|
|
|
|
|
- this.$message.warning('时间区间不能超过半个月');
|
|
|
|
|
|
|
+ if (diffDays > 31) { // maxDays-1 因为包含起始日
|
|
|
|
|
+ this.$message.warning('时间区间不能超过一个月');
|
|
|
return false;
|
|
return false;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|