<el-date-picker class="mydate-picker"
v-model="dateValue1"
type="daterange"
range-separator="-"
size="small"
ref="dateValue1"
@change="timeChange1"
:picker-options="pickerOptions0"
:unlink-panels="true">
</el-date-picker>
pickerOptions0:{//在vue的data里设置
disabledDate(time){
var tempTime = new Date(time).getTime();//获取插件的时间戳
var startTime = new Date(Common.dateType(2)[0]).getTime() - 24*60*60*1000;//获取本月起始时间戳
var endTime = new Date(Common.dateType(2)[1]).getTime();//获取本月结束时间的时间戳
return endTime<=tempTime || startTime>=tempTime
}
}