beginPickerOptions: {
disabledDate(time) {
return time.getTime() > Date.now();
}
},
endPickerOptions: {
disabledDate(time) {
let self = this
return {
disabledDate(time){
if(self.data.takeOfficeStartTime){
return new Date(self.data.takeOfficeStartTime).getTime() > time.getTime() || time.getTime() > Date.now()
}else{
return time.getTime() > Date.now()//开始时间不选时,结束时间最大值小于等于当天
}
}
}
// return time.getTime() > Date.now();
},
]