![](https://i-blog.csdnimg.cn/blog_migrate/3b2c14196b04a9da6530fac084a5c59e.png)
pickerOptions: {
disabledDate(time) {
// return time.getTime() > Date.now();
if (_this.searchModel.schedulingEtime) {
return new Date(_this.searchModel.schedulingEtime).getTime() < time.getTime();
} else {
return time.getTime() > Date.now() //开始时间不选时,结束时间最大值小于等于当天
}
}
},
pickerOptions2: {
disabledDate(time) {
if(_this.searchModel.schedulingStime){
var startTime = new Date(_this.searchModel.schedulingStime).valueOf()- 8.64e7+1;
}
//限制他既要大于开始时间又不能超过今天
return time.getTime() > Date.now() ||
time.getTime() < startTime ;
}
}