<el-date-picker
type="date"
style="width: 100%;"
placeholder="不选择默认次日"
value-format="yyyy-MM-dd"
v-model="extract_day"
:picker-options="pickerOptions"
/>
extract_day: '',
pickerOptions: {
disabledDate: (obj) => {
let date = new Date()
let year = date.getFullYear()
let month = (date.getMonth() + 1)>9 ? (date.getMonth() + 1):('0'+(date.getMonth() + 1))
let day = date.getDate()+1<10 ? ("0" + (date.getDate()+1)):date.getDate()+1
let splitMonth = month;
let monthBegin;
if(month == '10'){
monthBegin = '09'
}else{
monthBegin = splitMonth[0]+''+(splitMonth[1]-1);
};
console.log(monthBegin)
let dateBegin = new Date(year,monthBegin,day);
let timeBegin = dateBegin.getTime();
let currentTime = obj.getTime();
let dateEnd = new Date(year,month,day);
let timeEnd = dateEnd.getTime()-3600 * 1000 * 24;
return currentTime > timeEnd || currentTime<timeBegin;
}
},