|
@@ -223,7 +223,7 @@ export default {
|
|
|
let startTime = dayjs(val[1].start);
|
|
let startTime = dayjs(val[1].start);
|
|
|
let endTime = dayjs(this.selectEndDate);
|
|
let endTime = dayjs(this.selectEndDate);
|
|
|
if (startTime.month()+1 > endTime.month()+1 ) {
|
|
if (startTime.month()+1 > endTime.month()+1 ) {
|
|
|
- return Toast('开始月份不能大于结束月份')
|
|
|
|
|
|
|
+ return Toast('开始时间不能大于结束时间')
|
|
|
}
|
|
}
|
|
|
this.selectStartDate=startTime.format('YYYY-MM-DD');
|
|
this.selectStartDate=startTime.format('YYYY-MM-DD');
|
|
|
this.currentDate = this.initShowDateStr(startTime.year(), startTime.month()+1);
|
|
this.currentDate = this.initShowDateStr(startTime.year(), startTime.month()+1);
|
|
@@ -235,7 +235,7 @@ export default {
|
|
|
let startTime = dayjs(this.selectStartDate);
|
|
let startTime = dayjs(this.selectStartDate);
|
|
|
let endTime = dayjs(val[1].end);
|
|
let endTime = dayjs(val[1].end);
|
|
|
if (startTime.month()+1 > endTime.month()+1 ) {
|
|
if (startTime.month()+1 > endTime.month()+1 ) {
|
|
|
- return Toast('开始月份不能大于结束月份')
|
|
|
|
|
|
|
+ return Toast('开始时间不能大于结束时间')
|
|
|
}
|
|
}
|
|
|
this.selectEndDate=endTime.format('YYYY-MM-DD');
|
|
this.selectEndDate=endTime.format('YYYY-MM-DD');
|
|
|
this.endDate =this.initShowDateStr(endTime.year(), endTime.month()+1);
|
|
this.endDate =this.initShowDateStr(endTime.year(), endTime.month()+1);
|